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.gz
17 # Source0-md5: a088c6ef08fd25df7dc3be5b07168bbe
18 Patch0: mate-desktop.patch
19 URL: http://wiki.lxde.org/en/LXAppearance
20 BuildRequires: gettext-devel
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 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.
45 %{?with_gtk3:--enable-gtk3}
49 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{_libdir}/lxappearance/plugins
55 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tt_RU
60 rm -rf $RPM_BUILD_ROOT
62 %files -f %{name}.lang
63 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_bindir}/lxappearance
66 %dir %{_libdir}/lxappearance
67 %dir %{_libdir}/lxappearance/plugins
68 %{_mandir}/man1/lxappearance.1*
69 %{_desktopdir}/lxappearance.desktop
70 %{_datadir}/lxappearance
73 %defattr(644,root,root,755)
74 %dir %{_includedir}/lxappearance
75 %{_includedir}/lxappearance/lxappearance.h
76 %{_pkgconfigdir}/lxappearance.pc