Projects
Kube:Winterfell
python-snowballstemmer
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
python-snowballstemmer.spec
Changed
@@ -1,3 +1,12 @@ +%if 0%{?fedora} +%global with_python3 +%endif + +%{!?py2_build: %global py2_build %{expand: +CFLAGS="%{optflags}" /usr/bin/python setup.py %{?py_setup_args} build --executable="/usr/bin/python -s" %{?1}}} +%{!?py2_install: %global py2_install %{expand: +CFLAGS="%{optflags}" %{__python} setup.py %{?py_setup_args} install -O1 --skip-build --root %{buildroot} %{?1}}} + %global pypi_name snowballstemmer Name: python-%{pypi_name} @@ -11,7 +20,10 @@ BuildArch: noarch BuildRequires: python2-devel + +%if 0%{?with_python3} BuildRequires: python3-devel +%endif %description It includes following language algorithms: @@ -63,7 +75,7 @@ This is a pure Python stemming library. If PyStemmer is available, this module uses it to accelerate. - +%if 0%{?with_python3} %package -n python3-%{pypi_name} Summary: Provides 16 stemmer algorithms generated from Snowball algorithms BuildArch: noarch @@ -90,7 +102,7 @@ This is a pure Python stemming library. If PyStemmer is available, this module uses it to accelerate. - +%endif %prep %setup -qn %{pypi_name}-%{version} @@ -100,13 +112,15 @@ %build %py2_build +%if 0%{?with_python3} %py3_build - +%endif %install %py2_install +%if 0%{?with_python3} %py3_install - +%endif %check # No tests @@ -118,12 +132,13 @@ %{python2_sitelib}/%{pypi_name}-%{version}-py%{python2_version}.egg-info %{python2_sitelib}/%{pypi_name}/ +%if 0%{?with_python3} %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}/ - +%endif %changelog * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.