Blame SPECS/python-asn1crypto.spec

a88692
# Created by pyp2rpm-3.2.2
a88692
%global pypi_name asn1crypto
a88692
a88692
%if 0%{?fedora} || 0%{?rhel} > 7
a88692
# Enable python3 build by default
a88692
%bcond_without python3
a88692
%else
a88692
%bcond_with python3
a88692
%endif
a88692
a88692
%if 0%{?rhel} > 7
a88692
# Disable python2 build by default
a88692
%bcond_with python2
a88692
%else
a88692
%bcond_without python2
a88692
%endif
a88692
a88692
%{!?python3_pkgversion:%global python3_pkgversion 3}
a88692
a88692
Name:           python-%{pypi_name}
a88692
Version:        0.24.0
a88692
Release:        3%{?dist}
a88692
Summary:        Fast Python ASN.1 parser and serializer
a88692
a88692
License:        MIT
a88692
URL:            https://github.com/wbond/asn1crypto
a88692
Source0:        https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
a88692
BuildArch:      noarch
a88692
a88692
%if 0%{?with_python2}
a88692
BuildRequires:  python2-devel
a88692
BuildRequires:  python2-setuptools
a88692
%endif
a88692
%if 0%{?with_python3}
a88692
BuildRequires:  python%{python3_pkgversion}-devel
a88692
BuildRequires:  python%{python3_pkgversion}-setuptools
a88692
%endif
a88692
a88692
%description
a88692
Fast ASN.1 parser and serializer with definitions for private keys,
a88692
public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8,
a88692
PKCS#12, PKCS#5, X.509 and TSP.
a88692
a88692
%if 0%{?with_python2}
a88692
%package -n     python2-%{pypi_name}
a88692
Summary:        %{summary}
a88692
%{?python_provide:%python_provide python2-%{pypi_name}}
a88692
a88692
%description -n python2-%{pypi_name}
a88692
Fast ASN.1 parser and serializer with definitions for private keys,
a88692
public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8,
a88692
PKCS#12, PKCS#5, X.509 and TSP.
a88692
%endif
a88692
a88692
%if 0%{?with_python3}
a88692
%package -n     python%{python3_pkgversion}-%{pypi_name}
a88692
Summary:        %{summary}
a88692
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
a88692
a88692
%description -n python%{python3_pkgversion}-%{pypi_name}
a88692
Fast ASN.1 parser and serializer with definitions for private keys,
a88692
public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8,
a88692
PKCS#12, PKCS#5, X.509 and TSP.
a88692
%endif
a88692
a88692
%prep
a88692
%autosetup -n %{pypi_name}-%{version}
a88692
# Remove bundled egg-info
a88692
rm -rf %{pypi_name}.egg-info
a88692
a88692
%build
a88692
%if 0%{?with_python2}
a88692
%py2_build
a88692
%endif
a88692
%if 0%{?with_python3}
a88692
%py3_build
a88692
%endif
a88692
a88692
%install
a88692
%if 0%{?with_python2}
a88692
%py2_install
a88692
%endif
a88692
%if 0%{?with_python3}
a88692
%py3_install
a88692
%endif
a88692
a88692
a88692
%check
a88692
# asn1crypto source distribution doesn't come with tests
a88692
# {__python2} setup.py test
a88692
%if 0%{?with_python3}
a88692
# {__python3} setup.py test
a88692
%endif
a88692
a88692
%if 0%{?with_python2}
a88692
%files -n python2-%{pypi_name}
a88692
%doc
a88692
%{python2_sitelib}/%{pypi_name}
a88692
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
a88692
%endif
a88692
a88692
%if 0%{?with_python3}
a88692
%files -n python%{python3_pkgversion}-%{pypi_name}
a88692
%doc
a88692
%{python3_sitelib}/%{pypi_name}
a88692
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
a88692
%endif
a88692
a88692
%changelog
a88692
* Tue Jun 19 2018 Christian Heimes <cheimes@redhat.com> - 0.24.0-3
a88692
- Drop Python 2 subpackages from RHEL 8, fixes RHBZ#1589755
a88692
a88692
* Wed May 09 2018 Troy Dawson <tdawson@redhat.com> - 0.24.0-2
a88692
- Cleanup spec file conditionals
a88692
a88692
* Wed Mar 21 2018 Christian Heimes <cheimes@redhat.com> - 0.24.0-1
a88692
- New upstream release 0.24.0
a88692
a88692
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.0-2
a88692
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a88692
a88692
* Thu Oct 12 2017 Christian Heimes <cheimes@redhat.com> - 0.23-1
a88692
- New upstream release 0.23.0
a88692
a88692
* Fri Aug 04 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-5
a88692
- Use python2-setuptools, add with_python3
a88692
a88692
* Thu Aug 03 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-4
a88692
- Modernize spec
a88692
a88692
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.0-3
a88692
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a88692
a88692
* Tue Jun 27 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-2
a88692
- Address rpmlint issues
a88692
a88692
* Tue Jun 27 2017 Christian Heimes <cheimes@redhat.com> - 0.22.0-1
a88692
- Initial package.