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 |
---|
5 | # or use bcond_without to change the default |
---|
6 | #%bcond_with gnome |
---|
7 | |
---|
8 | Name: viewnior |
---|
9 | Version: 1.6 |
---|
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: exiv2-devel |
---|
22 | BuildRequires: gdk-pixbuf2-devel >= 2.4.0 |
---|
23 | BuildRequires: glib2-devel >= 2.24 |
---|
24 | BuildRequires: gtk2-devel >= 2.20 |
---|
25 | BuildRequires: gnome-common |
---|
26 | BuildRequires: desktop-file-utils |
---|
27 | BuildRequires: gettext |
---|
28 | BuildRequires: intltool >= 0.35.0 |
---|
29 | BuildRequires: perl-XML-Parser |
---|
30 | BuildRequires: shared-mime-info >= 0.20 |
---|
31 | #%if %{with gnome} |
---|
32 | #BuildRequires: GConf2-devel |
---|
33 | #%endif |
---|
34 | |
---|
35 | |
---|
36 | %description |
---|
37 | Viewnior is an image viewer program. Created to be simple, fast and elegant. |
---|
38 | It's minimalistic interface provides more screen space for your images. Among |
---|
39 | its features are: |
---|
40 | |
---|
41 | * Fullscreen & Slideshow |
---|
42 | * Rotate, flip, save, delete images |
---|
43 | * Animation support |
---|
44 | * Browse only selected images |
---|
45 | * Navigation window |
---|
46 | * Simple interface |
---|
47 | * Configurable mouse actions |
---|
48 | |
---|
49 | |
---|
50 | %prep |
---|
51 | %setup -q -n Viewnior-%{name}-%{version} |
---|
52 | #%patch0 -p1 -b .dsofix |
---|
53 | # fix spurious executable perms |
---|
54 | chmod 0644 AUTHORS COPYING NEWS README TODO src/* |
---|
55 | |
---|
56 | |
---|
57 | %build |
---|
58 | ./autogen.sh |
---|
59 | %configure --enable-static=no \ |
---|
60 | #%if %{with gnome} |
---|
61 | # --enable-wallpaper |
---|
62 | #%endif |
---|
63 | |
---|
64 | make %{?_smp_mflags} V=1 |
---|
65 | |
---|
66 | |
---|
67 | %install |
---|
68 | rm -rf %{buildroot} |
---|
69 | make install DESTDIR=%{buildroot} INSTALL='install -p' |
---|
70 | %find_lang %{name} |
---|
71 | desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop |
---|
72 | |
---|
73 | |
---|
74 | %clean |
---|
75 | rm -rf %{buildroot} |
---|
76 | |
---|
77 | |
---|
78 | %post |
---|
79 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
80 | update-desktop-database &> /dev/null || : |
---|
81 | |
---|
82 | |
---|
83 | %postun |
---|
84 | if [ $1 -eq 0 ] ; then |
---|
85 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
86 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
87 | fi |
---|
88 | update-desktop-database &> /dev/null || : |
---|
89 | |
---|
90 | |
---|
91 | %posttrans |
---|
92 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
93 | |
---|
94 | |
---|
95 | %files -f %{name}.lang |
---|
96 | %defattr(-,root,root,-) |
---|
97 | %doc AUTHORS COPYING NEWS README TODO |
---|
98 | %{_bindir}/%{name} |
---|
99 | %{_datadir}/applications/%{name}.desktop |
---|
100 | %{_datadir}/icons/hicolor/*/apps/%{name}.* |
---|
101 | %{_datadir}/%{name}/ |
---|
102 | %{_mandir}/man?/ |
---|
103 | |
---|
104 | |
---|
105 | %changelog |
---|
106 | * Thu Mar 31 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6-1 |
---|
107 | - new upstream release |
---|
108 | - fixed %%doc in %%files |
---|
109 | |
---|
110 | * Sat Nov 14 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5-1 |
---|
111 | - new upstream release |
---|
112 | - deleted Patch0 |
---|
113 | - added BuildRequires: gnome-common |
---|
114 | |
---|
115 | * Sat Mar 08 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.4-1 |
---|
116 | - new upstream release |
---|
117 | - added BuildRequires: exiv2-devel |
---|
118 | |
---|
119 | * Tue Feb 28 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3-1 |
---|
120 | - new upstream release |
---|
121 | - dropt patch1 |
---|
122 | |
---|
123 | * Sat Feb 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2-1 |
---|
124 | - new upstream release |
---|
125 | - added patch1 to fix typo |
---|
126 | - added configure option: --enable-static=no |
---|
127 | |
---|
128 | * Thu Dec 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1-1 |
---|
129 | - initial build for VineSeed |
---|
130 | |
---|
131 | * Wed Mar 31 2010 Christoph Wickert <cwickert@fedoraproject.org> - 1.0-1 |
---|
132 | - Update to 1.0 |
---|
133 | |
---|
134 | * Tue Feb 16 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.7-2 |
---|
135 | - Add patch to fix DSO linking (#565018) |
---|
136 | - Switch to %%bcond macro |
---|
137 | |
---|
138 | * Mon Sep 07 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.7-1 |
---|
139 | - Update to 0.7 |
---|
140 | |
---|
141 | * Sat Sep 05 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6-2 |
---|
142 | - Spec file cleanups from review. |
---|
143 | |
---|
144 | * Sat Aug 01 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6-1 |
---|
145 | - Initial package |
---|