]>
Commit | Line | Data |
---|---|---|
cb4033f0 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk3 # build GTK+3 disables GTK+2 | |
4 | %bcond_without gtk2 # build with GTK+2 | |
5 | ||
6 | %if %{with gtk3} | |
7 | %undefine with_gtk2 | |
8 | %endif | |
9 | ||
10 | Summary: LXAppearance ObConf plugin | |
11 | Name: lxappearance-obconf | |
85d4d5df | 12 | Version: 0.2.1 |
7d13756d | 13 | Release: 2 |
cb4033f0 ER |
14 | License: GPL v2 |
15 | Group: X11/Applications | |
16 | Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz | |
85d4d5df | 17 | # Source0-md5: 1f061c96e0c78a6476421ca294ac24aa |
cb4033f0 | 18 | URL: http://wiki.lxde.org/en/LXAppearance |
234ee4b1 | 19 | BuildRequires: gettext-tools |
cb4033f0 ER |
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) | |
27 | ||
28 | %description | |
29 | LXAppearance integrated ObConf to provide a better user experience. | |
30 | ||
31 | ObConf is a program used to configure OpenBox window manager. | |
32 | ||
33 | %prep | |
34 | %setup -q | |
35 | ||
36 | %build | |
37 | %configure \ | |
38 | --disable-static \ | |
39 | %{?with_gtk3:--enable-gtk3} | |
85d4d5df | 40 | %{__make} V=1 |
cb4033f0 ER |
41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | %{__make} install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lxappearance/plugins/obconf.la | |
cb5fc61e | 48 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/tt_RU |
cb4033f0 ER |
49 | |
50 | %find_lang %{name} | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
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 |