Hello community,

here is the log from the commit of package python-pycrypto for openSUSE:Factory 
checked in at 2017-05-16 14:29:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pycrypto (Old)
 and      /work/SRC/openSUSE:Factory/.python-pycrypto.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pycrypto"

Tue May 16 14:29:29 2017 rev:18 rq:493100 version:2.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pycrypto/python-pycrypto.changes  
2017-01-09 11:52:22.558690117 +0100
+++ /work/SRC/openSUSE:Factory/.python-pycrypto.new/python-pycrypto.changes     
2017-05-16 14:29:31.586876252 +0200
@@ -1,0 +2,11 @@
+Fri May  5 21:50:18 UTC 2017 - [email protected]
+
+- There was never a python3-crypto so don't provide it.
+
+-------------------------------------------------------------------
+Mon May  1 16:20:20 UTC 2017 - [email protected]
+
+- Implement single-spec version.
+- Use Pypi source URL.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pycrypto.spec ++++++
--- /var/tmp/diff_new_pack.8TBT17/_old  2017-05-16 14:29:32.206789167 +0200
+++ /var/tmp/diff_new_pack.8TBT17/_new  2017-05-16 14:29:32.210788604 +0200
@@ -16,6 +16,10 @@
 #
 
 
+%bcond_without tests
+
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
 Name:           python-pycrypto
 Version:        2.6.1
 Release:        0
@@ -23,18 +27,20 @@
 Summary:        Cryptographic modules for Python
 License:        Python-2.0
 Group:          Development/Languages/Python
-Source:         
https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/p/pycrypto/pycrypto-%{version}.tar.gz
 # PATCH-FIX-SUSE: We don't have libgmp5 on SLE11
 Patch0:         ignore-fastmath-warning.diff
 Patch1:         CVE-2013-7459.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
 BuildRequires:  gmp-devel
-BuildRequires:  python-devel
-Provides:       python-crypto = %{version}
-Obsoletes:      python-crypto < %{version}
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitearch: %global python_sitearch %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+%ifpython2
+Obsoletes:      %{oldpython}-crypto < %{version}
+Provides:       %{oldpython}-crypto = %{version}
 %endif
+%python_subpackages
 
 %description
 The package contains:
@@ -57,15 +63,19 @@
 %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
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
 
+%if %{with tests}
 %check
-python setup.py test
+%python_exec setup.py test
+%endif
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
 %doc ACKS ChangeLog COPYRIGHT README
 %{python_sitearch}/Crypto/


Reply via email to