]>
Commit | Line | Data |
---|---|---|
83690273 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 | ||
f1ba9f94 | 10 | Summary: lxauncher |
11 | Name: lxlauncher | |
83690273 ER |
12 | Version: 0.2.2 |
13 | Release: 1 | |
f1ba9f94 | 14 | License: GPL v3 |
15 | Group: X11/Applications | |
16 | Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz | |
83690273 | 17 | # Source0-md5: 16df627447838b170a72cc3a9ee21497 |
f0d662dc | 18 | URL: http://wiki.lxde.org/en/LXLauncher |
f1ba9f94 | 19 | BuildRequires: gettext-devel |
83690273 ER |
20 | %{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0} |
21 | %{?with_gtk3:BuildRequires: gtk+3-devel} | |
f1ba9f94 | 22 | BuildRequires: intltool >= 0.40.0 |
b66193d4 | 23 | BuildRequires: menu-cache-devel |
f1ba9f94 | 24 | BuildRequires: pkgconfig |
b66193d4 | 25 | BuildRequires: startup-notification-devel |
f1ba9f94 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
b66193d4 ER |
29 | LXLauncher is an open source clone of Asus launcher for EeePC. It |
30 | outperformes the original launcher developed by Xandros. | |
f1ba9f94 | 31 | |
32 | %prep | |
33 | %setup -q | |
f1ba9f94 | 34 | |
35 | %build | |
83690273 ER |
36 | %configure \ |
37 | %{?with_gtk3:--enable-gtk3} | |
b66193d4 | 38 | touch po/stamp-it |
f1ba9f94 | 39 | %{__make} |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
4a37664a MB |
47 | # there is ur locale so drop ur_PK |
48 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK | |
49 | ||
f1ba9f94 | 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 README NEWS | |
58 | %{_sysconfdir}/xdg/lxlauncher | |
59 | %{_sysconfdir}/xdg/menus/lxlauncher-applications.menu | |
60 | %attr(755,root,root) %{_bindir}/lxlauncher | |
61 | %{_datadir}/desktop-directories/*directory |