1
0

Accepting request 507532 from home:okurz:branches:devel:languages:python

Convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/507532
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanize?expand=0&rev=5
This commit is contained in:
Dirk Mueller 2017-07-04 05:22:13 +00:00 committed by Git OBS Bridge
parent 37b77d1e3e
commit 453a1718b3
2 changed files with 22 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jul 1 14:54:14 UTC 2017 - okurz@suse.com
- Convert to singlespec
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 18 09:06:59 UTC 2015 - mimi.vx@gmail.com Fri Dec 18 09:06:59 UTC 2015 - mimi.vx@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-humanize # spec file for package python-humanize
# #
# Copyright (c) 2015 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,16 +16,21 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-humanize Name: python-humanize
%global modname humanize
Version: 0.5.1 Version: 0.5.1
Release: 0 Release: 0
Summary: Python humanize utilities Summary: Python humanize utilities
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://github.com/jmoiron/humanize Url: http://github.com/jmoiron/%{modname}
Source: http://pypi.python.org/packages/source/h/humanize/humanize-%{version}.tar.gz Source: https://pypi.io/packages/source/h/%{modname}/%{modname}-%{version}.tar.gz
BuildRequires: python-devel BuildRequires: %{python_module devel}
BuildRequires: python-setuptools BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
@ -33,22 +38,25 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%endif %endif
%python_subpackages
%description %description
This modest package contains various common humanization utilities, like turning This modest package contains various common humanization utilities, like turning
a number into a fuzzy human readable duration ('3 minutes ago') or into a human a number into a fuzzy human readable duration ('3 minutes ago') or into a human
readable size or throughput. readable size or throughput.
%prep %prep
%setup -q -n humanize-%{version} %setup -q -n %{modname}-%{version}
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%find_lang humanize %find_lang humanize
%fdupes %{buildroot}%{_prefix}
%files -f humanize.lang %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc LICENCE README.rst %doc LICENCE README.rst
%{python_sitelib}/* %{python_sitelib}/*