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