46c8c6398a9749cfeccbe7c48925df1571f2ae83
[packages/lxlauncher.git] / lxlauncher.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:        lxauncher
11 Name:           lxlauncher
12 Version:        0.2.2
13 Release:        3
14 License:        GPL v3
15 Group:          X11/Applications
16 Source0:        http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
17 # Source0-md5:  16df627447838b170a72cc3a9ee21497
18 URL:            http://wiki.lxde.org/en/LXLauncher
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 >= 0.40.0
23 BuildRequires:  menu-cache-devel
24 BuildRequires:  pkgconfig
25 BuildRequires:  startup-notification-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 LXLauncher is an open source clone of Asus launcher for EeePC. It
30 outperformes the original launcher developed by Xandros.
31
32 %prep
33 %setup -q
34
35 %build
36 %configure \
37         %{?with_gtk3:--enable-gtk3}
38 touch po/stamp-it
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43
44 %{__make} install \
45         DESTDIR=$RPM_BUILD_ROOT
46
47 # there is no frp locale so drop frp
48 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK}
49 mv $RPM_BUILD_ROOT%{_datadir}/locale/tt{_RU,}
50
51 %find_lang %{name}
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files -f %{name}.lang
57 %defattr(644,root,root,755)
58 %doc AUTHORS README NEWS
59 %{_sysconfdir}/xdg/lxlauncher
60 %{_sysconfdir}/xdg/menus/lxlauncher-applications.menu
61 %attr(755,root,root) %{_bindir}/lxlauncher
62 %{_datadir}/desktop-directories/*directory