Compare commits

..

No commits in common. "c9" and "c8" have entirely different histories.
c9 ... c8

4 changed files with 41 additions and 102 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/snowballstemmer-1.9.0.tar.gz SOURCES/snowballstemmer-1.2.1.tar.gz

View File

@ -1 +1 @@
f4d9a9b072cc6cdaa80ecf2f037e8b8ab2b76425 SOURCES/snowballstemmer-1.9.0.tar.gz 377be08ed935d401a53cba79319d1812cfe46b81 SOURCES/snowballstemmer-1.2.1.tar.gz

View File

@ -1,27 +0,0 @@
Copyright (c) 2001, Dr Martin Porter
Copyright (c) 2004,2005, 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.
3. Neither the name of the Snowball project nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
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 OWNER 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.

View File

@ -1,16 +1,26 @@
%global pypi_name snowballstemmer %global pypi_name snowballstemmer
%if 0%{?rhel} > 7
# Disable python2 build by default
%bcond_with python2
%else
%bcond_without python2
%endif
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 1.9.0 Version: 1.2.1
Release: 10%{?dist} Release: 6%{?dist}
Summary: Provides 16 stemmer algorithms generated from Snowball algorithms Summary: Provides 16 stemmer algorithms generated from Snowball algorithms
License: BSD License: BSD
URL: https://pypi.python.org/pypi/%{pypi_name} URL: https://pypi.python.org/pypi/%{pypi_name}
Source0: https://files.pythonhosted.org/packages/a0/5e/d9ead2d57d39b3e1c1868ce84212319e5543a19c4185dce7e42a9dd968b0/snowballstemmer-1.9.0.tar.gz Source0: https://pypi.python.org/packages/20/6b/d2a7cb176d4d664d94a6debf52cd8dbae1f7203c8e42426daa077051d59c/%{pypi_name}-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/snowballstem/snowball/master/COPYING
BuildArch: noarch BuildArch: noarch
%if %{with python2}
BuildRequires: python2-devel
%endif # with python2
BuildRequires: python3-devel
%description %description
It includes following language algorithms: It includes following language algorithms:
@ -35,13 +45,13 @@ This is a pure Python stemming library. If PyStemmer is available, this module
uses it to accelerate. uses it to accelerate.
%package -n python%{python3_pkgversion}-%{pypi_name} %if %{with python2}
%package -n python2-%{pypi_name}
Summary: Provides 16 stemmer algorithms generated from Snowball algorithms Summary: Provides 16 stemmer algorithms generated from Snowball algorithms
BuildRequires: python%{python3_pkgversion}-devel
BuildArch: noarch BuildArch: noarch
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %{?python_provide:%python_provide python2-%{pypi_name}}
%description -n python%{python3_pkgversion}-%{pypi_name} %description -n python2-%{pypi_name}
It includes following language algorithms: It includes following language algorithms:
* Danish * Danish
@ -62,16 +72,15 @@ It includes following language algorithms:
This is a pure Python stemming library. If PyStemmer is available, this module This is a pure Python stemming library. If PyStemmer is available, this module
uses it to accelerate. uses it to accelerate.
%endif # with python2
%if 0%{?python3_other_pkgversion} %package -n python3-%{pypi_name}
%package -n python%{python3_other_pkgversion}-%{pypi_name}
Summary: Provides 16 stemmer algorithms generated from Snowball algorithms Summary: Provides 16 stemmer algorithms generated from Snowball algorithms
BuildRequires: python%{python3_other_pkgversion}-devel
BuildArch: noarch BuildArch: noarch
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pypi_name}} %{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python%{python3_other_pkgversion}-%{pypi_name} %description -n python3-%{pypi_name}
It includes following language algorithms: It includes following language algorithms:
* Danish * Danish
@ -92,92 +101,49 @@ It includes following language algorithms:
This is a pure Python stemming library. If PyStemmer is available, this module This is a pure Python stemming library. If PyStemmer is available, this module
uses it to accelerate. uses it to accelerate.
%endif # python3_other_pkgversion
%prep %prep
%setup -qn %{pypi_name}-%{version} %setup -qn %{pypi_name}-%{version}
# Remove upstream's egg-info # Remove upstream's egg-info
rm -rf %{pypi_name}.egg-info rm -rf %{pypi_name}.egg-info
cp %{SOURCE1} .
%build %build
%if %{with python2}
%py2_build
%endif # with python2
%py3_build %py3_build
%{?python3_other_pkgversion: %py3_other_build}
%install %install
%if %{with python2}
%py2_install
%endif # with python2
%py3_install %py3_install
%{?python3_other_pkgversion: %py3_other_install}
%check %check
# No tests # No tests
%if %{with python2}
%files -n python2-%{pypi_name}
%license LICENSE.rst
%doc README.rst
%{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info
%{python2_sitelib}/%{pypi_name}/
%endif # with python2
%files -n python%{python3_pkgversion}-%{pypi_name} %files -n python3-%{pypi_name}
%license COPYING %license LICENSE.rst
%doc README.rst %doc README.rst
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}/
%if 0%{?python3_other_pkgversion}
%files -n python%{python3_other_pkgversion}-%{pypi_name}
%license COPYING
%doc README.rst
%{python3_other_sitelib}/%{pypi_name}-%{version}-py%{python3_other_version}.egg-info
%{python3_other_sitelib}/%{pypi_name}/
%endif # python3_other_pkgversion
%changelog %changelog
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.9.0-10 * Thu Jun 14 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.2.1-6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Conditionalize the python2 subpackage
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.9.0-9
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-6
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-4
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-3
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 1.9.0-1
- Update to 1.9.0
* Wed Mar 06 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-10
- Subpackage python2-snowballstemmer has been removed
See https://fedoraproject.org/wiki/Changes/Sphinx2
* Sun Feb 24 2019 Julien Enselme <jujens@jujens.eu> - 1.2.1-9
- Can build on EPEL7 (#1622605). Thanks to Scott K Logan for the patch.
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.1-6
- Rebuilt for Python 3.7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-5 * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild