Blame SPECS/libstemmer.spec

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