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