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 URL: http://wiki.lxde.org/en/LXAppearance
19 BuildRequires: gettext-devel
20 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
21 %{?with_gtk3:BuildRequires: gtk+3-devel}
22 BuildRequires: intltool
23 BuildRequires: pkgconfig
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 LXAppearance is part of LXDE project. It's a desktop-independent theme
31 Summary: Header files for lxappearance
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
36 Header files for lxappearance.
43 %{?with_gtk3:--enable-gtk3}
47 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{_libdir}/lxappearance/plugins
53 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/tt_RU
58 rm -rf $RPM_BUILD_ROOT
60 %files -f %{name}.lang
61 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_bindir}/lxappearance
64 %dir %{_libdir}/lxappearance
65 %dir %{_libdir}/lxappearance/plugins
66 %{_mandir}/man1/lxappearance.1*
67 %{_desktopdir}/lxappearance.desktop
68 %{_datadir}/lxappearance
71 %defattr(644,root,root,755)
72 %dir %{_includedir}/lxappearance
73 %{_includedir}/lxappearance/lxappearance.h
74 %{_pkgconfigdir}/lxappearance.pc