]>
Commit | Line | Data |
---|---|---|
83690273 ER |
1 | # |
2 | # Conditional build: | |
6523c551 | 3 | %bcond_without gtk3 # use GTK+3 instead of GTK+2 |
83690273 | 4 | |
68de2c7e JB |
5 | Summary: Open source clone of Asus launcher for EeePC |
6 | Summary(pl.UTF-8): Mający otwarte źródła klon Asus launchera dla EeePC | |
f1ba9f94 | 7 | Name: lxlauncher |
68de2c7e | 8 | Version: 0.2.5 |
6523c551 | 9 | Release: 2 |
68de2c7e | 10 | License: GPL v2+ |
f1ba9f94 | 11 | Group: X11/Applications |
68de2c7e JB |
12 | Source0: https://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 94a7a36af92f8409365b6a25b6904eeb | |
14 | URL: http://www.lxde.org/ | |
39a55bb4 | 15 | BuildRequires: gettext-tools |
68de2c7e JB |
16 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.12.0} |
17 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
f1ba9f94 | 18 | BuildRequires: intltool >= 0.40.0 |
b66193d4 | 19 | BuildRequires: menu-cache-devel |
f1ba9f94 | 20 | BuildRequires: pkgconfig |
b66193d4 | 21 | BuildRequires: startup-notification-devel |
68de2c7e JB |
22 | BuildRequires: tar >= 1:1.22 |
23 | BuildRequires: xorg-lib-libX11-devel | |
24 | BuildRequires: xz | |
25 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.12.0} | |
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 | |
68de2c7e JB |
32 | %description -l pl.UTF-8 |
33 | LXLauncher to mający otwarte źródła klon Asus launchera dla EeePC. | |
34 | Działa lepiej niż oryginał stworzony przez firmę Xandros. | |
35 | ||
f1ba9f94 | 36 | %prep |
37 | %setup -q | |
f1ba9f94 | 38 | |
39 | %build | |
83690273 ER |
40 | %configure \ |
41 | %{?with_gtk3:--enable-gtk3} | |
68de2c7e | 42 | |
f1ba9f94 | 43 | %{__make} |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %{__make} install \ | |
49 | DESTDIR=$RPM_BUILD_ROOT | |
50 | ||
68de2c7e JB |
51 | # unify name |
52 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{tt_RU,tt} | |
53 | # not supported by glibc | |
54 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/frp | |
55 | # just a copy of ur | |
56 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ur_PK | |
4a37664a | 57 | |
f1ba9f94 | 58 | %find_lang %{name} |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files -f %{name}.lang | |
64 | %defattr(644,root,root,755) | |
68de2c7e | 65 | %doc AUTHORS NEWS README TODO |
f1ba9f94 | 66 | %{_sysconfdir}/xdg/lxlauncher |
67 | %{_sysconfdir}/xdg/menus/lxlauncher-applications.menu | |
68 | %attr(755,root,root) %{_bindir}/lxlauncher | |
69 | %{_datadir}/desktop-directories/*directory | |
68de2c7e | 70 | %{_mandir}/man1/lxlauncher.1* |