]> git.pld-linux.org Git - packages/synapse.git/blobdiff - synapse.spec
add appindicator bcond
[packages/synapse.git] / synapse.spec
index 52586e293a2cc30da19156aeaa2d6a140d050f97..6656478ed4830d6c27a794a472db7d60442e0e9b 100644 (file)
@@ -1,45 +1,58 @@
-%define                rev     594
 #
+# Conditional build:
+%bcond_without appindicator    # build without appindicator support
+%bcond_with    zeitgeist       # build with zeitgeist support (causes stability issues)
+
 Summary:       Application launcher
 Name:          synapse
-Version:       0.2.99
-Release:       0.%{rev}.1
+Version:       0.2.99.4
+Release:       1
 License:       GPL v3+
 Group:         X11/Applications
-Source0:       %{name}-%{version}-r%{rev}.tar.gz
-# Source0-md5: 3fcd00e82bc89cd55a9eb3c75f9ce7c7
+Source0:       https://launchpad.net/synapse-project/0.3/%{version}/+download/%{name}-%{version}.tar.xz
+# Source0-md5: 38105c87200d82cf2066fb70cc9af59f
 Patch0:                %{name}-mate.patch
-URL:           http://synapse.zeitgeist-project.com/
+URL:           https://launchpad.net/synapse-project
 BuildRequires: autoconf >= 2.65
 BuildRequires: automake >= 1:1.11
+BuildRequires: gettext-tools >= 0.19.6
 BuildRequires: glib2-devel >= 1:2.28.0
 BuildRequires: gtk+3-devel
-BuildRequires: intltool >= 0.35.0
 BuildRequires: json-glib-devel >= 0.10.0
 BuildRequires: keybinder3-devel
+%{?with_appindicator:BuildRequires:    libappindicator-gtk3-devel}
 BuildRequires: libgee-devel >= 0.5.2
 BuildRequires: libnotify-devel
 BuildRequires: libtool
 BuildRequires: pkgconfig >= 1:0.21
 BuildRequires: rest-devel >= 0.7
 BuildRequires: vala >= 0.16.0
+%{?with_appindicator:BuildRequires:    vala-libappindicator-gtk3}
 BuildRequires: vala-libgee >= 0.6.4
+%if %{with zeitgeist}
 BuildRequires: vala-zeitgeist >= 0.9.14
 BuildRequires: zeitgeist-devel >= 0.9.14
+%endif
+Requires:      glib2 >= 1:2.28.0
+Requires:      json-glib >= 0.10.0
+Requires:      libgee >= 0.5.2
+Requires:      rest >= 0.7
+%if %{with zeitgeist}
+Requires:      zeitgeist-libs >= 0.9.14
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Synapse is a semantic launcher written in Vala that you can use to
 start applications as well as find and access relevant documents and
-files by making use of the Zeitgeist engine. 
+files by making use of the Zeitgeist engine.
 
 %prep
 %setup -q
 %patch0 -p1
-%{__mkdir} m4
 
 %build
-%{__intltoolize}
+%{__gettextize}
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
@@ -48,7 +61,8 @@ files by making use of the Zeitgeist engine.
 %configure \
        --disable-silent-rules \
        --enable-librest=yes \
-       --enable-zeitgeist=yes
+       %{__enable_disable appindicator indicator} \
+       %{__enable_disable zeitgeist}
 %{__make}
 
 %install
This page took 0.058714 seconds and 4 git commands to generate.