File ebview.spec of Package ebview

#
# spec file for package ebview (Version 0.3.6)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           ebview
BuildRequires:  cairo-devel ebdev gtk2-devel update-desktop-files
%if %suse_version > 1020
BuildRequires:  fdupes
%endif
License:        GPL v2 or later
Group:          Productivity/Office/Dictionary
PreReq:         %install_info_prereq
AutoReqProv:    on
Version:        0.3.6
Release:        131
Url:            http://ebview.sourceforge.net/
# original source is gzipped.
Source0:        http://heanet.dl.sourceforge.net/sourceforge/ebview/ebview-0.3.6.tar.bz2
Source1:        %name.desktop
Patch0:         ebview.patch
Patch1:         ebview-fonts.patch
Patch2:         ebview-pangox.patch
Patch3:         ebview-configure.patch
Patch4:         64bit.patch
Patch5:         fix-build.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Electronic Book Viewer: Program for Reading EPWING CD-ROM Dictionaries
# Summary(ja):      EPWING 形式の CD-ROM 辞書を参照するためのプログラムです。
# %description -l ja 
# "Electronic Book Viewer":
# EBView は UNIX 互換 OS 上で CD-ROM 辞書を参照するためのプログラムです。
# 
# 著者:
# ----
#     Kenichi Suto <deep_blue@users.sourceforge.net>
#     Hironori FUJII <fujii@chi.its.hiroshima-cu.ac.jp>

%description
Electronic Book Viewer is a program for reading EPWING CD-ROM
dictionaries.



Authors:
--------
    Kenichi Suto <deep_blue@users.sourceforge.net>
    Hironori FUJII <fujii@chi.its.hiroshima-cu.ac.jp>

%prep
%setup0 -q
%patch0 -p 1
%patch1 -p 1 -b .fonts
%patch2
%patch3
%patch4 -p 1
%patch5 -p 1
find . | xargs touch
find . -name "*.html" | xargs chmod a-x
chmod a-x ABOUT-NLS AUTHORS COPYING NEWS README* INSTALL ChangeLog*

%build
# update config.{guess,sub}
%{?suse_update_config:%{suse_update_config}}
rm -f aclocal.m4*
rm -rf autom4te.cache
libtoolize  --force
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing "
./configure --prefix=/usr \
            --bindir=%{_bindir} \
            --libdir=%{_libdir} \
            --infodir=%{_infodir} \
            --sysconfdir=/etc \
            %{_target_cpu}-suse-linux
make 

%install
make DESTDIR=$RPM_BUILD_ROOT install
pushd doc
    make DESTDIR=$RPM_BUILD_ROOT install
popd
%suse_update_desktop_file -i %name Office Dictionary
%{find_lang} ebview
%if %suse_version > 1020
%fdupes $RPM_BUILD_ROOT
%endif

%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files -f ebview.lang
%defattr(-, root, root)
%doc ABOUT-NLS AUTHORS COPYING NEWS README* INSTALL ChangeLog*
/usr/bin/*
/usr/share/applications/%name.desktop
/usr/share/ebview/

%changelog
* Fri Jan 11 2008 - mfabian@suse.de
- use fdupes only for openSUSE >= 10.3.
* Mon Aug 13 2007 - mfabian@suse.de
- fix build on STABLE (port to new GtkTooltip API).
- use %%fdupes.
* Wed May 23 2007 - mfabian@suse.de
- fix build on STABLE (fix problems reported by RPMLINT).
* Fri Mar 02 2007 - mfabian@suse.de
- Bugzilla #242602: make it work on 64bit systems.
* Fri Jun 16 2006 - schwab@suse.de
- Fix quoting in configure script.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Aug 22 2005 - ro@suse.de
- added libpango_x to liblist
* Tue Aug 02 2005 - ro@suse.de
- use gtk2-devel-packages in nfb
* Fri Jun 17 2005 - mfabian@suse.de
- update to 0.3.6.
  (last change by ro@suse.de is incluced already).
* Mon May 24 2004 - ro@suse.de
- don't define GTK_DISABLE_DEPRECATED
* Tue Feb 24 2004 - mfabian@suse.de
- update to 0.3.5.
- add compile flag "-fno-strict-aliasing".
* Sun Jan 11 2004 - adrian@suse.de
- build as user
* Mon Nov 24 2003 - ro@suse.de
- cleanup before autoreconf
* Mon Sep 01 2003 - adrian@suse.de
- add desktop file
* Sat Aug 23 2003 - mfabian@suse.de
- update to 0.3.1.
* Tue Jun 24 2003 - mfabian@suse.de
- new package: ebview, version 0.3.0.
openSUSE Build Service is sponsored by