3 %bcond_with gtk3 # build GTK+3 disables GTK+2
4 %bcond_without gtk2 # build with GTK+2
10 Summary: GPicView: Picture viewer of LXDE
15 Group: X11/Applications
16 Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
17 # Source0-md5: 26be9b0c5a234f1afe7d83d02a4a33f4
18 URL: http://wiki.lxde.org/en/GPicView
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: gettext-tools
22 BuildRequires: glib2-devel
23 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
24 %{?with_gtk3:BuildRequires: gtk+3-devel}
25 BuildRequires: intltool
26 BuildRequires: libjpeg-devel
27 BuildRequires: libtool
28 BuildRequires: pkgconfig
29 Requires: desktop-file-utils
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 GPicView is the standard picture viewer of LXDE.
36 - Extremely lightweight and fast with low memory usage
37 - Very suitable for default image viewer of desktop system
38 - Simple and intuitive interface
51 %{?with_gtk3:--enable-gtk3}
55 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK
65 rm -rf $RPM_BUILD_ROOT
68 %update_desktop_database
70 %files -f %{name}.lang
71 %defattr(644,root,root,755)
72 %attr(755,root,root) %{_bindir}/%{name}
73 %{_desktopdir}/%{name}.desktop
74 %dir %{_datadir}/%{name}
75 %{_datadir}/%{name}/pixmaps
76 %{_datadir}/%{name}/ui
77 %{_iconsdir}/*/*/apps/*.png