forked from pool/python-inflect
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
|
Tue Aug 2 13:24:18 UTC 2016 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-inflect
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,37 +16,41 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-inflect
|
Name: python-inflect
|
||||||
Version: 0.2.5
|
Version: 0.2.5
|
||||||
Release: 0
|
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
|
License: AGPL-3.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/pwdyson/inflect.py
|
Url: https://github.com/pwdyson/inflect.py
|
||||||
Source0: https://files.pythonhosted.org/packages/source/i/inflect/inflect-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/i/inflect/inflect-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module base}
|
||||||
|
BuildRequires: %{python_module nose}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-rpm-macros
|
||||||
%if 0%{?suse_version} >= 1120
|
|
||||||
BuildArch: noarch
|
|
||||||
%else
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%py_requires
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words.
|
Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n inflect-%{version}
|
%setup -q -n inflect-%{version}
|
||||||
|
rm -rf inflect.egg-info
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python2 setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
%fdupes %{buildroot}
|
%python_exec %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files
|
%check
|
||||||
|
%python_expand PYTHONPATH=build/lib %{_bindir}/nosetests
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES.txt COPYING.txt README.rst
|
%doc CHANGES.txt COPYING.txt README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
Loading…
Reference in New Issue
Block a user