]>
Commit | Line | Data |
---|---|---|
bc0dc01e | 1 | Summary: An indexing and searching API |
2 | Summary(pl.UTF-8): API do indeksowania i wyszukiwania | |
3 | Name: clucene-core | |
ebd4cf82 | 4 | Version: 2.3.3.4 |
5634dd99 | 5 | Release: 5 |
afd2cbc5 | 6 | License: LGPL or Apache v2.0 |
bc0dc01e | 7 | Group: Libraries |
ebd4cf82 AM |
8 | Source0: http://downloads.sourceforge.net/clucene/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 48d647fbd8ef8889e5a7f422c1bfda94 | |
10 | Patch0: %{name}-2.3.3.4-install_contribs_lib.patch | |
99316d30 | 11 | Patch1: remove-boost-headers.patch |
5634dd99 | 12 | Patch2: time.patch |
bc0dc01e | 13 | URL: http://clucene.sourceforge.net/ |
ebd4cf82 | 14 | BuildRequires: cmake |
225c4cb8 JB |
15 | BuildRequires: libstdc++-devel |
16 | BuildRequires: libtool >= 2:1.5 | |
bc0dc01e | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | CLucene is a C++ port of Lucene. It is a high-performance, | |
21 | full-featured text search engine written in C++. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | CLucene jest portem Lucene na C++. Jest to wysokowydajny silnik do | |
25 | wyszukiwania tekstu napisany w C++. | |
26 | ||
27 | %package devel | |
28 | Summary: Header files for CLucene library | |
29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CLucene | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
225c4cb8 | 32 | Requires: libstdc++-devel |
bc0dc01e | 33 | |
34 | %description devel | |
35 | Header files for CLucene library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe biblioteki CLucene. | |
39 | ||
40 | %package static | |
41 | Summary: Static CLucene library | |
42 | Summary(pl.UTF-8): Statyczna biblioteka CLucene | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static CLucene library. | |
48 | ||
49 | %description static -l pl.UTF-8 | |
50 | Statyczna biblioteka CLucene. | |
51 | ||
52 | %prep | |
53 | %setup -q | |
ebd4cf82 | 54 | %patch0 -p1 |
99316d30 | 55 | %patch1 -p1 |
5634dd99 | 56 | %patch2 -p1 |
bc0dc01e | 57 | |
58 | %build | |
ebd4cf82 AM |
59 | install -d build |
60 | cd build | |
61 | %cmake \ | |
62 | -DBUILD_STATIC_LIBRARIES=ON \ | |
63 | -DBUILD_CONTRIBS=ON \ | |
64 | -DBUILD_CONTRIBS_LIB=ON \ | |
65 | .. | |
66 | ||
bc0dc01e | 67 | %{__make} |
68 | ||
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
ebd4cf82 | 72 | %{__make} -C build install \ |
bc0dc01e | 73 | DESTDIR=$RPM_BUILD_ROOT |
74 | ||
99316d30 | 75 | # remove boost headers, they are not needed nor used here |
fc7064ad | 76 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/CLucene/ext |
99316d30 | 77 | |
bc0dc01e | 78 | %clean |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
afd2cbc5 | 86 | %doc AUTHORS COPYING ChangeLog NEWS README |
ebd4cf82 AM |
87 | %attr(755,root,root) %{_libdir}/libclucene-contribs-lib.so.*.*.* |
88 | %attr(755,root,root) %ghost %{_libdir}/libclucene-contribs-lib.so.1 | |
89 | %attr(755,root,root) %{_libdir}/libclucene-core.so.*.*.* | |
90 | %attr(755,root,root) %ghost %{_libdir}/libclucene-core.so.1 | |
91 | %attr(755,root,root) %{_libdir}/libclucene-shared.so.*.*.* | |
92 | %attr(755,root,root) %ghost %{_libdir}/libclucene-shared.so.1 | |
bc0dc01e | 93 | |
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
ebd4cf82 AM |
96 | %attr(755,root,root) %{_libdir}/libclucene-contribs-lib.so |
97 | %attr(755,root,root) %{_libdir}/libclucene-core.so | |
98 | %attr(755,root,root) %{_libdir}/libclucene-shared.so | |
bc0dc01e | 99 | %{_includedir}/CLucene.h |
100 | %{_includedir}/CLucene | |
ebd4cf82 AM |
101 | %{_libdir}/CLuceneConfig.cmake |
102 | %{_pkgconfigdir}/libclucene-core.pc | |
bc0dc01e | 103 | |
104 | %files static | |
105 | %defattr(644,root,root,755) | |
ebd4cf82 AM |
106 | %{_libdir}/libclucene-core-static.a |
107 | %{_libdir}/libclucene-shared-static.a |