3 %bcond_with gtk3 # build GTK+3 disables GTK+2
4 %bcond_without gtk2 # build with GTK+2
10 Summary: Desktop-independent theme switcher for GTK+
15 Group: X11/Applications
16 Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
17 # Source0-md5: 79740125628a8374c1101cf26e558fa5
18 Patch0: mate-desktop.patch
19 URL: http://wiki.lxde.org/en/LXAppearance
20 BuildRequires: gettext-tools
21 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
22 %{?with_gtk3:BuildRequires: gtk+3-devel}
23 BuildRequires: intltool
24 BuildRequires: pkgconfig
25 BuildRequires: tar >= 1:1.22
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 LXAppearance is part of LXDE project. It's a desktop-independent theme
34 Summary: Header files for lxappearance
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
39 Header files for lxappearance.
47 %{?with_gtk3:--enable-gtk3}
51 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_libdir}/lxappearance/plugins
57 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tt_RU
62 rm -rf $RPM_BUILD_ROOT
64 %files -f %{name}.lang
65 %defattr(644,root,root,755)
67 %attr(755,root,root) %{_bindir}/lxappearance
68 %dir %{_libdir}/lxappearance
69 %dir %{_libdir}/lxappearance/plugins
70 %{_mandir}/man1/lxappearance.1*
71 %{_desktopdir}/lxappearance.desktop
72 %{_datadir}/lxappearance
75 %defattr(644,root,root,755)
76 %dir %{_includedir}/lxappearance
77 %{_includedir}/lxappearance/lxappearance.h
78 %{_pkgconfigdir}/lxappearance.pc