]>
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 |
b46ffd40 | 5 | Release: 1 |
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 | |
bc0dc01e | 11 | URL: http://clucene.sourceforge.net/ |
ebd4cf82 | 12 | BuildRequires: cmake |
225c4cb8 JB |
13 | BuildRequires: libstdc++-devel |
14 | BuildRequires: libtool >= 2:1.5 | |
bc0dc01e | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | CLucene is a C++ port of Lucene. It is a high-performance, | |
19 | full-featured text search engine written in C++. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | CLucene jest portem Lucene na C++. Jest to wysokowydajny silnik do | |
23 | wyszukiwania tekstu napisany w C++. | |
24 | ||
25 | %package devel | |
26 | Summary: Header files for CLucene library | |
27 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CLucene | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
225c4cb8 | 30 | Requires: libstdc++-devel |
bc0dc01e | 31 | |
32 | %description devel | |
33 | Header files for CLucene library. | |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | Pliki nagłówkowe biblioteki CLucene. | |
37 | ||
38 | %package static | |
39 | Summary: Static CLucene library | |
40 | Summary(pl.UTF-8): Statyczna biblioteka CLucene | |
41 | Group: Development/Libraries | |
42 | Requires: %{name}-devel = %{version}-%{release} | |
43 | ||
44 | %description static | |
45 | Static CLucene library. | |
46 | ||
47 | %description static -l pl.UTF-8 | |
48 | Statyczna biblioteka CLucene. | |
49 | ||
50 | %prep | |
51 | %setup -q | |
ebd4cf82 | 52 | %patch0 -p1 |
bc0dc01e | 53 | |
54 | %build | |
ebd4cf82 AM |
55 | install -d build |
56 | cd build | |
57 | %cmake \ | |
58 | -DBUILD_STATIC_LIBRARIES=ON \ | |
59 | -DBUILD_CONTRIBS=ON \ | |
60 | -DBUILD_CONTRIBS_LIB=ON \ | |
61 | .. | |
62 | ||
bc0dc01e | 63 | %{__make} |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
ebd4cf82 | 68 | %{__make} -C build install \ |
bc0dc01e | 69 | DESTDIR=$RPM_BUILD_ROOT |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %post -p /sbin/ldconfig | |
75 | %postun -p /sbin/ldconfig | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
afd2cbc5 | 79 | %doc AUTHORS COPYING ChangeLog NEWS README |
ebd4cf82 AM |
80 | %attr(755,root,root) %{_libdir}/libclucene-contribs-lib.so.*.*.* |
81 | %attr(755,root,root) %ghost %{_libdir}/libclucene-contribs-lib.so.1 | |
82 | %attr(755,root,root) %{_libdir}/libclucene-core.so.*.*.* | |
83 | %attr(755,root,root) %ghost %{_libdir}/libclucene-core.so.1 | |
84 | %attr(755,root,root) %{_libdir}/libclucene-shared.so.*.*.* | |
85 | %attr(755,root,root) %ghost %{_libdir}/libclucene-shared.so.1 | |
bc0dc01e | 86 | |
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
ebd4cf82 AM |
89 | %attr(755,root,root) %{_libdir}/libclucene-contribs-lib.so |
90 | %attr(755,root,root) %{_libdir}/libclucene-core.so | |
91 | %attr(755,root,root) %{_libdir}/libclucene-shared.so | |
bc0dc01e | 92 | %{_includedir}/CLucene.h |
93 | %{_includedir}/CLucene | |
ebd4cf82 AM |
94 | %{_libdir}/CLuceneConfig.cmake |
95 | %{_pkgconfigdir}/libclucene-core.pc | |
bc0dc01e | 96 | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
ebd4cf82 AM |
99 | %{_libdir}/libclucene-core-static.a |
100 | %{_libdir}/libclucene-shared-static.a |