[11921] | 1 | # Created by pyp2rpm-3.2.2 |
---|
| 2 | %global pypi_name asn1crypto |
---|
| 3 | |
---|
| 4 | %bcond_without python2 |
---|
| 5 | %bcond_without python3 |
---|
| 6 | |
---|
| 7 | %{!?python3_pkgversion:%global python3_pkgversion 3} |
---|
| 8 | |
---|
[12469] | 9 | Summary: Fast Python ASN.1 parser and serializer |
---|
[11921] | 10 | Name: python-%{pypi_name} |
---|
[12469] | 11 | Version: 1.4.0 |
---|
| 12 | Release: 1%{?_dist_release} |
---|
| 13 | Group: programming |
---|
| 14 | Vendor: Project Vine |
---|
| 15 | Distribution: Vine Linux |
---|
[11921] | 16 | |
---|
| 17 | License: MIT |
---|
| 18 | URL: https://github.com/wbond/asn1crypto |
---|
| 19 | Source0: https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz |
---|
| 20 | BuildArch: noarch |
---|
| 21 | |
---|
| 22 | %if 0%{?with_python2} |
---|
| 23 | BuildRequires: python-rpm-macros |
---|
| 24 | BuildRequires: python-devel |
---|
| 25 | BuildRequires: python-setuptools |
---|
| 26 | %{?python_provide:%python_provide python2-%{pypi_name}} |
---|
| 27 | %endif |
---|
| 28 | %if 0%{?with_python3} |
---|
| 29 | BuildRequires: python%{python3_pkgversion}-rpm-macros |
---|
| 30 | BuildRequires: python%{python3_pkgversion}-devel |
---|
| 31 | BuildRequires: python%{python3_pkgversion}-setuptools |
---|
| 32 | %endif |
---|
| 33 | |
---|
| 34 | %description |
---|
| 35 | Fast ASN.1 parser and serializer with definitions for private keys, |
---|
| 36 | public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, |
---|
| 37 | PKCS#12, PKCS#5, X.509 and TSP. |
---|
| 38 | |
---|
| 39 | %if 0%{?with_python3} |
---|
| 40 | %package -n python%{python3_pkgversion}-%{pypi_name} |
---|
| 41 | Summary: %{summary} |
---|
| 42 | %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} |
---|
| 43 | |
---|
| 44 | %description -n python%{python3_pkgversion}-%{pypi_name} |
---|
| 45 | Fast ASN.1 parser and serializer with definitions for private keys, |
---|
| 46 | public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, |
---|
| 47 | PKCS#12, PKCS#5, X.509 and TSP. |
---|
| 48 | %endif |
---|
| 49 | |
---|
| 50 | %prep |
---|
| 51 | %autosetup -n %{pypi_name}-%{version} |
---|
| 52 | # Remove bundled egg-info |
---|
| 53 | rm -rf %{pypi_name}.egg-info |
---|
| 54 | |
---|
| 55 | %build |
---|
| 56 | %if 0%{?with_python2} |
---|
[12469] | 57 | %py2_build |
---|
[11921] | 58 | %endif |
---|
| 59 | %if 0%{?with_python3} |
---|
| 60 | %py3_build |
---|
| 61 | %endif |
---|
| 62 | |
---|
| 63 | %install |
---|
| 64 | %if 0%{?with_python2} |
---|
[12469] | 65 | %py2_install |
---|
[11921] | 66 | %endif |
---|
| 67 | %if 0%{?with_python3} |
---|
| 68 | %py3_install |
---|
| 69 | %endif |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %check |
---|
| 73 | # asn1crypto source distribution doesn't come with tests |
---|
| 74 | # {__python2} setup.py test |
---|
| 75 | %if 0%{?with_python3} |
---|
| 76 | # {__python3} setup.py test |
---|
| 77 | %endif |
---|
| 78 | |
---|
| 79 | %if 0%{?with_python2} |
---|
| 80 | %files |
---|
[12469] | 81 | %license LICENSE |
---|
| 82 | %doc readme* changelog* |
---|
| 83 | %{python2_sitelib}/%{pypi_name} |
---|
| 84 | %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info |
---|
[11921] | 85 | %endif |
---|
| 86 | |
---|
| 87 | %if 0%{?with_python3} |
---|
| 88 | %files -n python%{python3_pkgversion}-%{pypi_name} |
---|
[12469] | 89 | %license LICENSE |
---|
| 90 | %doc readme* changelog* |
---|
[11921] | 91 | %{python3_sitelib}/%{pypi_name} |
---|
| 92 | %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info |
---|
| 93 | %endif |
---|
| 94 | |
---|
[12469] | 95 | |
---|
[11921] | 96 | %changelog |
---|
[12469] | 97 | * Sat Aug 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.0-1 |
---|
| 98 | - new upstream release. |
---|
| 99 | |
---|
[11921] | 100 | * Mon Nov 19 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.24.0-6 |
---|
| 101 | - initial build for Vine Linux. |
---|
| 102 | |
---|
| 103 | * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-5 |
---|
| 104 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
---|
| 105 | |
---|
| 106 | * Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.24.0-4 |
---|
| 107 | - Rebuilt for Python 3.7 |
---|
| 108 | |
---|
| 109 | * Tue Jun 19 2018 Christian Heimes <cheimes@redhat.com> - 0.24.0-3 |
---|
| 110 | - Build Python 2 package conditionally |
---|
| 111 | |
---|
| 112 | * Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 0.24.0-2 |
---|
| 113 | - Rebuilt for Python 3.7 |
---|
| 114 | |
---|
| 115 | * Wed Mar 21 2018 Christian Heimes <cheimes@redhat.com> - 0.24.0-1 |
---|
| 116 | - New upstream release 0.24.0 |
---|
| 117 | |
---|
| 118 | * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.0-2 |
---|
| 119 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
---|
| 120 | |
---|
| 121 | * Thu Oct 12 2017 Christian Heimes <cheimes@redhat.com> - 0.23-1 |
---|
| 122 | - New upstream release 0.23.0 |
---|
| 123 | |
---|
| 124 | * Fri Aug 04 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-5 |
---|
| 125 | - Use python2-setuptools, add with_python3 |
---|
| 126 | |
---|
| 127 | * Thu Aug 03 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-4 |
---|
| 128 | - Modernize spec |
---|
| 129 | |
---|
| 130 | * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.0-3 |
---|
| 131 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
| 132 | |
---|
| 133 | * Tue Jun 27 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-2 |
---|
| 134 | - Address rpmlint issues |
---|
| 135 | |
---|
| 136 | * Tue Jun 27 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-1 |
---|
| 137 | - Initial package. |
---|