forked from pool/python-pyasn1
- Fix obsoletes for python-asn1 instead
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyasn1?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
ac4c8c46ce
commit
6f7db4cb23
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 18 07:46:46 UTC 2012 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Fix obsoletes for python-asn1 instead
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 17 15:12:23 UTC 2012 - dmueller@suse.com
|
Tue Apr 17 15:12:23 UTC 2012 - dmueller@suse.com
|
||||||
|
|
||||||
|
@@ -19,21 +19,21 @@
|
|||||||
Name: python-pyasn1
|
Name: python-pyasn1
|
||||||
Version: 0.1.2
|
Version: 0.1.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://pyasn1.sf.net/
|
|
||||||
Summary: ASN.1 types and codecs
|
Summary: ASN.1 types and codecs
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
Url: http://pyasn1.sf.net/
|
||||||
Source: http://pypi.python.org/packages/source/p/pyasn1/pyasn1-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/p/pyasn1/pyasn1-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-distribute
|
BuildRequires: python-distribute
|
||||||
%if 0%{?suse_version}
|
Provides: python-asn1 = %{version}
|
||||||
%py_requires
|
Obsoletes: python-asn1 < 0.1.2
|
||||||
%if 0%{?suse_version} > 1110
|
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
|
%endif
|
||||||
%endif
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
|
|
||||||
%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
|
||||||
@@ -45,15 +45,11 @@ specification.
|
|||||||
%setup -q -n pyasn1-%{version}
|
%setup -q -n pyasn1-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf %{buildroot}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES LICENSE README THANKS TODO doc
|
%doc CHANGES LICENSE README THANKS TODO doc
|
||||||
|
Reference in New Issue
Block a user