2 %bcond_with gtk3 # build GTK+3 disables GTK+2
3 %bcond_without gtk2 # build with GTK+2
9 Summary: Desktop-independent theme switcher for GTK+
14 Group: X11/Applications
15 Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
16 # Source0-md5: f10345313e2c12bad51c1b58bd46b454
17 URL: http://wiki.lxde.org/en/LXAppearance
18 BuildRequires: gettext-tools
19 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
20 %{?with_gtk3:BuildRequires: gtk+3-devel}
21 BuildRequires: intltool
22 BuildRequires: pkgconfig
23 BuildRequires: tar >= 1:1.22
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 LXAppearance is part of LXDE project. It's a desktop-independent theme
32 Summary: Header files for lxappearance
33 Group: Development/Libraries
34 Requires: %{name} = %{version}-%{release}
37 Header files for lxappearance.
44 %{?with_gtk3:--enable-gtk3}
48 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_libdir}/lxappearance/plugins
54 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tt_RU
59 rm -rf $RPM_BUILD_ROOT
61 %files -f %{name}.lang
62 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_bindir}/lxappearance
65 %dir %{_libdir}/lxappearance
66 %dir %{_libdir}/lxappearance/plugins
67 %{_mandir}/man1/lxappearance.1*
68 %{_desktopdir}/lxappearance.desktop
69 %{_datadir}/lxappearance
72 %defattr(644,root,root,755)
73 %dir %{_includedir}/lxappearance
74 %{_includedir}/lxappearance/lxappearance.h
75 %{_pkgconfigdir}/lxappearance.pc