]>
Commit | Line | Data |
---|---|---|
68490b42 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 | ||
04069145 | 10 | Summary: Desktop-independent theme switcher for GTK+ |
11 | Name: lxappearance | |
dcee171d | 12 | Version: 0.5.2 |
df4f3981 | 13 | Release: 2 |
04069145 | 14 | License: GPL v3 |
15 | Group: X11/Applications | |
16 | Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz | |
dcee171d | 17 | # Source0-md5: a088c6ef08fd25df7dc3be5b07168bbe |
df4f3981 | 18 | Patch0: mate-desktop.patch |
bd9ecf20 | 19 | URL: http://wiki.lxde.org/en/LXAppearance |
c7172354 | 20 | BuildRequires: gettext-devel |
68490b42 ER |
21 | %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0} |
22 | %{?with_gtk3:BuildRequires: gtk+3-devel} | |
c7172354 KK |
23 | BuildRequires: intltool |
24 | BuildRequires: pkgconfig | |
04069145 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | LXAppearance is part of LXDE project. It's a desktop-independent theme | |
29 | switcher for GTK+. | |
30 | ||
5c104ac5 ER |
31 | %package devel |
32 | Summary: Header files for lxappearance | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | Header files for lxappearance. | |
38 | ||
04069145 | 39 | %prep |
40 | %setup -q | |
df4f3981 | 41 | %patch0 -p1 |
04069145 | 42 | |
43 | %build | |
68490b42 ER |
44 | %configure \ |
45 | %{?with_gtk3:--enable-gtk3} | |
dcee171d | 46 | %{__make} V=1 |
04069145 | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
04069145 | 50 | %{__make} install \ |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
a4f59402 ER |
53 | install -d $RPM_BUILD_ROOT%{_libdir}/lxappearance/plugins |
54 | ||
df4f3981 | 55 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tt_RU |
68490b42 | 56 | |
04069145 | 57 | %find_lang %{name} |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files -f %{name}.lang | |
63 | %defattr(644,root,root,755) | |
64 | %doc AUTHORS README | |
65 | %attr(755,root,root) %{_bindir}/lxappearance | |
a4f59402 ER |
66 | %dir %{_libdir}/lxappearance |
67 | %dir %{_libdir}/lxappearance/plugins | |
da7065c1 | 68 | %{_mandir}/man1/lxappearance.1* |
04069145 | 69 | %{_desktopdir}/lxappearance.desktop |
70 | %{_datadir}/lxappearance | |
5c104ac5 ER |
71 | |
72 | %files devel | |
73 | %defattr(644,root,root,755) | |
74 | %dir %{_includedir}/lxappearance | |
75 | %{_includedir}/lxappearance/lxappearance.h | |
76 | %{_pkgconfigdir}/lxappearance.pc |