Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > aed5cbc978ec1f1cd63cab4779ab58ea > files > 3

feh-1.3.4-6mdv2009.0.src.rpm

%define name    feh
%define version 1.3.4
%define release %mkrel 6

%define section Multimedia/Graphics
%define title   Feh
%define Summary Image viewer at heart, though it does other cool stuff

Summary:        %Summary
Name:           %name
Version:        %version
Release:        %release
License:        BSD
Group:          Graphics
URL:            http://www.linuxbrit.co.uk/feh/

Source0:        http://www.linuxbrit.co.uk/downloads/%name-%version.tar.bz2
Source1:        %name-icons.tar.bz2

BuildRoot:      %_tmppath/%name-buildroot
Buildrequires:  imlib2-devel libxt-devel
Buildrequires:  giblib-devel
Buildrequires:  jpeg-devel 
BuildRequires:  png-devel

%description
Feh is an imageviewer, but it does a whole lot of other cool stuff as
well. There are simply too many to mention them here so please check the
docs/homepage.


%prep
%setup -q
%setup -q -T -D -a1
# Don't let make install install the doc-files.
%__perl -pi -e 's,install-data-am: install-man install-docsDATA,install-data-am: install-man,' Makefile.in

%build
%configure
%make


%install
%__rm -rf %buildroot
%makeinstall

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{Summary}
Exec=%{name} -c
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Graphics;
EOF


%__install -D -m 644 %{name}-48.png %buildroot/%_liconsdir/%name.png
%__install -D -m 644 %{name}-32.png %buildroot/%_iconsdir/%name.png
%__install -D -m 644 %{name}-16.png %buildroot/%_miconsdir/%name.png


%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif


%clean
%__rm -rf %buildroot


%files
%defattr(0755,root,root,0755)
%_bindir/*
%defattr(0644,root,root,0755)
%doc AUTHORS ChangeLog README TODO
%_datadir/%name/fonts/*
%_datadir/%name/images/*
%_mandir/man1/%name.*
%_miconsdir/%name.png
%_iconsdir/%name.png
%_liconsdir/%name.png
%_datadir/applications/*




%changelog
* Thu Jul 24 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.3.4-6mdv2009.0
+ Revision: 245079
- rebuild

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 1.3.4-4mdv2008.1
+ Revision: 136411
- restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill old menu
    - kill re-definition of %%buildroot on Pixel's request
    - kill desktop-file-validate's error: string list key "Categories" in group "Desktop Entry" does not have a semicolon (";") as trailing character
    - fix man pages


* Fri Feb 09 2007 Thierry Vignaud <tvignaud@mandriva.com> 1.3.4-4mdv2007.0
+ Revision: 118457
- fix buildrequires
- Import feh

* Fri Feb 09 2007 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.3.4-4mdv2007.1
- rebuild to sync x86_64

* Tue Aug 08 2006 Lenny Cartier <lenny@mandriva.com> 1.3.4-3mdv2007.0
- xdg

* Wed May 03 2006 Thierry Vignaud <tvignaud@mandriva.com> 1.3.4-2mdk
- fix buildrequires (and thus build on x86_64)

* Wed Mar 29 2006 Jerome Soyer <saispo@mandriva.org> 1.3.4-1mdk
- New release 1.3.4

* Fri Oct 07 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.3.3-2mdk
- Fix BuildRequires

* Thu Jul 21 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.3.3-1mdk
- New release 1.3.3
- Fix BuildRequires
- mkrel

* Mon Nov 08 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.2.9-1mdk
- 1.2.9