File python-asn1.spec of Package python-asn1

#
# spec file for package python-asn1 (Version 0.0.11)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define modname pyasn1
%define prever a

Name:           python-asn1
Version:        0.0.11
Release:        1
License:        Other License(s), see package
Summary:        ASN.1 library for Python
Url:            http://pyasn1.sf.net/
Group:          Development/Libraries/Python
Source:         %{modname}-%{version}%{prever}.tar.bz2
BuildRequires:  python-devel python-setuptools
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Provides:       python-pyasn1 = %version
Obsoletes:      python-pyasn1 < 0.0.11
%{py_requires}

%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.

Author:
--------
    Ilya Etingof <ilya@glas.net>

%prep
%setup -q -n %{modname}-%{version}%{prever}

%build
export CFLAGS="%{optflags}"
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES

%clean
rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by