forked from pool/python-pyasn1
Accepting request 480500 from home:tbechtold:branches:devel:languages:python
- Switch to singlespec approach OBS-URL: https://build.opensuse.org/request/show/480500 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyasn1?expand=0&rev=50
This commit is contained in:
committed by
Git OBS Bridge
parent
c8f99a7f5f
commit
2c52bf11a3
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 16 13:42:52 UTC 2017 - tbechtold@suse.com
|
||||||
|
|
||||||
|
- Switch to singlespec approach
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 6 13:28:21 UTC 2017 - michael@stroeder.com
|
Mon Mar 6 13:28:21 UTC 2017 - michael@stroeder.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyasn1
|
# spec file for package python-pyasn1
|
||||||
#
|
#
|
||||||
# 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,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pyasn1
|
Name: python-pyasn1
|
||||||
Version: 0.2.3
|
Version: 0.2.3
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -24,17 +25,15 @@ License: BSD-2-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/etingof/pyasn1
|
Url: https://github.com/etingof/pyasn1
|
||||||
Source: https://pypi.io/packages/source/p/pyasn1/pyasn1-%{version}.tar.gz
|
Source: https://pypi.io/packages/source/p/pyasn1/pyasn1-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: python-pytest
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-rpm-macros
|
||||||
Provides: python-asn1 = %{version}
|
Provides: python-asn1 = %{version}
|
||||||
Obsoletes: python-asn1 < 0.1.2
|
Obsoletes: python-asn1 < 0.1.2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%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()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is an implementation of ASN.1 types and codecs in Python programming
|
This is an implementation of ASN.1 types and codecs in Python programming
|
||||||
@@ -46,15 +45,15 @@ specification.
|
|||||||
%setup -q -n pyasn1-%{version}
|
%setup -q -n pyasn1-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%check
|
|
||||||
python setup.py test
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
|
||||||
%files
|
%check
|
||||||
|
%python_exec setup.py test
|
||||||
|
|
||||||
|
%files %python_files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES.rst LICENSE.rst README.md THANKS.txt TODO.rst doc
|
%doc CHANGES.rst LICENSE.rst README.md THANKS.txt TODO.rst doc
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
Reference in New Issue
Block a user