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