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