Blame SPECS/libstemmer.spec

cc19a3
%{?scl:%scl_package libstemmer}
cc19a3
%{!?scl:%global pkg_name %{name}}
cc19a3
cc19a3
Name:		%{?scl_prefix}libstemmer
cc19a3
Version:	0
cc19a3
Release:	5.585svn%{?dist}
cc19a3
Summary:	C stemming algorithm library
cc19a3
# The site and project is no longer being actively maintained. 
cc19a3
# The code is available on Github - https://github.com/snowballstem/snowball
cc19a3
URL:		http://snowball.tartarus.org
cc19a3
# The licence is specified on website
cc19a3
# http://snowball.tartarus.org/license.php
cc19a3
# There is a pull request to include it into source code
cc19a3
# https://github.com/snowballstem/snowball/issues/10
cc19a3
License:	BSD
cc19a3
Source0:	http://snowball.tartarus.org/dist/%{pkg_name}_c-svn585.tgz
cc19a3
Source1:	Notice.txt
cc19a3
Source2:	BSD.txt
cc19a3
cc19a3
%{?scl:Requires:%scl_runtime}
cc19a3
cc19a3
%description
cc19a3
Snowball stemming algorithms for use in Information Retrieval Snowball 
cc19a3
provides access to efficient algorithms for calculating a "stemmed" 
cc19a3
form of a word.  This is a form with most of the common morphological 
cc19a3
endings removed; hopefully representing a common linguistic base form.  
cc19a3
This is most useful in building search engines and information 
cc19a3
retrieval software; for example, a search with stemming enabled should 
cc19a3
be able to find a document containing "cycling" given the query 
cc19a3
"cycles".
cc19a3
cc19a3
Snowball provides algorithms for several (mainly European) languages. 
cc19a3
It also provides access to the classic Porter stemming algorithm for 
cc19a3
English: although this has been superseded by an improved algorithm, 
cc19a3
the original algorithm may be of interest to information retrieval 
cc19a3
researchers wishing to reproduce results of earlier experiments.
cc19a3
cc19a3
%package devel
cc19a3
Summary:	C stemming algorithm library developer files
cc19a3
Requires:	%{name}%{?_isa} = %{version}-%{release}
cc19a3
cc19a3
%description devel
cc19a3
This package contains development files of libstemmer.
cc19a3
cc19a3
Snowball stemming algorithms for use in Information Retrieval Snowball 
cc19a3
provides access to efficient algorithms for calculating a "stemmed" 
cc19a3
form of a word.  This is a form with most of the common morphological 
cc19a3
endings removed; hopefully representing a common linguistic base form.  
cc19a3
This is most useful in building search engines and information 
cc19a3
retrieval software; for example, a search with stemming enabled should 
cc19a3
be able to find a document containing "cycling" given the query 
cc19a3
"cycles".
cc19a3
cc19a3
Snowball provides algorithms for several (mainly European) languages. 
cc19a3
It also provides access to the classic Porter stemming algorithm for 
cc19a3
English: although this has been superseded by an improved algorithm, 
cc19a3
the original algorithm may be of interest to information retrieval 
cc19a3
researchers wishing to reproduce results of earlier experiments.
cc19a3
cc19a3
%prep
cc19a3
%setup -q -n libstemmer_c
cc19a3
cc19a3
# Add rule to make libstemmer.so
cc19a3
sed -i -r "s|(^libstemmer.o:)|libstemmer.so: \$\(snowball_sources:.c=.o\)\n\
cc19a3
\t\$\(CC\) \$\(CFLAGS\) -shared \$\(LDFLAGS\) -Wl,-soname,libstemmer.so.%{?scl_prefix}0 \
cc19a3
-o \$\@.%{?scl_prefix}0.0.0 \$\^\n\1|" Makefile
cc19a3
cc19a3
%build
cc19a3
make libstemmer.so %{?_smp_mflags} CFLAGS="%{optflags} -fPIC -Iinclude"
cc19a3
cc19a3
%install
cc19a3
mkdir -p %{buildroot}%{_libdir}
cc19a3
mkdir -p %{buildroot}%{_includedir}
cc19a3
install -p -D -m 755	libstemmer.so.%{?scl_prefix}0.0.0	%{buildroot}%{_libdir}/
cc19a3
ln -s libstemmer.so.%{?scl_prefix}0.0.0	%{buildroot}%{_libdir}/libstemmer.so.%{?scl_prefix}0
cc19a3
ln -s libstemmer.so.%{?scl_prefix}0.0.0	%{buildroot}%{_libdir}/libstemmer.so
cc19a3
install -p -D -m 644	include/*	%{buildroot}%{_includedir}/
cc19a3
cc19a3
cp %{SOURCE1} %{SOURCE2} .
cc19a3
cc19a3
%post -p /sbin/ldconfig
cc19a3
cc19a3
%postun -p /sbin/ldconfig
cc19a3
cc19a3
%files
cc19a3
%doc Notice.txt BSD.txt README
cc19a3
%{_libdir}/libstemmer.so.*
cc19a3
cc19a3
%files devel
cc19a3
%{_libdir}/libstemmer.so
cc19a3
%{_includedir}/*
cc19a3
cc19a3
%changelog
cc19a3
* Wed Mar 18 2015 Marek Skalicky <mskalick@redhat.com> - 0-5.585svn
cc19a3
- Rebuilt for 'scls' removal
cc19a3
cc19a3
* Mon Jan 26 2015 Marek Skalicky <mskalick@redhat.com> - 0-4.585svn
cc19a3
- Added scl_runtime requires
cc19a3
cc19a3
* Sun Jan 18 2015 Honza Horak <hhorak@redhat.com> - 0-3.585svn
cc19a3
- Convert to scl package
cc19a3
cc19a3
* Tue Jan 6 2015 Marek Skalicky <mskalick@redhat.com> - 0-2.585svn
cc19a3
- Removed undefined-non-weak-symbol warnings
cc19a3
cc19a3
* Tue Dec 2 2014 Marek Skalicky <mskalick@redhat.com> - 0-1.585svn
cc19a3
- Initial packaging