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