]>
Commit | Line | Data |
---|---|---|
1253c3bb | 1 | # |
6a7d7a23 ER |
2 | # Conditional build: |
3 | %bcond_without dbus # dbus support | |
4 | # | |
64e6c73a | 5 | %define qtver 4.6.3 |
9897709b | 6 | |
493bcf16 | 7 | Summary: Strigi desktop search |
abba28fc | 8 | Summary(pl.UTF-8): System wyszukiwania Strigi |
1253c3bb | 9 | Name: strigi |
cfce5085 | 10 | Version: 0.7.8 |
75d05dfc | 11 | Release: 17 |
4a9fce3d | 12 | License: LGPL v2+ |
1253c3bb | 13 | Group: X11/Applications |
cfce5085 AM |
14 | Source0: http://www.vandenoever.info/software/strigi/%{name}-%{version}.tar.bz2 |
15 | # Source0-md5: d69443234f4286d71997db9de543331a | |
845404c3 JR |
16 | Patch0: %{name}-as-needed.patch |
17 | Patch1: ffmpeg3.patch | |
c732e135 | 18 | Patch2: gcc7.patch |
3a3e482a | 19 | Patch3: ffmpeg4.patch |
da2080a9 | 20 | Patch4: gcc8.patch |
6a993bac | 21 | Patch5: exiv2.patch |
b4637576 JB |
22 | Patch6: %{name}-gccversion.patch |
23 | Patch7: %{name}-includes.patch | |
93574078 | 24 | Patch8: %{name}-log4cxx.patch |
1becfb15 | 25 | URL: http://strigi.sourceforge.net/ |
9897709b | 26 | BuildRequires: QtDBus-devel >= %{qtver} |
27 | BuildRequires: QtGui-devel >= %{qtver} | |
4a9fce3d | 28 | BuildRequires: attr-devel |
6a7d7a23 | 29 | BuildRequires: bzip2-devel |
4a9fce3d JB |
30 | BuildRequires: clucene-core-devel >= 0.9.21 |
31 | BuildRequires: cmake >= 2.8.9 | |
f331c639 | 32 | BuildRequires: cppunit-devel |
6a7d7a23 | 33 | %{?with_dbus:BuildRequires: dbus-devel >= 1.0} |
c732e135 | 34 | %{?with_dbus:BuildRequires: dbus-x11 >= 1.0} |
2027d9a2 | 35 | BuildRequires: exiv2-devel >= 0.21 |
6a7d7a23 | 36 | BuildRequires: expat-devel |
9b415f88 | 37 | BuildRequires: fam-devel |
44a8c079 | 38 | BuildRequires: ffmpeg-devel |
e7233fa1 | 39 | BuildRequires: libstdc++-devel |
4a9fce3d | 40 | BuildRequires: libxml2-devel >= 2 |
b7b1af67 | 41 | BuildRequires: log4cxx-devel |
9b415f88 | 42 | %{?with_dbus:BuildRequires: pkgconfig} |
9897709b | 43 | BuildRequires: qt4-build >= %{qtver} |
44 | BuildRequires: qt4-qmake >= %{qtver} | |
4a9fce3d | 45 | BuildRequires: rpmbuild(macros) >= 1.605 |
6a7d7a23 | 46 | BuildRequires: zlib-devel |
e7233fa1 JB |
47 | Requires: QtDBus >= %{qtver} |
48 | Requires: QtGui >= %{qtver} | |
49 | Requires: clucene-core >= 0.9.21 | |
50 | %{?with_dbus:Requires: dbus-libs >= 1.0} | |
51 | Requires: exiv2-libs >= 0.21 | |
1253c3bb | 52 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
53 | ||
54 | %description | |
abba28fc JB |
55 | Here are the main features of Strigi Desktop Search: very fast |
56 | crawling, very small memory footprint, no hammering of the system, | |
57 | pluggable backend (currently clucene and hyperestraier, sqlite3 and | |
58 | xapian are in the works), communication between daemon and search | |
59 | program over an abstract interface with two implementations: DBus and | |
b25c5eb4 | 60 | a simple Unix socket. Especially the DBus interface makes it very easy |
abba28fc JB |
61 | to write client applications. There are a few sample scripts in the |
62 | code using Perl, Python, GTK+ and Qt. Writing clients is so easy that | |
63 | any GNOME or KDE app could implement this. Additionally, there is a | |
64 | simple interface for implementing plugins for extracting information. | |
65 | We'll try to reuse the kat plugins, although native plugins will have | |
66 | a large speed advantage. Strigi also has calculation of sha1 for every | |
67 | file crawled which allows for fast finding of duplicate files. | |
493bcf16 | 68 | |
abba28fc JB |
69 | %description -l pl.UTF-8 |
70 | Główne cechy systemu wyszukiwania Strigi to: bardzo szybkie | |
71 | przeglądanie, bardzo mały narzut pamięciowy, nieprzytykanie systemu, | |
72 | backend z obsługą wtyczek (aktualnie clucene i hyperestraier, sqlite3 | |
73 | i xapian w trakcie rozwoju), komunikacja między demonem a programem | |
74 | wyszukującym po abstrakcyjnym interfejsie z dwiema implementacjami: | |
75 | DBus i prostym gdzieździe uniksowym. Zwłaszcza interfejs DBus znacznie | |
76 | ułatwia pisanie aplikacji klienckich. Istnieje kilka przykładowych | |
77 | skryptów napisanych z użyciem Perla, Pythona, GTK+ i Qt. Tworzenie | |
78 | klientów jest tak proste, że każda aplikacja GNOME czy KDE może to | |
79 | zaimplementować. Ponadto istnieje prosty interfejs do implementowania | |
80 | wtyczek do wydobywania informacji. Autorzy będą próbowali | |
81 | wykorzystywać wtyczki kata, ale natywne wtyczki będą miały większą | |
82 | szybkość. Strigi ma także obliczanie sha1 dla każdego przeglądanego | |
83 | pliku, co pozwala na szybkie znajdowanie duplikatów. | |
1253c3bb | 84 | |
85 | %package devel | |
493bcf16 | 86 | Summary: Header files for strigi |
87 | Summary(pl.UTF-8): Pliki nagłówkowe dla strigi | |
88 | Group: Development/Libraries | |
89 | Requires: %{name} = %{version}-%{release} | |
e7233fa1 | 90 | Requires: libstdc++-devel |
1253c3bb | 91 | |
92 | %description devel | |
93 | Header files for strigi. | |
94 | ||
95 | %description devel -l pl.UTF-8 | |
96 | Pliki nagłówkowe dla strigi. | |
97 | ||
98 | %prep | |
99 | %setup -q | |
845404c3 | 100 | %patch0 -p1 |
acbb9c35 | 101 | %patch1 -p1 |
c732e135 | 102 | %patch2 -p1 |
3a3e482a | 103 | %patch3 -p1 |
da2080a9 | 104 | %patch4 -p1 |
6a993bac | 105 | %patch5 -p1 |
b4637576 JB |
106 | %patch6 -p1 |
107 | %patch7 -p1 | |
93574078 | 108 | %patch8 -p1 |
1253c3bb | 109 | |
110 | %build | |
111 | install -d build | |
112 | cd build | |
4a9fce3d JB |
113 | # note: package expects relative CMAKE_INSTALL_LIBDIR |
114 | %cmake .. \ | |
cfce5085 | 115 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ |
130bea1a | 116 | -DFORCE_DEPS=1 \ |
b7b1af67 | 117 | -DENABLE_FAM=1 \ |
4a9fce3d JB |
118 | -DENABLE_INOTIFY=1 \ |
119 | -DENABLE_LOG4CXX=1 | |
1253c3bb | 120 | |
121 | %{__make} | |
122 | ||
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
abba28fc JB |
125 | |
126 | %{__make} -C build install \ | |
1253c3bb | 127 | DESTDIR=$RPM_BUILD_ROOT |
128 | ||
129 | %clean | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
132 | %post -p /sbin/ldconfig | |
133 | %postun -p /sbin/ldconfig | |
134 | ||
135 | %files | |
136 | %defattr(644,root,root,755) | |
4a9fce3d JB |
137 | %doc AUTHORS ChangeLog |
138 | %attr(755,root,root) %{_bindir}/deepfind | |
139 | %attr(755,root,root) %{_bindir}/deepgrep | |
140 | %attr(755,root,root) %{_bindir}/lucene2indexer | |
141 | %attr(755,root,root) %{_bindir}/rdfindexer | |
142 | %attr(755,root,root) %{_bindir}/strigiclient | |
143 | %attr(755,root,root) %{_bindir}/strigicmd | |
144 | %attr(755,root,root) %{_bindir}/strigidaemon | |
145 | %attr(755,root,root) %{_bindir}/xmlindexer | |
3b877464 | 146 | %attr(755,root,root) %{_libdir}/libsearchclient.so.*.*.* |
f29c8e58 | 147 | %attr(755,root,root) %ghost %{_libdir}/libsearchclient.so.0 |
4a9fce3d | 148 | %attr(755,root,root) %{_libdir}/libstreamanalyzer.so.*.*.* |
a52c8172 | 149 | %attr(755,root,root) %ghost %{_libdir}/libstreamanalyzer.so.0 |
4a9fce3d | 150 | %attr(755,root,root) %{_libdir}/libstreams.so.*.*.* |
a52c8172 | 151 | %attr(755,root,root) %ghost %{_libdir}/libstreams.so.0 |
4a9fce3d | 152 | %attr(755,root,root) %{_libdir}/libstrigihtmlgui.so.*.*.* |
f29c8e58 | 153 | %attr(755,root,root) %ghost %{_libdir}/libstrigihtmlgui.so.0 |
4a9fce3d | 154 | %attr(755,root,root) %{_libdir}/libstrigiqtdbusclient.so.*.*.* |
f29c8e58 JB |
155 | %attr(755,root,root) %ghost %{_libdir}/libstrigiqtdbusclient.so.0 |
156 | %dir %{_libdir}/strigi | |
157 | %attr(755,root,root) %{_libdir}/strigi/*.so | |
4a9fce3d JB |
158 | %{?with_dbus:%{_datadir}/dbus-1/services/org.freedesktop.xesam.searcher.service} |
159 | %{?with_dbus:%{_datadir}/dbus-1/services/vandenoever.strigi.service} | |
a52c8172 JB |
160 | %dir %{_datadir}/strigi |
161 | %{_datadir}/strigi/fieldproperties | |
1253c3bb | 162 | |
163 | %files devel | |
164 | %defattr(644,root,root,755) | |
3b877464 | 165 | %attr(755,root,root) %{_libdir}/libsearchclient.so |
a52c8172 JB |
166 | %attr(755,root,root) %{_libdir}/libstreamanalyzer.so |
167 | %attr(755,root,root) %{_libdir}/libstreams.so | |
3b877464 RT |
168 | %attr(755,root,root) %{_libdir}/libstrigihtmlgui.so |
169 | %attr(755,root,root) %{_libdir}/libstrigiqtdbusclient.so | |
31d6d646 | 170 | %dir %{_libdir}/cmake/Strigi |
cfce5085 AM |
171 | %{_libdir}/cmake/Strigi/*.cmake |
172 | %dir %{_libdir}/cmake/LibSearchClient | |
173 | %{_libdir}/cmake/LibSearchClient/LibSearchClientConfig.cmake | |
174 | %dir %{_libdir}/cmake/LibStreamAnalyzer | |
175 | %{_libdir}/cmake/LibStreamAnalyzer/LibStreamAnalyzerConfig.cmake | |
176 | %{_libdir}/cmake/LibStreamAnalyzer/LibStreamAnalyzerConfigVersion.cmake | |
177 | %dir %{_libdir}/cmake/LibStreams | |
178 | %{_libdir}/cmake/LibStreams/LibStreamsConfig.cmake | |
179 | %{_libdir}/cmake/LibStreams/LibStreamsConfigVersion.cmake | |
180 | %{_libdir}/cmake/LibStreams/LibStreamsTargets-pld.cmake | |
181 | %{_libdir}/cmake/LibStreams/LibStreamsTargets.cmake | |
1253c3bb | 182 | %dir %{_includedir}/strigi |
183 | %{_includedir}/strigi/*.h | |
3b877464 | 184 | %{_includedir}/strigi/qtdbus |
a52c8172 JB |
185 | %{_pkgconfigdir}/libstreamanalyzer.pc |
186 | %{_pkgconfigdir}/libstreams.pc |