]> git.pld-linux.org Git - packages/clucene-core.git/blame - clucene-core.spec
- up to 2.3.3.4 (now the question is if we need to have clucene-core 0.9 packaged...
[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
b46ffd40 5Release: 1
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
bc0dc01e 11URL: http://clucene.sourceforge.net/
ebd4cf82 12BuildRequires: cmake
225c4cb8
JB
13BuildRequires: libstdc++-devel
14BuildRequires: libtool >= 2:1.5
bc0dc01e 15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18CLucene is a C++ port of Lucene. It is a high-performance,
19full-featured text search engine written in C++.
20
21%description -l pl.UTF-8
22CLucene jest portem Lucene na C++. Jest to wysokowydajny silnik do
23wyszukiwania tekstu napisany w C++.
24
25%package devel
26Summary: Header files for CLucene library
27Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CLucene
28Group: Development/Libraries
29Requires: %{name} = %{version}-%{release}
225c4cb8 30Requires: libstdc++-devel
bc0dc01e 31
32%description devel
33Header files for CLucene library.
34
35%description devel -l pl.UTF-8
36Pliki nagłówkowe biblioteki CLucene.
37
38%package static
39Summary: Static CLucene library
40Summary(pl.UTF-8): Statyczna biblioteka CLucene
41Group: Development/Libraries
42Requires: %{name}-devel = %{version}-%{release}
43
44%description static
45Static CLucene library.
46
47%description static -l pl.UTF-8
48Statyczna biblioteka CLucene.
49
50%prep
51%setup -q
ebd4cf82 52%patch0 -p1
bc0dc01e 53
54%build
ebd4cf82
AM
55install -d build
56cd 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
66rm -rf $RPM_BUILD_ROOT
67
ebd4cf82 68%{__make} -C build install \
bc0dc01e 69 DESTDIR=$RPM_BUILD_ROOT
70
71%clean
72rm -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
This page took 0.124395 seconds and 4 git commands to generate.