Hello community,

here is the log from the commit of package python-cryptography for 
openSUSE:Factory checked in at 2017-04-19 18:06:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cryptography (Old)
 and      /work/SRC/openSUSE:Factory/.python-cryptography.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cryptography"

Wed Apr 19 18:06:03 2017 rev:25 rq:483838 version:1.8.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cryptography/python-cryptography.changes  
2017-02-05 16:24:55.257306163 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-cryptography.new/python-cryptography.changes 
    2017-04-19 18:06:06.445887696 +0200
@@ -1,0 +2,11 @@
+Mon Mar 20 20:34:03 UTC 2017 - [email protected]
+
+- Switch to singlespec approach
+
+-------------------------------------------------------------------
+Thu Mar 16 14:13:56 UTC 2017 - [email protected]
+
+- update to 1.8.1
+- Adust Requires and BuildRequires
+
+-------------------------------------------------------------------

Old:
----
  cryptography-1.7.2.tar.gz
  cryptography-1.7.2.tar.gz.asc
  cryptography_vectors-1.7.2.tar.gz
  cryptography_vectors-1.7.2.tar.gz.asc

New:
----
  cryptography-1.8.1.tar.gz
  cryptography-1.8.1.tar.gz.asc
  cryptography_vectors-1.8.1.tar.gz
  cryptography_vectors-1.8.1.tar.gz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-cryptography.spec ++++++
--- /var/tmp/diff_new_pack.XlKvj7/_old  2017-04-19 18:06:07.797696477 +0200
+++ /var/tmp/diff_new_pack.XlKvj7/_new  2017-04-19 18:06:07.797696477 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-cryptography
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,52 +16,56 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-cryptography
-Version:        1.7.2
+Version:        1.8.1
 Release:        0
 Summary:        Python library which exposes cryptographic recipes and 
primitives
 License:        Apache-2.0 or BSD-3-Clause
 Group:          Development/Languages/Python
 Url:            https://cryptography.io/en/latest/
-Source0:        
https://pypi.io/packages/source/c/cryptography/cryptography-%{version}.tar.gz
-Source1:        
https://pypi.io/packages/source/c/cryptography/cryptography-%{version}.tar.gz.asc
+Source0:        
https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz
+Source1:        
https://files.pythonhosted.org/packages/source/c/cryptography/cryptography-%{version}.tar.gz.asc
 Source2:        %{name}.keyring
-Source3:        
https://pypi.io/packages/source/c/cryptography_vectors/cryptography_vectors-%{version}.tar.gz
-Source4:        
https://pypi.io/packages/source/c/cryptography_vectors/cryptography_vectors-%{version}.tar.gz.asc
+Source3:        
https://files.pythonhosted.org/packages/source/c/cryptography_vectors/cryptography_vectors-%{version}.tar.gz
+Source4:        
https://files.pythonhosted.org/packages/source/c/cryptography_vectors/cryptography_vectors-%{version}.tar.gz.asc
 # PATCH-FIX-SLE disable-uneven-sizes-tests.patch bnc#944204
 Patch1:         disable-uneven-sizes-tests.patch
-
+BuildRequires:  %{python_module asn1crypto >= 0.21.0}
+BuildRequires:  %{python_module cffi >= 1.4.1}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module idna >= 2.1}
+BuildRequires:  %{python_module pyasn1-modules}
+BuildRequires:  %{python_module pytz}
+BuildRequires:  %{python_module setuptools >= 11.3}
+BuildRequires:  %{python_module six >= 1.4.1}
+BuildRequires:  python-rpm-macros
+BuildRequires:  python2-enum34
+BuildRequires:  python2-ipaddress
+# SECTION Test requirements
+BuildRequires:  %{python_module hypothesis}
+BuildRequires:  %{python_module iso8601}
+BuildRequires:  %{python_module pretend}
+BuildRequires:  %{python_module pyasn1 >= 0.1.8}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module virtualenv}
+# /SECTION
+BuildRequires:  fdupes
 BuildRequires:  libopenssl-devel
-BuildRequires:  pkg-config
-BuildRequires:  python-cffi >= 1.1.0
-BuildRequires:  python-devel
-BuildRequires:  python-enum34
-BuildRequires:  python-idna >= 2.0
-BuildRequires:  python-ipaddress
-BuildRequires:  python-pyasn1-modules
-BuildRequires:  python-setuptools >= 11.3
-BuildRequires:  python-six >= 1.4.1
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-BuildRequires:  libffi43-devel
-%else
-BuildRequires:  python-hypothesis
+BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(libffi)
-%endif
-BuildRequires:  python-pytz
-# Test requirements
-BuildRequires:  python-iso8601
-BuildRequires:  python-pretend
-BuildRequires:  python-pyasn1 >= 0.1.8
-BuildRequires:  python-pytest
-BuildRequires:  python-virtualenv
-%requires_eq    python-cffi
-Requires:       python-enum34
-Requires:       python-idna >= 2.0
-Requires:       python-ipaddress
+Requires:       python-asn1crypto >= 0.21.0
+Requires:       python-idna >= 2.1
 Requires:       python-pyasn1 >= 0.1.8
 Requires:       python-setuptools >= 11.3
 Requires:       python-six >= 1.4.1
+%requires_eq    python-cffi
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%ifpython2
+Requires:       python-enum34
+Requires:       python-ipaddress
+%endif
+%python_subpackages
 
 %description
 cryptography is a package designed to expose cryptographic
@@ -83,33 +87,35 @@
 %patch1 -p1
 
 %build
-CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
+export CFLAGS="%{optflags} -fno-strict-aliasing"
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%fdupes %{buildroot}%{_prefix}
 
 %check
 %if 0%{?suse_version} >= 1210
-# this is going to be fun
+%{python_expand # this is going to be fun
 # create virtualenv
-virtualenv --system-site-packages TESTROOT
-. TESTROOT/bin/activate
+$python %{_bindir}/virtualenv --system-site-packages 
TESTROOT-%{$python_bin_suffix}
+. TESTROOT-%{$python_bin_suffix}/bin/activate
 # install package in virtualenv
-python setup.py install
+$python setup.py install
 # install cryptography vectors
-(cd cryptography_vectors-%{version} && python setup.py install)
+(cd cryptography_vectors-%{version} && $python setup.py install)
 # run tests with virtualenv'd python
 # (specify "tests" directory, otherwise py.test discovers tests in 
virtualenv'd setuptools)
-python /usr/bin/py.test tests
+$python -m pytest tests
 # finish
 deactivate
+}
 %endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %doc LICENSE LICENSE.APACHE LICENSE.BSD
 %doc AUTHORS.rst CONTRIBUTING.rst CHANGELOG.rst README.rst
-%{python_sitearch}/cryptography/
-%{python_sitearch}/cryptography-%{version}-py%{py_ver}.egg-info/
+%{python_sitearch}/*
 
 %changelog

++++++ cryptography-1.7.2.tar.gz -> cryptography-1.8.1.tar.gz ++++++
++++ 4667 lines of diff (skipped)

++++++ cryptography_vectors-1.7.2.tar.gz -> cryptography_vectors-1.8.1.tar.gz 
++++++
/work/SRC/openSUSE:Factory/python-cryptography/cryptography_vectors-1.7.2.tar.gz
 
/work/SRC/openSUSE:Factory/.python-cryptography.new/cryptography_vectors-1.8.1.tar.gz
 differ: char 5, line 1


Reply via email to