]>
Commit | Line | Data |
---|---|---|
c00b9326 JP |
1 | # |
2 | # Conditional build: | |
1b5ade38 | 3 | %bcond_without appindicator # build without appindicator support |
c00b9326 JP |
4 | %bcond_with zeitgeist # build with zeitgeist support (causes stability issues) |
5 | ||
f18e266b | 6 | Summary: Application launcher |
7 | Name: synapse | |
9430d791 | 8 | Version: 0.2.99.4 |
130c4ef6 | 9 | Release: 1 |
f18e266b | 10 | License: GPL v3+ |
11 | Group: X11/Applications | |
01e79a45 | 12 | Source0: https://launchpad.net/synapse-project/0.3/%{version}/+download/%{name}-%{version}.tar.xz |
9430d791 | 13 | # Source0-md5: 38105c87200d82cf2066fb70cc9af59f |
a992cc22 | 14 | Patch0: %{name}-mate.patch |
f273526a | 15 | URL: https://launchpad.net/synapse-project |
9027cc73 JP |
16 | BuildRequires: autoconf >= 2.65 |
17 | BuildRequires: automake >= 1:1.11 | |
130c4ef6 | 18 | BuildRequires: gettext-tools >= 0.19.6 |
9027cc73 JP |
19 | BuildRequires: glib2-devel >= 1:2.28.0 |
20 | BuildRequires: gtk+3-devel | |
a992cc22 | 21 | BuildRequires: json-glib-devel >= 0.10.0 |
9027cc73 | 22 | BuildRequires: keybinder3-devel |
1b5ade38 | 23 | %{?with_appindicator:BuildRequires: libappindicator-gtk3-devel} |
9027cc73 | 24 | BuildRequires: libgee-devel >= 0.5.2 |
a992cc22 | 25 | BuildRequires: libnotify-devel |
9027cc73 JP |
26 | BuildRequires: libtool |
27 | BuildRequires: pkgconfig >= 1:0.21 | |
28 | BuildRequires: rest-devel >= 0.7 | |
f0e68764 | 29 | BuildRequires: rpmbuild(macros) >= 1.527 |
9027cc73 | 30 | BuildRequires: vala >= 0.16.0 |
1b5ade38 | 31 | %{?with_appindicator:BuildRequires: vala-libappindicator-gtk3} |
9027cc73 | 32 | BuildRequires: vala-libgee >= 0.6.4 |
c00b9326 | 33 | %if %{with zeitgeist} |
9027cc73 JP |
34 | BuildRequires: vala-zeitgeist >= 0.9.14 |
35 | BuildRequires: zeitgeist-devel >= 0.9.14 | |
c00b9326 | 36 | %endif |
1182eafc JP |
37 | Requires: glib2 >= 1:2.28.0 |
38 | Requires: json-glib >= 0.10.0 | |
39 | Requires: libgee >= 0.5.2 | |
40 | Requires: rest >= 0.7 | |
41 | %if %{with zeitgeist} | |
42 | Requires: zeitgeist-libs >= 0.9.14 | |
43 | %endif | |
f18e266b | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
46 | %description | |
47 | Synapse is a semantic launcher written in Vala that you can use to | |
48 | start applications as well as find and access relevant documents and | |
c118d9e0 | 49 | files by making use of the Zeitgeist engine. |
f18e266b | 50 | |
51 | %prep | |
52 | %setup -q | |
a992cc22 | 53 | %patch0 -p1 |
f18e266b | 54 | |
55 | %build | |
130c4ef6 | 56 | %{__gettextize} |
9027cc73 JP |
57 | %{__libtoolize} |
58 | %{__aclocal} | |
a992cc22 JP |
59 | %{__autoconf} |
60 | %{__autoheader} | |
61 | %{__automake} | |
62 | %configure \ | |
63 | --disable-silent-rules \ | |
64 | --enable-librest=yes \ | |
1b5ade38 | 65 | %{__enable_disable appindicator indicator} \ |
c00b9326 | 66 | %{__enable_disable zeitgeist} |
f18e266b | 67 | %{__make} |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
a8960794 | 75 | %find_lang %{name} |
76 | ||
f18e266b | 77 | %clean |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post | |
81 | %update_icon_cache hicolor | |
82 | %update_desktop_database | |
f18e266b | 83 | |
84 | %postun | |
85 | %update_icon_cache hicolor | |
86 | %update_desktop_database_postun | |
f18e266b | 87 | |
a8960794 | 88 | %files -f %{name}.lang |
f18e266b | 89 | %defattr(644,root,root,755) |
a8960794 | 90 | %attr(755,root,root) %{_bindir}/synapse |
91 | %{_iconsdir}/hicolor/scalable/apps/*.svg | |
92 | %{_desktopdir}/*.desktop | |
93 | %{_mandir}/man1/synapse.* |