From cd03137d1833fc21b9a7dadbc4d2daa49bb70dbf Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 27 Jun 2017 18:25:01 +0200 Subject: [PATCH] Initial import (#1465335). --- .gitignore | 1 + python-asn1crypto.spec | 78 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 80 insertions(+) create mode 100644 python-asn1crypto.spec diff --git a/.gitignore b/.gitignore index e69de29..5b4b75e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/asn1crypto-0.22.0.tar.gz diff --git a/python-asn1crypto.spec b/python-asn1crypto.spec new file mode 100644 index 0000000..4c8468e --- /dev/null +++ b/python-asn1crypto.spec @@ -0,0 +1,78 @@ +# Created by pyp2rpm-3.2.2 +%global pypi_name asn1crypto + +Name: python-%{pypi_name} +Version: 0.22.0 +Release: 1%{?dist} +Summary: Fast Python ASN.1 parser and serializer + +License: MIT +URL: https://github.com/wbond/asn1crypto +Source0: https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python-setuptools + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +Fast ASN.1 parser and serializer with definitions for private keys, +public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, +PKCS#12, PKCS#5, X.509 and TSP. + +%package -n python2-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{pypi_name}} + +%description -n python2-%{pypi_name} +Fast ASN.1 parser and serializer with definitions for private keys, +public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, +PKCS#12, PKCS#5, X.509 and TSP. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Fast ASN.1 parser and serializer with definitions for private keys, +public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, +PKCS#12, PKCS#5, X.509 and TSP. + + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py2_build +%py3_build + +%install +# Must do the subpackages' install first because the scripts in /usr/bin are +# overwritten with every setup.py install. +%py3_install + +%py2_install + + +%check +# asn1crypto source distribution doesn't come with tests +# %{__python2} setup.py test +# %{__python3} setup.py test + +%files -n python2-%{pypi_name} +%doc +%{python2_sitelib}/%{pypi_name} +%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%files -n python3-%{pypi_name} +%doc +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%changelog +* Tue Jun 27 2017 Christian Heimes - 0.22.0-1 +- Initial package. diff --git a/sources b/sources index e69de29..56179e4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (asn1crypto-0.22.0.tar.gz) = fdc98f71ec3b744e69a75909b5b0a8381fb82d448941a6e1059823af47ca107218e1dbe6ff192e2173f11fc2454be1afcd387d801dc8e716451179857d71f8b8