]> git.pld-linux.org Git - packages/lxlauncher.git/blobdiff - lxlauncher.spec
- up to 0.2.2, gtk3 bcond
[packages/lxlauncher.git] / lxlauncher.spec
index c60bd75012669e0f69ff1b141eb5a5bffc4abffe..402562b1cc43bc4a2022ca11dd9ac8e7db18e180 100644 (file)
@@ -1,30 +1,41 @@
+#
+# 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.1
+Version:       0.2.2
 Release:       1
 License:       GPL v3
 Group:         X11/Applications
 Source0:       http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.gz
-# Source0-md5: 5dbe6076eb1a411278e1fc2bccf2d75d
-# From Mandriva
-Patch0:                %{name}-0.2.1-fix-segfault.patch
+# Source0-md5: 16df627447838b170a72cc3a9ee21497
 URL:           http://wiki.lxde.org/en/LXLauncher
 BuildRequires: gettext-devel
-BuildRequires: gtk+2-devel >= 2:2.12.0
+%{?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.
+LXLauncher is an open source clone of Asus launcher for EeePC. It
+outperformes the original launcher developed by Xandros.
 
 %prep
 %setup -q
-%patch0 -p0
 
 %build
-%configure
+%configure \
+       %{?with_gtk3:--enable-gtk3}
+touch po/stamp-it
 %{__make}
 
 %install
@@ -33,6 +44,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# there is ur locale so drop ur_PK
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK
+
 %find_lang %{name}
 
 %clean
This page took 0.035655 seconds and 4 git commands to generate.