]>
Commit | Line | Data |
---|---|---|
4be2aef7 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk3 # build GTK+3 disables GTK+2 | |
4 | %bcond_without gtk2 # build with GTK+2 | |
5 | ||
6 | %if %{with gtk3} | |
7 | %undefine with_gtk2 | |
8 | %endif | |
9 | ||
bba5c251 ER |
10 | Summary: GPicView: Picture viewer of LXDE |
11 | Name: gpicview | |
4c7a4a45 | 12 | Version: 0.2.4 |
a54e9a3e | 13 | Release: 1 |
bba5c251 ER |
14 | License: GPL v2, LGPL |
15 | Group: X11/Applications | |
4be2aef7 | 16 | Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz |
4c7a4a45 | 17 | # Source0-md5: b209e36531f89c48e3067b389699d4c7 |
bba5c251 ER |
18 | URL: http://wiki.lxde.org/en/GPicView |
19 | BuildRequires: autoconf | |
20 | BuildRequires: automake | |
f073ae4c ER |
21 | BuildRequires: gettext-devel |
22 | BuildRequires: glib2-devel | |
4be2aef7 ER |
23 | %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0} |
24 | %{?with_gtk3:BuildRequires: gtk+3-devel} | |
f073ae4c ER |
25 | BuildRequires: intltool |
26 | BuildRequires: libjpeg-devel | |
bba5c251 | 27 | BuildRequires: libtool |
f073ae4c | 28 | BuildRequires: pkgconfig |
ffedb750 | 29 | Requires: desktop-file-utils |
bba5c251 ER |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
78e6605d ER |
33 | GPicView is the standard picture viewer of LXDE. |
34 | ||
35 | Features: | |
36 | - Extremely lightweight and fast with low memory usage | |
37 | - Very suitable for default image viewer of desktop system | |
38 | - Simple and intuitive interface | |
bba5c251 ER |
39 | |
40 | %prep | |
41 | %setup -q | |
42 | ||
43 | %build | |
44 | %{__libtoolize} | |
45 | %{__aclocal} | |
46 | %{__autoheader} | |
47 | %{__autoconf} | |
48 | %{__intltoolize} | |
4be2aef7 ER |
49 | %configure \ |
50 | %{?with_gtk3:--enable-gtk3} | |
a54e9a3e | 51 | %{__make} V=1 |
bba5c251 ER |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
bf09dd3a | 58 | # missing in glibc |
650bac35 | 59 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK} |
bf09dd3a | 60 | |
bba5c251 ER |
61 | %find_lang %{name} |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
ffedb750 ER |
66 | %post |
67 | %update_desktop_database | |
68 | ||
bba5c251 ER |
69 | %files -f %{name}.lang |
70 | %defattr(644,root,root,755) | |
71 | %attr(755,root,root) %{_bindir}/%{name} | |
72 | %{_desktopdir}/%{name}.desktop | |
73 | %dir %{_datadir}/%{name} | |
74 | %{_datadir}/%{name}/pixmaps | |
75 | %{_datadir}/%{name}/ui | |
4c7a4a45 | 76 | %{_iconsdir}/*/*/apps/*.png |