python-asn1crypto/python-asn1crypto.spec

203 lines
6.2 KiB
RPMSpec
Raw Normal View History

2017-06-27 16:25:01 +00:00
# Created by pyp2rpm-3.2.2
%global pypi_name asn1crypto
2018-06-19 09:07:01 +00:00
%if 0%{?fedora} || 0%{?rhel} > 7
# Enable python3 build by default
%bcond_without python3
%else
%bcond_with python3
%endif
%if 0%{?fedora} > 31 || 0%{?rhel} > 7
2018-06-19 09:07:01 +00:00
# Disable python2 build by default
%bcond_with python2
%else
%bcond_without python2
2017-10-12 09:22:00 +00:00
%endif
%{!?python3_pkgversion:%global python3_pkgversion 3}
2017-06-27 16:25:01 +00:00
Name: python-%{pypi_name}
Version: 1.5.1
2023-06-13 18:31:09 +00:00
Release: 5%{?dist}
2017-06-27 16:25:01 +00:00
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
2017-06-27 16:30:35 +00:00
2018-06-19 09:07:01 +00:00
%if 0%{?with_python2}
2017-06-27 16:25:01 +00:00
BuildRequires: python2-devel
2017-10-12 09:22:00 +00:00
BuildRequires: python2-setuptools
2018-06-19 09:07:01 +00:00
%endif
2017-10-12 09:22:00 +00:00
%if 0%{?with_python3}
2017-08-03 09:58:18 +00:00
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
2017-10-12 09:22:00 +00:00
%endif
2017-06-27 16:25:01 +00:00
%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.
2018-06-19 09:07:01 +00:00
%if 0%{?with_python2}
2017-06-27 16:25:01 +00:00
%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.
2018-06-19 09:07:01 +00:00
%endif
2017-06-27 16:25:01 +00:00
2017-10-12 09:22:00 +00:00
%if 0%{?with_python3}
2017-08-03 09:58:18 +00:00
%package -n python%{python3_pkgversion}-%{pypi_name}
2017-06-27 16:25:01 +00:00
Summary: %{summary}
2017-08-03 09:58:18 +00:00
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
2017-06-27 16:25:01 +00:00
2017-08-03 09:58:18 +00:00
%description -n python%{python3_pkgversion}-%{pypi_name}
2017-06-27 16:25:01 +00:00
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.
2017-10-12 09:22:00 +00:00
%endif
2017-06-27 16:25:01 +00:00
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
2018-06-19 09:07:01 +00:00
%if 0%{?with_python2}
2017-06-27 16:25:01 +00:00
%py2_build
2018-06-19 09:07:01 +00:00
%endif
2017-10-12 09:22:00 +00:00
%if 0%{?with_python3}
2017-06-27 16:25:01 +00:00
%py3_build
2017-10-12 09:22:00 +00:00
%endif
2017-06-27 16:25:01 +00:00
%install
2018-06-19 09:07:01 +00:00
%if 0%{?with_python2}
%py2_install
%endif
2017-10-12 09:22:00 +00:00
%if 0%{?with_python3}
2017-06-27 16:25:01 +00:00
%py3_install
2017-10-12 09:22:00 +00:00
%endif
2017-06-27 16:25:01 +00:00
%check
# asn1crypto source distribution doesn't come with tests
2017-06-27 16:30:35 +00:00
# {__python2} setup.py test
2017-10-12 09:22:00 +00:00
%if 0%{?with_python3}
2017-06-27 16:30:35 +00:00
# {__python3} setup.py test
2017-10-12 09:22:00 +00:00
%endif
2017-06-27 16:25:01 +00:00
2018-06-19 09:07:01 +00:00
%if 0%{?with_python2}
2017-06-27 16:25:01 +00:00
%files -n python2-%{pypi_name}
2017-06-27 16:30:35 +00:00
%doc
2017-06-27 16:25:01 +00:00
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
2018-06-19 09:07:01 +00:00
%endif
2017-06-27 16:25:01 +00:00
2017-10-12 09:22:00 +00:00
%if 0%{?with_python3}
2017-08-03 09:58:18 +00:00
%files -n python%{python3_pkgversion}-%{pypi_name}
2017-06-27 16:30:35 +00:00
%doc
2017-06-27 16:25:01 +00:00
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
2017-10-12 09:22:00 +00:00
%endif
2017-06-27 16:25:01 +00:00
%changelog
2023-06-13 18:31:09 +00:00
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.5.1-5
- Rebuilt for Python 3.12
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-06-13 12:56:58 +00:00
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.5.1-2
- Rebuilt for Python 3.11
* Wed May 04 2022 Major Hayden <major@mhtx.net> - 1.5.1-1
- Update to 1.5.1 (#2062397)
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-06-03 08:22:28 +00:00
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.4.0-3
- Rebuilt for Python 3.10
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2021-01-21 10:21:03 +00:00
* Thu Jan 21 11:20:16 CET 2021 Christian Heimes <cheimes@redhat.com> - 1.4.0-1
- Upstream release 1.4.0 (#1861548)
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-05-23 02:09:15 +00:00
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-3
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2020-01-13 09:25:59 +00:00
* Mon Jan 13 2020 Christian Heimes <cheimes@redhat.com> - 1.3.0-1
- Update to 1.3.0 (#1758089)
* Sat Oct 12 2019 Christian Heimes <cheimes@redhat.com> - 0.24.0-10
- Drop Python 2 package
- Resolves: rhbz#1761084
2019-10-03 12:03:13 +00:00
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.24.0-9
- Rebuilt for Python 3.8.0rc1 (#1748018)
2019-08-15 23:44:50 +00:00
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.24.0-8
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-07-02 16:23:01 +00:00
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.24.0-4
- Rebuilt for Python 3.7
2018-06-19 09:07:01 +00:00
* Tue Jun 19 2018 Christian Heimes <cheimes@redhat.com> - 0.24.0-3
- Build Python 2 package conditionally
2018-06-15 18:22:57 +00:00
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 0.24.0-2
- Rebuilt for Python 3.7
2018-03-21 11:19:39 +00:00
* Wed Mar 21 2018 Christian Heimes <cheimes@redhat.com> - 0.24.0-1
- New upstream release 0.24.0
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-10-12 09:22:00 +00:00
* Thu Oct 12 2017 Christian Heimes <cheimes@redhat.com> - 0.23-1
- New upstream release 0.23.0
* Fri Aug 04 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-5
- Use python2-setuptools, add with_python3
2017-08-03 09:58:18 +00:00
* Thu Aug 03 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-4
- Modernize spec
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-06-27 16:30:35 +00:00
* Tue Jun 27 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-2
- Address rpmlint issues
2017-06-27 16:25:01 +00:00
* Tue Jun 27 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-1
- Initial package.