]> git.pld-linux.org Git - packages/clucene-core.git/blame - clucene-core.spec
- fix time.h detection, fixes build with recent headers
[packages/clucene-core.git] / clucene-core.spec
CommitLineData
bc0dc01e 1Summary: An indexing and searching API
2Summary(pl.UTF-8): API do indeksowania i wyszukiwania
3Name: clucene-core
ebd4cf82 4Version: 2.3.3.4
5634dd99 5Release: 5
afd2cbc5 6License: LGPL or Apache v2.0
bc0dc01e 7Group: Libraries
ebd4cf82
AM
8Source0: http://downloads.sourceforge.net/clucene/%{name}-%{version}.tar.gz
9# Source0-md5: 48d647fbd8ef8889e5a7f422c1bfda94
10Patch0: %{name}-2.3.3.4-install_contribs_lib.patch
99316d30 11Patch1: remove-boost-headers.patch
5634dd99 12Patch2: time.patch
bc0dc01e 13URL: http://clucene.sourceforge.net/
ebd4cf82 14BuildRequires: cmake
225c4cb8
JB
15BuildRequires: libstdc++-devel
16BuildRequires: libtool >= 2:1.5
bc0dc01e 17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20CLucene is a C++ port of Lucene. It is a high-performance,
21full-featured text search engine written in C++.
22
23%description -l pl.UTF-8
24CLucene jest portem Lucene na C++. Jest to wysokowydajny silnik do
25wyszukiwania tekstu napisany w C++.
26
27%package devel
28Summary: Header files for CLucene library
29Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CLucene
30Group: Development/Libraries
31Requires: %{name} = %{version}-%{release}
225c4cb8 32Requires: libstdc++-devel
bc0dc01e 33
34%description devel
35Header files for CLucene library.
36
37%description devel -l pl.UTF-8
38Pliki nagłówkowe biblioteki CLucene.
39
40%package static
41Summary: Static CLucene library
42Summary(pl.UTF-8): Statyczna biblioteka CLucene
43Group: Development/Libraries
44Requires: %{name}-devel = %{version}-%{release}
45
46%description static
47Static CLucene library.
48
49%description static -l pl.UTF-8
50Statyczna 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
59install -d build
60cd 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
70rm -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
79rm -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
This page took 1.01501 seconds and 4 git commands to generate.