From e742db04e57fa8e409268614ae12459a2e32c896 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Wed, 22 Jul 2015 12:23:24 +0000 Subject: [PATCH] - from PLD --- lxlauncher.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 lxlauncher.spec diff --git a/lxlauncher.spec b/lxlauncher.spec new file mode 100644 index 0000000..46c8c63 --- /dev/null +++ b/lxlauncher.spec @@ -0,0 +1,62 @@ +# +# Conditional build: +%bcond_with gtk3 # build GTK+3 disables GTK+2 +%bcond_without gtk2 # build with GTK+2 + +%if %{with gtk3} +%undefine with_gtk2 +%endif + +Summary: lxauncher +Name: lxlauncher +Version: 0.2.2 +Release: 3 +License: GPL v3 +Group: X11/Applications +Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz +# Source0-md5: 16df627447838b170a72cc3a9ee21497 +URL: http://wiki.lxde.org/en/LXLauncher +BuildRequires: gettext-tools +%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0} +%{?with_gtk3:BuildRequires: gtk+3-devel} +BuildRequires: intltool >= 0.40.0 +BuildRequires: menu-cache-devel +BuildRequires: pkgconfig +BuildRequires: startup-notification-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +LXLauncher is an open source clone of Asus launcher for EeePC. It +outperformes the original launcher developed by Xandros. + +%prep +%setup -q + +%build +%configure \ + %{?with_gtk3:--enable-gtk3} +touch po/stamp-it +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +# there is no frp locale so drop frp +%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK} +mv $RPM_BUILD_ROOT%{_datadir}/locale/tt{_RU,} + +%find_lang %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.lang +%defattr(644,root,root,755) +%doc AUTHORS README NEWS +%{_sysconfdir}/xdg/lxlauncher +%{_sysconfdir}/xdg/menus/lxlauncher-applications.menu +%attr(755,root,root) %{_bindir}/lxlauncher +%{_datadir}/desktop-directories/*directory -- 2.37.3