]> TLD Linux GIT Repositories - packages/gpicview.git/blob - gpicview.spec
- from PLD
[packages/gpicview.git] / gpicview.spec
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
10 Summary:        GPicView: Picture viewer of LXDE
11 Name:           gpicview
12 Version:        0.2.4
13 Release:        1
14 License:        GPL v2, LGPL
15 Group:          X11/Applications
16 Source0:        http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
17 # Source0-md5:  b209e36531f89c48e3067b389699d4c7
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)
31
32 %description
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
39
40 %prep
41 %setup -q
42
43 %build
44 %{__libtoolize}
45 %{__aclocal}
46 %{__autoheader}
47 %{__autoconf}
48 %{__intltoolize}
49 %configure \
50         %{?with_gtk3:--enable-gtk3}
51 %{__make} V=1
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 # missing in glibc
59 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK}
60
61 %find_lang %{name}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %post
67 %update_desktop_database
68
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
76 %{_iconsdir}/*/*/apps/*.png