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