Accepting request 506709 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/506709 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-random2?expand=0&rev=3
This commit is contained in:
parent
0f5b38acb0
commit
18975c7d8c
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 28 07:32:51 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Converted to single-spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 6 20:42:33 UTC 2013 - hpj@urpla.net
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-random2
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2013 LISA GmbH, Bingen, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@ -17,24 +17,22 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-random2
|
||||
Version: 1.0.1
|
||||
Release: 0
|
||||
License: Python-2.0
|
||||
Summary: A Session and Caching library with WSGI Middleware
|
||||
Url: http://pypi.python.org/pypi/random2
|
||||
License: Python-2.0
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/r/random2/random2-%{version}.zip
|
||||
BuildRequires: python-setuptools
|
||||
Url: http://pypi.python.org/pypi/random2
|
||||
Source: https://files.pythonhosted.org/packages/source/r/random2/random2-%{version}.zip
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
BuildRequires: python
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This package provides a Python 3 ported version of Python 2.7's random module.
|
||||
@ -52,15 +50,16 @@ adjusted. This package fixes that.
|
||||
%setup -q -n random2-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
python setup.py test
|
||||
%python_exec setup.py test
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGES.txt README.txt PKG-INFO
|
||||
%{python_sitelib}/*
|
||||
|
Loading…
Reference in New Issue
Block a user