[2356] | 1 | # We don't build with Gnome support by default to avoid a GConf dependency. |
---|
| 2 | # If you would like to set the Gnome background image with Viewnior, rebuild |
---|
| 3 | # the srpm with: |
---|
| 4 | # rpmbuild --rebuild viewnior-*-src.rpm --with gnome |
---|
[5768] | 5 | # or use bcond_without to change the default |
---|
[5784] | 6 | #%bcond_with gnome |
---|
[2356] | 7 | |
---|
| 8 | Name: viewnior |
---|
[5784] | 9 | Version: 1.3 |
---|
[2356] | 10 | Release: 1%{?_dist_release} |
---|
| 11 | Summary: Elegant image viewer |
---|
| 12 | Summary(ja): エレガントな画像ビューア |
---|
| 13 | |
---|
| 14 | Group: Applications/Graphics |
---|
| 15 | License: GPLv3+ |
---|
| 16 | URL: http://xsisqox.github.com/Viewnior |
---|
| 17 | Source0: http://cloud.github.com/downloads/xsisqox/Viewnior/%{name}-%{version}.tar.gz |
---|
| 18 | Patch0: viewnior-0.7-dsofix.patch |
---|
| 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 20 | |
---|
| 21 | BuildRequires: gdk-pixbuf2-devel >= 2.4.0 |
---|
| 22 | BuildRequires: glib2-devel >= 2.24 |
---|
| 23 | BuildRequires: gtk2-devel >= 2.20 |
---|
| 24 | BuildRequires: desktop-file-utils |
---|
| 25 | BuildRequires: gettext |
---|
| 26 | BuildRequires: intltool >= 0.35.0 |
---|
| 27 | BuildRequires: perl-XML-Parser |
---|
| 28 | BuildRequires: shared-mime-info >= 0.20 |
---|
[5784] | 29 | #%if %{with gnome} |
---|
| 30 | #BuildRequires: GConf2-devel |
---|
| 31 | #%endif |
---|
[2356] | 32 | |
---|
| 33 | |
---|
| 34 | %description |
---|
| 35 | Viewnior is an image viewer program. Created to be simple, fast and elegant. |
---|
| 36 | It's minimalistic interface provides more screen space for your images. Among |
---|
| 37 | its features are: |
---|
| 38 | |
---|
| 39 | * Fullscreen & Slideshow |
---|
| 40 | * Rotate, flip, save, delete images |
---|
| 41 | * Animation support |
---|
| 42 | * Browse only selected images |
---|
| 43 | * Navigation window |
---|
| 44 | * Simple interface |
---|
| 45 | * Configurable mouse actions |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %prep |
---|
| 49 | %setup -q |
---|
| 50 | %patch0 -p1 -b .dsofix |
---|
| 51 | # fix spurious executable perms |
---|
| 52 | chmod 0644 AUTHORS ChangeLog COPYING NEWS README TODO src/* |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | %build |
---|
[5768] | 56 | %configure --enable-static=no \ |
---|
[5784] | 57 | #%if %{with gnome} |
---|
| 58 | # --enable-wallpaper |
---|
| 59 | #%endif |
---|
[2356] | 60 | |
---|
| 61 | make %{?_smp_mflags} V=1 |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %install |
---|
| 65 | rm -rf %{buildroot} |
---|
| 66 | make install DESTDIR=%{buildroot} INSTALL='install -p' |
---|
| 67 | %find_lang %{name} |
---|
| 68 | desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | %clean |
---|
| 72 | rm -rf %{buildroot} |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | %post |
---|
| 76 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 77 | update-desktop-database &> /dev/null || : |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %postun |
---|
| 81 | if [ $1 -eq 0 ] ; then |
---|
| 82 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
| 83 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 84 | fi |
---|
| 85 | update-desktop-database &> /dev/null || : |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | %posttrans |
---|
| 89 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %files -f %{name}.lang |
---|
| 93 | %defattr(-,root,root,-) |
---|
| 94 | %doc AUTHORS ChangeLog COPYING NEWS README TODO |
---|
| 95 | %{_bindir}/%{name} |
---|
| 96 | %{_datadir}/applications/%{name}.desktop |
---|
| 97 | %{_datadir}/icons/hicolor/*/apps/%{name}.* |
---|
| 98 | %{_datadir}/%{name}/ |
---|
| 99 | %{_mandir}/man?/ |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | %changelog |
---|
[5784] | 103 | * Tue Feb 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3-1 |
---|
| 104 | - new upstream release |
---|
| 105 | - dropt patch1 |
---|
| 106 | |
---|
[5768] | 107 | * Sat Feb 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2-1 |
---|
| 108 | - new upstream release |
---|
| 109 | - added patch1 to fix typo |
---|
| 110 | - added configure option: --enable-static=no |
---|
| 111 | |
---|
[2356] | 112 | * Thu Dec 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1-1 |
---|
| 113 | - initial build for VineSeed |
---|
| 114 | |
---|
| 115 | * Wed Mar 31 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1.0-1 |
---|
| 116 | - Update to 1.0 |
---|
| 117 | |
---|
| 118 | * Tue Feb 16 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.7-2 |
---|
| 119 | - Add patch to fix DSO linking (#565018) |
---|
| 120 | - Switch to %%bcond macro |
---|
| 121 | |
---|
| 122 | * Mon Sep 07 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.7-1 |
---|
| 123 | - Update to 0.7 |
---|
| 124 | |
---|
| 125 | * Sat Sep 05 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6-2 |
---|
| 126 | - Spec file cleanups from review. |
---|
| 127 | |
---|
| 128 | * Mon Aug 01 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6-1 |
---|
| 129 | - Initial package |
---|