]> git.pld-linux.org Git - packages/lxappearance.git/blob - lxappearance.spec
disable visibility in MATE; mate has own tool for this
[packages/lxappearance.git] / lxappearance.spec
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:        Desktop-independent theme switcher for GTK+
11 Name:           lxappearance
12 Version:        0.5.2
13 Release:        2
14 License:        GPL v3
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)
26
27 %description
28 LXAppearance is part of LXDE project. It's a desktop-independent theme
29 switcher for GTK+.
30
31 %package devel
32 Summary:        Header files for lxappearance
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 Header files for lxappearance.
38
39 %prep
40 %setup -q
41 %patch0 -p1
42
43 %build
44 %configure \
45         %{?with_gtk3:--enable-gtk3}
46 %{__make} V=1
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 install -d $RPM_BUILD_ROOT%{_libdir}/lxappearance/plugins
54
55 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tt_RU
56
57 %find_lang %{name}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files -f %{name}.lang
63 %defattr(644,root,root,755)
64 %doc AUTHORS README
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
71
72 %files devel
73 %defattr(644,root,root,755)
74 %dir %{_includedir}/lxappearance
75 %{_includedir}/lxappearance/lxappearance.h
76 %{_pkgconfigdir}/lxappearance.pc
This page took 0.075879 seconds and 3 git commands to generate.