Accepting request 508202 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/508202 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-inflect?expand=0&rev=2
This commit is contained in:
parent
dcf54a72bb
commit
177d392648
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 4 18:37:00 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Converted to singlespec
|
||||
- Enabled tests
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 2 13:24:18 UTC 2016 - sor.alexei@meowr.ru
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-inflect
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -16,37 +16,41 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-inflect
|
||||
Version: 0.2.5
|
||||
Release: 0
|
||||
Summary: Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words
|
||||
Summary: Methods for working on numbers and nouns
|
||||
License: AGPL-3.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/pwdyson/inflect.py
|
||||
Source0: https://files.pythonhosted.org/packages/source/i/inflect/inflect-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
%if 0%{?suse_version} >= 1120
|
||||
BuildArch: noarch
|
||||
%else
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%py_requires
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words.
|
||||
|
||||
%prep
|
||||
%setup -q -n inflect-%{version}
|
||||
rm -rf inflect.egg-info
|
||||
|
||||
%build
|
||||
python2 setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%fdupes %{buildroot}
|
||||
%python_install
|
||||
%python_exec %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files
|
||||
%check
|
||||
%python_expand PYTHONPATH=build/lib %{_bindir}/nosetests
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.txt COPYING.txt README.rst
|
||||
%{python_sitelib}/*
|
||||
|
Loading…
Reference in New Issue
Block a user