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