diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6fa36b9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libstemmer_c-svn585.tgz diff --git a/.rh-mongodb36-libstemmer.metadata b/.rh-mongodb36-libstemmer.metadata new file mode 100644 index 0000000..39c79e7 --- /dev/null +++ b/.rh-mongodb36-libstemmer.metadata @@ -0,0 +1 @@ +1ac6bb16e829e9f3a58f62c27047c26784975aa1 SOURCES/libstemmer_c-svn585.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/BSD.txt b/SOURCES/BSD.txt new file mode 100644 index 0000000..febb7e3 --- /dev/null +++ b/SOURCES/BSD.txt @@ -0,0 +1,11 @@ +Copyright (c) 2001, Dr Martin Porter, and (for the Java developments) +Copyright (c) 2002, Richard Boulton +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/SOURCES/Notice.txt b/SOURCES/Notice.txt new file mode 100644 index 0000000..947bf1d --- /dev/null +++ b/SOURCES/Notice.txt @@ -0,0 +1,9 @@ + All the software given out on this Snowball site is covered by the BSD License (see http://www.opensource.org/licenses/bsd-license.html ), with Copyright (c) 2001, Dr Martin Porter, and (for the Java developments) Copyright (c) 2002, Richard Boulton. + +Essentially, all this means is that you can do what you like with the code, except claim another Copyright for it, or claim that it is issued under a different license. The software is also issued without warranties, which means that if anyone suffers through its use, they cannot come back and sue you. You also have to alert anyone to whom you give the Snowball software to the fact that it is covered by the BSD license. + +We have not bothered to insert the licensing arrangement into the text of the Snowball software. + + + +(from: http://snowball.tartarus.org/license.php) diff --git a/SPECS/libstemmer.spec b/SPECS/libstemmer.spec new file mode 100644 index 0000000..497d7d7 --- /dev/null +++ b/SPECS/libstemmer.spec @@ -0,0 +1,107 @@ +%{?scl:%scl_package libstemmer} +%{!?scl:%global pkg_name %{name}} + +Name: %{?scl_prefix}libstemmer +Version: 0 +Release: 5.585svn%{?dist} +Summary: C stemming algorithm library +# The site and project is no longer being actively maintained. +# The code is available on Github - https://github.com/snowballstem/snowball +URL: http://snowball.tartarus.org +# The licence is specified on website +# http://snowball.tartarus.org/license.php +# There is a pull request to include it into source code +# https://github.com/snowballstem/snowball/issues/10 +License: BSD +Source0: http://snowball.tartarus.org/dist/%{pkg_name}_c-svn585.tgz +Source1: Notice.txt +Source2: BSD.txt + +%{?scl:Requires:%scl_runtime} + +%description +Snowball stemming algorithms for use in Information Retrieval Snowball +provides access to efficient algorithms for calculating a "stemmed" +form of a word. This is a form with most of the common morphological +endings removed; hopefully representing a common linguistic base form. +This is most useful in building search engines and information +retrieval software; for example, a search with stemming enabled should +be able to find a document containing "cycling" given the query +"cycles". + +Snowball provides algorithms for several (mainly European) languages. +It also provides access to the classic Porter stemming algorithm for +English: although this has been superseded by an improved algorithm, +the original algorithm may be of interest to information retrieval +researchers wishing to reproduce results of earlier experiments. + +%package devel +Summary: C stemming algorithm library developer files +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package contains development files of libstemmer. + +Snowball stemming algorithms for use in Information Retrieval Snowball +provides access to efficient algorithms for calculating a "stemmed" +form of a word. This is a form with most of the common morphological +endings removed; hopefully representing a common linguistic base form. +This is most useful in building search engines and information +retrieval software; for example, a search with stemming enabled should +be able to find a document containing "cycling" given the query +"cycles". + +Snowball provides algorithms for several (mainly European) languages. +It also provides access to the classic Porter stemming algorithm for +English: although this has been superseded by an improved algorithm, +the original algorithm may be of interest to information retrieval +researchers wishing to reproduce results of earlier experiments. + +%prep +%setup -q -n libstemmer_c + +# Add rule to make libstemmer.so +sed -i -r "s|(^libstemmer.o:)|libstemmer.so: \$\(snowball_sources:.c=.o\)\n\ +\t\$\(CC\) \$\(CFLAGS\) -shared \$\(LDFLAGS\) -Wl,-soname,libstemmer.so.%{?scl_prefix}0 \ +-o \$\@.%{?scl_prefix}0.0.0 \$\^\n\1|" Makefile + +%build +make libstemmer.so %{?_smp_mflags} CFLAGS="%{optflags} -fPIC -Iinclude" + +%install +mkdir -p %{buildroot}%{_libdir} +mkdir -p %{buildroot}%{_includedir} +install -p -D -m 755 libstemmer.so.%{?scl_prefix}0.0.0 %{buildroot}%{_libdir}/ +ln -s libstemmer.so.%{?scl_prefix}0.0.0 %{buildroot}%{_libdir}/libstemmer.so.%{?scl_prefix}0 +ln -s libstemmer.so.%{?scl_prefix}0.0.0 %{buildroot}%{_libdir}/libstemmer.so +install -p -D -m 644 include/* %{buildroot}%{_includedir}/ + +cp %{SOURCE1} %{SOURCE2} . + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc Notice.txt BSD.txt README +%{_libdir}/libstemmer.so.* + +%files devel +%{_libdir}/libstemmer.so +%{_includedir}/* + +%changelog +* Wed Mar 18 2015 Marek Skalicky - 0-5.585svn +- Rebuilt for 'scls' removal + +* Mon Jan 26 2015 Marek Skalicky - 0-4.585svn +- Added scl_runtime requires + +* Sun Jan 18 2015 Honza Horak - 0-3.585svn +- Convert to scl package + +* Tue Jan 6 2015 Marek Skalicky - 0-2.585svn +- Removed undefined-non-weak-symbol warnings + +* Tue Dec 2 2014 Marek Skalicky - 0-1.585svn +- Initial packaging