%global modname cryptography-vectors
%global pymodname cryptography_vectors
%global sum Test vectors for the cryptography package
%global pkgdesc \
Test vectors for the cryptography package. \
\
The only purpose of this package is to be a building requirement for \
python-cryptography, otherwise it has no use. Don’t install it unless \
you really know what you are doing.
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
Name: python-%{modname}
Version: 1.0.2
Release: 3%{?dist}
Summary: %{sum}
Group: Development/Libraries
License: ASL 2.0 or BSD
URL: http://pypi.python.org/pypi/cryptography-vectors
Source0: https://pypi.python.org/packages/source/c/%{modname}/cryptography_vectors-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel python-setuptools
BuildRequires: python-srpm-macros
%{?python_provide:%python_provide python-%{modname}}
%description %{pkgdesc}
%package -n python%{python3_pkgversion}-%{modname}
Group: Development/Libraries
Summary: %{sum}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
%description -n python%{python3_pkgversion}-%{modname} %{pkgdesc}
%if 0%{?with_python3_other}
%package -n python%{python3_other_pkgversion}-%{modname}
Group: Development/Libraries
Summary: %{sum}
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{modname}}
BuildRequires: python%{python3_other_pkgversion}-devel
BuildRequires: python%{python3_other_pkgversion}-setuptools
%description -n python%{python3_other_pkgversion}-%{modname} %{pkgdesc}
%endif
%prep
%autosetup -n %{pymodname}-%{version}
# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info
%build
%py2_build
%py3_build
%if 0%{?with_python3_other}
%py3_other_build
%endif
%install
%py2_install
%py3_install
%if 0%{?with_python3_other}
%py3_other_install
%endif
%check
%{__python2} setup.py test
%{__python3} setup.py test
%if 0%{?with_python3_other}
%{__python3_other} setup.py test
%endif
%files
%doc LICENSE
%{python2_sitelib}/%{pymodname}/
%{python2_sitelib}/%{pymodname}-%{version}*
%files -n python%{python3_pkgversion}-%{modname}
%doc LICENSE
%{python3_sitelib}/%{pymodname}/
%{python3_sitelib}/%{pymodname}-%{version}*
%if 0%{?with_python3_other}
%files -n python%{python3_other_pkgversion}-%{modname}
%doc LICENSE
%{python3_other_sitelib}/%{pymodname}/
%{python3_other_sitelib}/%{pymodname}-%{version}*
%endif
%changelog
* Tue Aug 15 2017 Aurelien Bompard <abompard@fedoraproject.org> - 1.0.2-3
- Build the Python3 version in EPEL:
http://fedoraproject.org/wiki/PackagingDrafts:Python3EPEL
* Wed Nov 04 2015 Robert Kuska <rkuska@redhat.com> - 1.0.2-2
- Rebuilt for Python3.5 rebuild
* Wed Sep 30 2015 Matěj Cepl <mcepl@redhat.com> - 1.0.2-1
- New upstream release (fix #1267548)
* Wed Aug 12 2015 Nathaniel McCallum <npmccallum@redhat.com> - 1.0-1
- New upstream release
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Thu May 14 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.9-1
- New upstream release
* Fri Apr 17 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.8.2-1
- New upstream release
* Fri Mar 13 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.8-1
- New upstream release
* Wed Mar 04 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.7.2-2
- Add python3 subpackage
* Wed Mar 04 2015 Nathaniel McCallum <npmccallum@redhat.com> - 0.7.2-1
- New upstream release
- Now licensed under Apache 2.0 or BSD
* Thu Oct 16 2014 Matej Cepl <mcepl@redhat.com> - 0.6.1-1
- New upstream release (fixes among others #1153501)
* Wed Oct 01 2014 Matej Cepl <mcepl@redhat.com> - 0.5.4-3
- Add LICENSE file from the upstream repo.
* Mon Sep 29 2014 Matej Cepl <mcepl@redhat.com> - 0.5.4-2
- initial package for Fedora