Summary: Image viewer using Imlib 2 Name: feh Version: 1.2.7 Release: 1.mv.3.SuSE9.2 Copyright: BSD Group: Productivity/Graphics/Viewers Source0: %{name}-%{version}.tar.bz2 # You must install the source package of jpeg-6b (of the SuSE distribution): Source1: jpegsrc.v6b.tar.bz2 Url: http://www.linuxbrit.co.uk Packager: Martin Väth Requires: giblib >= 1.2.4 BuildRoot: /var/tmp/%{name}-%{version}-root BuildRequires: giblib >= 1.2.4 %define docsdir %{_docdir}/%{name} %description feh is a versatile and fast image viewer using imlib2, the premier image file handling library. feh has many features, from simple single file viewing, to multiple file modes using a slideshow or multiple windows. feh supports the creation of montages as index prints with many user-configurable options. %prep umask 022 test -n '%{buildroot}' || { echo "Must use buildroot" ; exit 1 ; } %if %{?fake:%fake}%{!?fake:0} %setup -T -D -c %else %setup -c test -d %{name}-%{version} && mv %{name}-%{version}/* . test -d %{name} && mv %{name}/* . %setup -T -D -c -a 1 mv jpeg*/jpegint.h src rm -rf jpeg* %endif %build umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} %if %{?fake:%fake}%{!?fake:0} %else #export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="-O4 -march=%{_target_cpu} -mcpu=%{_target_cpu} -fomit-frame-pointer" %configure make docsdir='%{docsdir}' strip src/feh %endif %install umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} test -n '%{buildroot}' test -d '%{buildroot}' && rm -rf '%{buildroot}' make DESTDIR='%{buildroot}' docsdir=%{_docdir}/%{name} install install -p -m 644 COPYING '%{buildroot}%{docsdir}' %define camdoc %{docsdir}/cam install -d -m 755 '%{buildroot}%{camdoc}' pushd cam install -p -m 644 ChangeLog README cam_bookmarks '%{buildroot}%{camdoc}' popd %clean test -n '%{buildroot}' -a -d '%{buildroot}' && rm -rf '%{buildroot}' %files %defattr(-,root,root) %doc %{docsdir} %{_bindir}/* %{_mandir}/*/* %{_datadir}/%{name} %changelog * Sun Sep 05 2004 Martin Väth - Use -fomit-frame-pointer - Update to 1.2.7 (and made fix using the SuSE jpeg package) - Added dependency to giblib * Wed Nov 26 2003 Martin Väth - minor compatibility improvements * Sun Oct 26 2003 Martin Väth - Changes for SuSE9.0 * Wed Aug 23 2000 Calum Selkirk - removed the double entry for doc