2011-08-31 15:09:58 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyasn1
|
|
|
|
#
|
2012-04-17 15:13:45 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-08-31 15:09:58 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-09-01 15:34:59 +00:00
|
|
|
|
2011-08-31 15:09:58 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-12 09:05:17 +00:00
|
|
|
|
2011-08-31 15:09:58 +00:00
|
|
|
Name: python-pyasn1
|
2012-03-23 11:49:05 +00:00
|
|
|
Version: 0.1.2
|
2012-04-17 15:13:45 +00:00
|
|
|
Release: 0
|
2011-08-31 15:09:58 +00:00
|
|
|
Url: http://pyasn1.sf.net/
|
|
|
|
Summary: ASN.1 types and codecs
|
2011-12-08 15:04:30 +00:00
|
|
|
License: BSD-3-Clause
|
2011-08-31 15:09:58 +00:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source: http://pypi.python.org/packages/source/p/pyasn1/pyasn1-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-distribute
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%py_requires
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is an implementation of ASN.1 types and codecs in Python programming
|
|
|
|
language. It has been first written to support particular protocol (SNMP) but
|
|
|
|
then generalized to be suitable for a wide range of protocols based on ASN.1
|
|
|
|
specification.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pyasn1-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2011-08-31 16:08:01 +00:00
|
|
|
%doc CHANGES LICENSE README THANKS TODO doc
|
2011-08-31 15:09:58 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|