Blame SPECS/python-asn1crypto.spec

a76406
# Created by pyp2rpm-3.2.2
a76406
%global pypi_name asn1crypto
a76406
a76406
%if 0%{?fedora} || 0%{?rhel} > 7
a76406
# Enable python3 build by default
a76406
%bcond_without python3
a76406
%else
a76406
%bcond_with python3
a76406
%endif
a76406
a76406
%if 0%{?fedora} > 31 || 0%{?rhel} > 7
a76406
# Disable python2 build by default
a76406
%bcond_with python2
a76406
%else
a76406
%bcond_without python2
a76406
%endif
a76406
a76406
%{!?python3_pkgversion:%global python3_pkgversion 3}
a76406
a76406
Name:           python-%{pypi_name}
a76406
Version:        1.2.0
a76406
Release:        3%{?dist}
a76406
Summary:        Fast Python ASN.1 parser and serializer
a76406
a76406
License:        MIT
a76406
URL:            https://github.com/wbond/asn1crypto
a76406
Source0:        https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
a76406
BuildArch:      noarch
a76406
# Exclude i686 arch. Due to a modularity issue it's being added to the
a76406
# x86_64 compose of CRB, but we don't want to ship it at all.
a76406
# See: https://projects.engineering.redhat.com/browse/RCM-72605
a76406
ExcludeArch:    i686
a76406
a76406
%if 0%{?with_python2}
a76406
BuildRequires:  python2-devel
a76406
BuildRequires:  python2-setuptools
a76406
%endif
a76406
%if 0%{?with_python3}
a76406
BuildRequires:  python%{python3_pkgversion}-devel
a76406
BuildRequires:  python%{python3_pkgversion}-setuptools
a76406
BuildRequires:  python%{python3_pkgversion}-rpm-macros
a76406
%endif
a76406
a76406
%description
a76406
Fast ASN.1 parser and serializer with definitions for private keys,
a76406
public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8,
a76406
PKCS#12, PKCS#5, X.509 and TSP.
a76406
a76406
%if 0%{?with_python2}
a76406
%package -n     python2-%{pypi_name}
a76406
Summary:        %{summary}
a76406
%{?python_provide:%python_provide python2-%{pypi_name}}
a76406
a76406
%description -n python2-%{pypi_name}
a76406
Fast ASN.1 parser and serializer with definitions for private keys,
a76406
public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8,
a76406
PKCS#12, PKCS#5, X.509 and TSP.
a76406
%endif
a76406
a76406
%if 0%{?with_python3}
a76406
%package -n     python%{python3_pkgversion}-%{pypi_name}
a76406
Summary:        %{summary}
a76406
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
a76406
a76406
%description -n python%{python3_pkgversion}-%{pypi_name}
a76406
Fast ASN.1 parser and serializer with definitions for private keys,
a76406
public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8,
a76406
PKCS#12, PKCS#5, X.509 and TSP.
a76406
%endif
a76406
a76406
%prep
a76406
%autosetup -n %{pypi_name}-%{version}
a76406
# Remove bundled egg-info
a76406
rm -rf %{pypi_name}.egg-info
a76406
a76406
%build
a76406
%if 0%{?with_python2}
a76406
%py2_build
a76406
%endif
a76406
%if 0%{?with_python3}
a76406
%py3_build
a76406
%endif
a76406
a76406
%install
a76406
%if 0%{?with_python2}
a76406
%py2_install
a76406
%endif
a76406
%if 0%{?with_python3}
a76406
%py3_install
a76406
%endif
a76406
a76406
a76406
%check
a76406
# asn1crypto source distribution doesn't come with tests
a76406
# {__python2} setup.py test
a76406
%if 0%{?with_python3}
a76406
# {__python3} setup.py test
a76406
%endif
a76406
a76406
%if 0%{?with_python2}
a76406
%files -n python2-%{pypi_name}
a76406
%doc
a76406
%{python2_sitelib}/%{pypi_name}
a76406
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
a76406
%endif
a76406
a76406
%if 0%{?with_python3}
a76406
%files -n python%{python3_pkgversion}-%{pypi_name}
a76406
%doc
a76406
%{python3_sitelib}/%{pypi_name}
a76406
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
a76406
%endif
a76406
a76406
%changelog
a76406
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 1.2.0-3
a76406
- Exclude unsupported i686 arch
a76406
a76406
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 1.2.0-2
a76406
- Adjusted for Python 3.8 module in RHEL 8
a76406
a76406
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 1.2.0-1
a76406
- New upstream version 1.2.0 (#1758089)
a76406
a76406
* Sat Oct 12 2019 Christian Heimes <cheimes@redhat.com> - 0.24.0-10
a76406
- Drop Python 2 package
a76406
- Resolves: rhbz#1761084
a76406
a76406
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.24.0-9
a76406
- Rebuilt for Python 3.8.0rc1 (#1748018)
a76406
a76406
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.24.0-8
a76406
- Rebuilt for Python 3.8
a76406
a76406
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-7
a76406
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a76406
a76406
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-6
a76406
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a76406
a76406
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-5
a76406
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a76406
a76406
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.24.0-4
a76406
- Rebuilt for Python 3.7
a76406
a76406
* Tue Jun 19 2018 Christian Heimes <cheimes@redhat.com> - 0.24.0-3
a76406
- Build Python 2 package conditionally
a76406
a76406
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 0.24.0-2
a76406
- Rebuilt for Python 3.7
a76406
a76406
* Wed Mar 21 2018 Christian Heimes <cheimes@redhat.com> - 0.24.0-1
a76406
- New upstream release 0.24.0
a76406
a76406
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.0-2
a76406
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a76406
a76406
* Thu Oct 12 2017 Christian Heimes <cheimes@redhat.com> - 0.23-1
a76406
- New upstream release 0.23.0
a76406
a76406
* Fri Aug 04 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-5
a76406
- Use python2-setuptools, add with_python3
a76406
a76406
* Thu Aug 03 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-4
a76406
- Modernize spec
a76406
a76406
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.0-3
a76406
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a76406
a76406
* Tue Jun 27 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-2
a76406
- Address rpmlint issues
a76406
a76406
* Tue Jun 27 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-1
a76406
- Initial package.