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