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