Blame SPECS/libstemmer.spec

744f3d
Name:		libstemmer
744f3d
Version:	0
744f3d
Release:	10.585svn%{?dist}
744f3d
Summary:	C stemming algorithm library
744f3d
# The site and project is no longer being actively maintained. 
744f3d
# The code is available on Github - https://github.com/snowballstem/snowball
744f3d
URL:		http://snowball.tartarus.org
744f3d
# The licence is specified on website
744f3d
# http://snowball.tartarus.org/license.php
744f3d
# There is a pull request to include it into source code
744f3d
# https://github.com/snowballstem/snowball/issues/10
744f3d
License:	BSD
744f3d
Source0:	http://snowball.tartarus.org/dist/%{name}_c.tgz
744f3d
Source1:	Notice.txt
744f3d
Source2:	BSD.txt
744f3d
744f3d
BuildRequires:  gcc
744f3d
744f3d
%description
744f3d
Snowball stemming algorithms for use in Information Retrieval Snowball 
744f3d
provides access to efficient algorithms for calculating a "stemmed" 
744f3d
form of a word.  This is a form with most of the common morphological 
744f3d
endings removed; hopefully representing a common linguistic base form.  
744f3d
This is most useful in building search engines and information 
744f3d
retrieval software; for example, a search with stemming enabled should 
744f3d
be able to find a document containing "cycling" given the query 
744f3d
"cycles".
744f3d
744f3d
Snowball provides algorithms for several (mainly European) languages. 
744f3d
It also provides access to the classic Porter stemming algorithm for 
744f3d
English: although this has been superseded by an improved algorithm, 
744f3d
the original algorithm may be of interest to information retrieval 
744f3d
researchers wishing to reproduce results of earlier experiments.
744f3d
744f3d
744f3d
%package devel
744f3d
Summary:	C stemming algorithm library developer files
744f3d
Requires:	%{name}%{?_isa} = %{version}-%{release}
744f3d
744f3d
%description devel
744f3d
This package contains development files of libstemmer.
744f3d
744f3d
Snowball stemming algorithms for use in Information Retrieval Snowball 
744f3d
provides access to efficient algorithms for calculating a "stemmed" 
744f3d
form of a word.  This is a form with most of the common morphological 
744f3d
endings removed; hopefully representing a common linguistic base form.  
744f3d
This is most useful in building search engines and information 
744f3d
retrieval software; for example, a search with stemming enabled should 
744f3d
be able to find a document containing "cycling" given the query 
744f3d
"cycles".
744f3d
744f3d
Snowball provides algorithms for several (mainly European) languages. 
744f3d
It also provides access to the classic Porter stemming algorithm for 
744f3d
English: although this has been superseded by an improved algorithm, 
744f3d
the original algorithm may be of interest to information retrieval 
744f3d
researchers wishing to reproduce results of earlier experiments.
744f3d
744f3d
744f3d
%prep
744f3d
%setup -q -n libstemmer_c
744f3d
744f3d
# Add rule to make libstemmer.so
744f3d
sed -i -r "s|(^libstemmer.o:)|libstemmer.so: \$\(snowball_sources:.c=.o\)\n\
744f3d
\t\$\(CC\) \$\(CFLAGS\) -shared \$\(LDFLAGS\) -Wl,-soname,libstemmer.so.0 \
744f3d
-o \$\@.0.0.0 \$\^\n\1|" Makefile
744f3d
744f3d
%build
744f3d
make libstemmer.so %{?_smp_mflags} CFLAGS="%{optflags} -fPIC -Iinclude" LDFLAGS="$RPM_LD_FLAGS"
744f3d
744f3d
%install
744f3d
mkdir -p %{buildroot}%{_libdir}
744f3d
mkdir -p %{buildroot}%{_includedir}
744f3d
install -p -D -m 755	libstemmer.so.0.0.0	%{buildroot}%{_libdir}/
744f3d
ln -s libstemmer.so.0.0.0	%{buildroot}%{_libdir}/libstemmer.so.0
744f3d
ln -s libstemmer.so.0.0.0	%{buildroot}%{_libdir}/libstemmer.so
744f3d
install -p -D -m 644	include/*	%{buildroot}%{_includedir}/
744f3d
744f3d
cp %{SOURCE1} %{SOURCE2} .
744f3d
744f3d
%post -p /sbin/ldconfig
744f3d
744f3d
%postun -p /sbin/ldconfig
744f3d
744f3d
%files
744f3d
%doc Notice.txt BSD.txt README
744f3d
%{_libdir}/libstemmer.so.*
744f3d
744f3d
%files devel
744f3d
%{_libdir}/libstemmer.so
744f3d
%{_includedir}/*
744f3d
744f3d
%changelog
744f3d
* Tue Feb 27 2018 Marek Skalický <mskalick@redhat.com> - 0-10.585svn
744f3d
- Use LDFLAGS for building
744f3d
744f3d
* Tue Feb 27 2018 Marek Skalický <mskalick@redhat.com> - 0-9.585svn
744f3d
- Add missing BuildRequires: gcc/gcc-c++
744f3d
744f3d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-8.585svn
744f3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
744f3d
744f3d
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-7.585svn
744f3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
744f3d
744f3d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-6.585svn
744f3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
744f3d
744f3d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-5.585svn
744f3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
744f3d
744f3d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-4.585svn
744f3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
744f3d
744f3d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-3.585svn
744f3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
744f3d
744f3d
* Tue Jan 6 2015 Marek Skalicky <mskalick@redhat.com> - 0-2.585svn
744f3d
- Removed undefined-non-weak-symbol warnings
744f3d
744f3d
* Tue Dec 2 2014 Marek Skalicky <mskalick@redhat.com> - 0-1.585svn
744f3d
- Initial packaging