From d376ec47d68e12409b89b896e46399c00c85a51b Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Aug 03 2017 10:58:18 +0000 Subject: Upstream release 2.0.2 --- diff --git a/.gitignore b/.gitignore index 4d36401..840ef55 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /cryptography_vectors-1.7.1.tar.gz /cryptography_vectors-1.7.2.tar.gz /cryptography_vectors-1.9.tar.gz +/cryptography_vectors-2.0.2.tar.gz diff --git a/.rpmlint b/.rpmlint new file mode 100644 index 0000000..3d14c5d --- /dev/null +++ b/.rpmlint @@ -0,0 +1,2 @@ +addFilter("pem-certificate /usr/lib/python.*") +addFilter("no-documentation") diff --git a/python-cryptography-vectors.spec b/python-cryptography-vectors.spec index 4477f73..0854f44 100644 --- a/python-cryptography-vectors.spec +++ b/python-cryptography-vectors.spec @@ -1,20 +1,28 @@ -%global modname cryptography-vectors -%global pymodname cryptography_vectors +%if 0%{?fedora} +%global with_python3 1 +%endif + +%global srcname cryptography-vectors +%global pysrcname cryptography_vectors -Name: python-%{modname} -Version: 1.9 -Release: 3%{?dist} +Name: python-%{srcname} +Version: 2.0.2 +Release: 1%{?dist} +Summary: Test vectors for the cryptography package BuildArch: noarch License: ASL 2.0 or BSD Group: Development/Libraries Summary: Test vectors for the cryptography package URL: http://pypi.python.org/pypi/cryptography-vectors -Source0: https://pypi.io/packages/source/c/%{modname}/cryptography_vectors-%{version}.tar.gz +Source0: https://pypi.io/packages/source/c/%{srcname}/cryptography_vectors-%{version}.tar.gz -BuildRequires: python2-devel python2-setuptools -%if 0%{?fedora} -BuildRequires: python3-devel python3-setuptools +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%if 0%{with_python3} +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools %endif %description @@ -24,32 +32,32 @@ 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. -%package -n python2-%{modname} +%package -n python2-%{srcname} Group: Development/Libraries Summary: Test vectors for the cryptography package -Obsoletes: python-cryptography-vectors <= %{version}-%{release} +Obsoletes: python-cryptography-vectors < %{version}-%{release} -%if 0%{?fedora} -%{?python_provide:%python_provide python2-%{modname}} +%if 0%{with_python3} +%{?python_provide:%python_provide python2-%{srcname}} %else -Provides: python-%{modname} +Provides: python-%{srcname} = %{version}-%{release} %endif -%description -n python2-%{modname} +%description -n python2-%{srcname} 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%{?fedora} -%package -n python3-%{modname} +%if 0%{with_python3} +%package -n python%{python3_pkgversion}-%{srcname} Group: Development/Libraries Summary: Test vectors for the cryptography package -%{?python_provide:%python_provide python3-%{modname}} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} -%description -n python3-%{modname} +%description -n python%{python3_pkgversion}-%{srcname} Test vectors for the cryptography package. The only purpose of this package is to be a building requirement for @@ -58,23 +66,21 @@ you really know what you are doing. %endif %prep -%setup -q -n %{pymodname}-%{version} +%setup -q -n %{pysrcname}-%{version} # Remove bundled egg-info in case it exists -rm -rf %{modname}.egg-info +rm -rf %{srcname}.egg-info %build -CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build -%if 0%{?fedora} -CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build -%endif - -%install -%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} %if 0%{?fedora} -%{__python3} setup.py install -O1 --skip-build --root=%{buildroot} -%endif +%py2_build +%if 0%{?with_python3} +%py3_build +%endif # with_python3 +%else +%{__python2} setup.py build +%endif # fedora %check %{__python2} setup.py test @@ -82,20 +88,34 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %{__python3} setup.py test %endif -%files -n python2-%{modname} -%license LICENSE -%{python2_sitelib}/%{pymodname}/ -%{python2_sitelib}/%{pymodname}-%{version}* - +%install %if 0%{?fedora} -%files -n python3-%{modname} -%license LICENSE -%{python3_sitelib}/%{pymodname}/ -%{python3_sitelib}/%{pymodname}-%{version}* +%py2_install +%if 0%{?with_python3} +%py3_install +%endif # with_python3 +%else +%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} +%endif # fedora + +%files -n python2-%{srcname} +%license LICENSE LICENSE.APACHE LICENSE.BSD +%{python2_sitelib}/%{pysrcname}/ +%{python2_sitelib}/%{pysrcname}-%{version}-py*.egg-info + +%if 0%{with_python3} +%files -n python%{python3_pkgversion}-%{srcname} +%license LICENSE LICENSE.APACHE LICENSE.BSD +%{python3_sitelib}/%{pysrcname}/ +%{python3_sitelib}/%{pysrcname}-%{version}-py*.egg-info %endif %changelog +* Thu Aug 03 2017 Christian Heimes - 2.0.2-1 +- New upstream release 2.0.2 +- Modernize spec + * Thu Jul 27 2017 Fedora Release Engineering - 1.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild diff --git a/sources b/sources index 4d02f4e..879ff5c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cryptography_vectors-1.9.tar.gz) = 3c37dc39496b66539f54bf377b4653b59abaa81fc9fbd68e2d337acbfe9c7fd80801b37ddddc2f7698356b22fb9bcd9f8a41ff95ee405b208c267c0fcba56ead +SHA512 (cryptography_vectors-2.0.2.tar.gz) = ab14bdf664e6df08c8436eb24c4465d3080aacd4e6cb47a0113b0877f869cd91d4184ad9122a428b323e91316b686eeb167c4e932773cac1e7b2adbc9309ca36