diff --git a/.gitignore b/.gitignore index e69de29..7c1ba92 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/snowballstemmer-1.2.0.tar.gz diff --git a/python-snowballstemmer.spec b/python-snowballstemmer.spec new file mode 100644 index 0000000..e7f16fb --- /dev/null +++ b/python-snowballstemmer.spec @@ -0,0 +1,130 @@ +%global pypi_name snowballstemmer + +Name: python-%{pypi_name} +Version: 1.2.0 +Release: 1%{?dist} +Summary: Provides 16 stemmer algorithms generated from Snowball algorithms + +License: BSD +URL: https://pypi.python.org/pypi/%{pypi_name} +Source0: https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python3-devel + +%description +It includes following language algorithms: + +* Danish +* Dutch +* English (Standard, Porter) +* Finnish +* French +* German +* Hungarian +* Italian +* Norwegian +* Portuguese +* Romanian +* Russian +* Spanish +* Swedish +* Turkis + +This is a pure Python stemming library. If PyStemmer is available, this module +uses it to accelerate. + + +%package -n python2-%{pypi_name} +Summary: Provides 16 stemmer algorithms generated from Snowball algorithms +BuildArch: noarch +%{?python_provide:%python_provide python2-%{pypi_name}} + +%description -n python2-%{pypi_name} +It includes following language algorithms: + +* Danish +* Dutch +* English (Standard, Porter) +* Finnish +* French +* German +* Hungarian +* Italian +* Norwegian +* Portuguese +* Romanian +* Russian +* Spanish +* Swedish +* Turkis + +This is a pure Python stemming library. If PyStemmer is available, this module +uses it to accelerate. + + +%package -n python3-%{pypi_name} +Summary: Provides 16 stemmer algorithms generated from Snowball algorithms +BuildArch: noarch +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +It includes following language algorithms: + +* Danish +* Dutch +* English (Standard, Porter) +* Finnish +* French +* German +* Hungarian +* Italian +* Norwegian +* Portuguese +* Romanian +* Russian +* Spanish +* Swedish +* Turkis + +This is a pure Python stemming library. If PyStemmer is available, this module +uses it to accelerate. + + +%prep +%setup -qn %{pypi_name}-%{version} +# Remove upstream's egg-info +rm -rf %{pypi_name}.egg-info + + +%build +%py2_build +%py3_build + + +%install +%py2_install +%py3_install + + +%check +# No tests + + +%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}/ + +%files -n python3-%{pypi_name} +%license LICENSE.rst +%doc README.rst +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/%{pypi_name}/ + + +%changelog +* Mon Aug 24 2015 Julien Enselme - 1.2.0-1 +- Initial package diff --git a/sources b/sources index e69de29..8efc8ae 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +51f2ef829db8129dd0f2354f0b209970 snowballstemmer-1.2.0.tar.gz