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