]> git.pld-linux.org Git - packages/gpicview.git/blame - gpicview.spec
- up to 0.2.4
[packages/gpicview.git] / gpicview.spec
CommitLineData
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
10Summary: GPicView: Picture viewer of LXDE
11Name: gpicview
4c7a4a45 12Version: 0.2.4
a54e9a3e 13Release: 1
bba5c251
ER
14License: GPL v2, LGPL
15Group: X11/Applications
4be2aef7 16Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
4c7a4a45 17# Source0-md5: b209e36531f89c48e3067b389699d4c7
bba5c251
ER
18URL: http://wiki.lxde.org/en/GPicView
19BuildRequires: autoconf
20BuildRequires: automake
f073ae4c
ER
21BuildRequires: gettext-devel
22BuildRequires: glib2-devel
4be2aef7
ER
23%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
24%{?with_gtk3:BuildRequires: gtk+3-devel}
f073ae4c
ER
25BuildRequires: intltool
26BuildRequires: libjpeg-devel
bba5c251 27BuildRequires: libtool
f073ae4c 28BuildRequires: pkgconfig
ffedb750 29Requires: desktop-file-utils
bba5c251
ER
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
78e6605d
ER
33GPicView is the standard picture viewer of LXDE.
34
35Features:
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
54rm -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
64rm -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
This page took 0.174779 seconds and 4 git commands to generate.