Accepting request 480588 from home:tbechtold:branches:devel:languages:python

- Switch to singlespec approach

OBS-URL: https://build.opensuse.org/request/show/480588
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyasn1-modules?expand=0&rev=33
This commit is contained in:
Jan Matejek 2017-03-16 14:20:35 +00:00 committed by Git OBS Bridge
parent 8d5b6c6dfb
commit 866a359e8e
2 changed files with 15 additions and 18 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 16 13:46:56 UTC 2017 - tbechtold@suse.com
- Switch to singlespec approach
-------------------------------------------------------------------
Tue Dec 29 17:10:09 UTC 2015 - michael@stroeder.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pyasn1-modules
#
# Copyright (c) 2013 SUSE LINUX Products 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,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyasn1-modules
Version: 0.0.8
Release: 0
@ -23,19 +24,14 @@ Url: http://pyasn1.sf.net/
Summary: Collection of protocols modules written in ASN.1 language
License: BSD-3-Clause
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/p/pyasn1-modules/pyasn1-modules-%{version}.tar.gz
Source: https://pypi.io/packages/source/p/pyasn1-modules/pyasn1-modules-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires: python-pyasn1
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%else
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%endif
%endif
%python_subpackages
%description
This is an implementation of ASN.1 types and codecs in Python programming
@ -47,16 +43,12 @@ specification.
%setup -q -n pyasn1-modules-%{version}
%build
export CFLAGS="%{optflags}"
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%clean
rm -rf %{buildroot}
%files
%files %python_files
%defattr(-,root,root,-)
%doc CHANGES.txt LICENSE.txt README.txt
%{python_sitelib}/*