]>
Commit | Line | Data |
---|---|---|
1253c3bb | 1 | # |
6a7d7a23 ER |
2 | # Conditional build: |
3 | %bcond_without dbus # dbus support | |
4 | # | |
eff56e8a | 5 | %define qtver 4.6.1 |
9897709b | 6 | #%define _svnver 850421 |
7 | ||
493bcf16 | 8 | Summary: Strigi desktop search |
abba28fc | 9 | Summary(pl.UTF-8): System wyszukiwania Strigi |
1253c3bb | 10 | Name: strigi |
eff56e8a | 11 | Version: 0.7.2 |
2d5e72fb | 12 | Release: 3 |
1253c3bb | 13 | License: GPL |
14 | Group: X11/Applications | |
15 | Source0: http://www.vandenoever.info/software/strigi/%{name}-%{version}.tar.bz2 | |
eff56e8a | 16 | # Source0-md5: ca09ba176cf3ffe9afce4d92f38f9a85 |
1becfb15 | 17 | URL: http://strigi.sourceforge.net/ |
9897709b | 18 | BuildRequires: QtDBus-devel >= %{qtver} |
19 | BuildRequires: QtGui-devel >= %{qtver} | |
6a7d7a23 | 20 | BuildRequires: bzip2-devel |
7af46775 | 21 | BuildRequires: clucene-core-devel |
9897709b | 22 | BuildRequires: cmake >= 2.6.2 |
f331c639 | 23 | BuildRequires: cppunit-devel |
6a7d7a23 | 24 | %{?with_dbus:BuildRequires: dbus-devel >= 1.0} |
26119bec | 25 | BuildRequires: exiv2-devel >= 0.18.2 |
6a7d7a23 | 26 | BuildRequires: expat-devel |
9b415f88 | 27 | BuildRequires: fam-devel |
6a7d7a23 | 28 | BuildRequires: libxml2-devel |
b7b1af67 | 29 | BuildRequires: log4cxx-devel |
9b415f88 | 30 | %{?with_dbus:BuildRequires: pkgconfig} |
9897709b | 31 | BuildRequires: qt4-build >= %{qtver} |
32 | BuildRequires: qt4-qmake >= %{qtver} | |
eeb71f4b | 33 | BuildRequires: rpmbuild(macros) >= 1.293 |
6a7d7a23 | 34 | BuildRequires: zlib-devel |
1253c3bb | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
abba28fc JB |
38 | Here are the main features of Strigi Desktop Search: very fast |
39 | crawling, very small memory footprint, no hammering of the system, | |
40 | pluggable backend (currently clucene and hyperestraier, sqlite3 and | |
41 | xapian are in the works), communication between daemon and search | |
42 | program over an abstract interface with two implementations: DBus and | |
b25c5eb4 | 43 | a simple Unix socket. Especially the DBus interface makes it very easy |
abba28fc JB |
44 | to write client applications. There are a few sample scripts in the |
45 | code using Perl, Python, GTK+ and Qt. Writing clients is so easy that | |
46 | any GNOME or KDE app could implement this. Additionally, there is a | |
47 | simple interface for implementing plugins for extracting information. | |
48 | We'll try to reuse the kat plugins, although native plugins will have | |
49 | a large speed advantage. Strigi also has calculation of sha1 for every | |
50 | file crawled which allows for fast finding of duplicate files. | |
493bcf16 | 51 | |
abba28fc JB |
52 | %description -l pl.UTF-8 |
53 | Główne cechy systemu wyszukiwania Strigi to: bardzo szybkie | |
54 | przeglądanie, bardzo mały narzut pamięciowy, nieprzytykanie systemu, | |
55 | backend z obsługą wtyczek (aktualnie clucene i hyperestraier, sqlite3 | |
56 | i xapian w trakcie rozwoju), komunikacja między demonem a programem | |
57 | wyszukującym po abstrakcyjnym interfejsie z dwiema implementacjami: | |
58 | DBus i prostym gdzieździe uniksowym. Zwłaszcza interfejs DBus znacznie | |
59 | ułatwia pisanie aplikacji klienckich. Istnieje kilka przykładowych | |
60 | skryptów napisanych z użyciem Perla, Pythona, GTK+ i Qt. Tworzenie | |
61 | klientów jest tak proste, że każda aplikacja GNOME czy KDE może to | |
62 | zaimplementować. Ponadto istnieje prosty interfejs do implementowania | |
63 | wtyczek do wydobywania informacji. Autorzy będą próbowali | |
64 | wykorzystywać wtyczki kata, ale natywne wtyczki będą miały większą | |
65 | szybkość. Strigi ma także obliczanie sha1 dla każdego przeglądanego | |
66 | pliku, co pozwala na szybkie znajdowanie duplikatów. | |
1253c3bb | 67 | |
68 | %package devel | |
493bcf16 | 69 | Summary: Header files for strigi |
70 | Summary(pl.UTF-8): Pliki nagłówkowe dla strigi | |
71 | Group: Development/Libraries | |
72 | Requires: %{name} = %{version}-%{release} | |
1253c3bb | 73 | |
74 | %description devel | |
75 | Header files for strigi. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Pliki nagłówkowe dla strigi. | |
79 | ||
80 | %prep | |
81 | %setup -q | |
82 | ||
83 | %build | |
84 | install -d build | |
85 | cd build | |
9897709b | 86 | # add this to get verbose output |
87 | #-DCMAKE_VERBOSE_MAKEFILE=1 \ | |
1253c3bb | 88 | %cmake \ |
ec27b71a | 89 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
9897709b | 90 | -DCMAKE_AR=/usr/bin/ar \ |
b7b1af67 AM |
91 | -DENABLE_INOTIFY=1 \ |
92 | -DENABLE_FAM=1 \ | |
93 | -DENABLE_LOG4CXX=1 \ | |
ec27b71a | 94 | %if "%{_lib}" == "lib64" |
95 | -DLIB_SUFFIX=64 \ | |
96 | %endif | |
a0b02e4b | 97 | ../ |
1253c3bb | 98 | |
99 | %{__make} | |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
abba28fc JB |
103 | |
104 | %{__make} -C build install \ | |
1253c3bb | 105 | DESTDIR=$RPM_BUILD_ROOT |
106 | ||
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post -p /sbin/ldconfig | |
111 | %postun -p /sbin/ldconfig | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
115 | %attr(755,root,root) %{_bindir}/* | |
3b877464 RT |
116 | %attr(755,root,root) %{_libdir}/libsearchclient.so.*.*.* |
117 | %attr(755,root,root) %{_libdir}/libstreamanalyzer.so.*.*.* | |
118 | %attr(755,root,root) %{_libdir}/libstreams.so.*.*.* | |
119 | %attr(755,root,root) %{_libdir}/libstrigihtmlgui.so.*.*.* | |
120 | %attr(755,root,root) %{_libdir}/libstrigiqtdbusclient.so.*.*.* | |
f29c8e58 | 121 | %attr(755,root,root) %ghost %{_libdir}/libsearchclient.so.0 |
a52c8172 | 122 | %attr(755,root,root) %ghost %{_libdir}/libstreamanalyzer.so.0 |
a52c8172 | 123 | %attr(755,root,root) %ghost %{_libdir}/libstreams.so.0 |
f29c8e58 JB |
124 | %attr(755,root,root) %ghost %{_libdir}/libstrigihtmlgui.so.0 |
125 | %attr(755,root,root) %ghost %{_libdir}/libstrigiqtdbusclient.so.0 | |
126 | %dir %{_libdir}/strigi | |
127 | %attr(755,root,root) %{_libdir}/strigi/*.so | |
6a7d7a23 | 128 | %{?with_dbus:%{_datadir}/dbus-1/services/*.service} |
a52c8172 JB |
129 | %dir %{_datadir}/strigi |
130 | %{_datadir}/strigi/fieldproperties | |
1253c3bb | 131 | |
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
3b877464 | 134 | %attr(755,root,root) %{_libdir}/libsearchclient.so |
a52c8172 JB |
135 | %attr(755,root,root) %{_libdir}/libstreamanalyzer.so |
136 | %attr(755,root,root) %{_libdir}/libstreams.so | |
3b877464 RT |
137 | %attr(755,root,root) %{_libdir}/libstrigihtmlgui.so |
138 | %attr(755,root,root) %{_libdir}/libstrigiqtdbusclient.so | |
563183dd | 139 | %{_libdir}/strigi/*.cmake |
1253c3bb | 140 | %dir %{_includedir}/strigi |
141 | %{_includedir}/strigi/*.h | |
3b877464 | 142 | %{_includedir}/strigi/qtdbus |
a52c8172 JB |
143 | %{_pkgconfigdir}/libstreamanalyzer.pc |
144 | %{_pkgconfigdir}/libstreams.pc |