3 %bcond_with gtk3 # build GTK+3 disables GTK+2
4 %bcond_without gtk2 # build with GTK+2
10 Summary: LXAppearance ObConf plugin
11 Name: lxappearance-obconf
15 Group: X11/Applications
16 Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
17 # Source0-md5: 1f061c96e0c78a6476421ca294ac24aa
18 URL: http://wiki.lxde.org/en/LXAppearance
19 BuildRequires: gettext-tools
20 %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0}
21 %{?with_gtk3:BuildRequires: gtk+3-devel}
22 BuildRequires: intltool
23 BuildRequires: lxappearance-devel
24 BuildRequires: openbox-devel
25 BuildRequires: pkgconfig
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 LXAppearance integrated ObConf to provide a better user experience.
31 ObConf is a program used to configure OpenBox window manager.
39 %{?with_gtk3:--enable-gtk3}
43 rm -rf $RPM_BUILD_ROOT
45 DESTDIR=$RPM_BUILD_ROOT
47 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lxappearance/plugins/obconf.la
48 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/tt_RU
53 rm -rf $RPM_BUILD_ROOT
55 %files -f %{name}.lang
56 %defattr(644,root,root,755)
57 %doc AUTHORS CHANGELOG README
58 %attr(755,root,root) %{_libdir}/lxappearance/plugins/obconf.so
59 %dir %{_datadir}/lxappearance/obconf
60 %{_datadir}/lxappearance/obconf/obconf.glade