Hello community,

here is the log from the commit of package python-ecdsa for openSUSE:Factory 
checked in at 2017-05-09 18:02:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ecdsa (Old)
 and      /work/SRC/openSUSE:Factory/.python-ecdsa.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ecdsa"

Tue May  9 18:02:41 2017 rev:7 rq:491843 version:0.13

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ecdsa/python-ecdsa.changes        
2015-02-24 13:07:01.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-ecdsa.new/python-ecdsa.changes   
2017-05-09 18:02:46.580060413 +0200
@@ -1,0 +2,6 @@
+Fri Apr 28 11:52:09 UTC 2017 - [email protected]
+
+- Convert to singlespec
+- Use "download_files" in _service file to automate source fetching
+
+-------------------------------------------------------------------

New:
----
  _service

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

Other differences:
------------------
++++++ python-ecdsa.spec ++++++
--- /var/tmp/diff_new_pack.obZ6Uf/_old  2017-05-09 18:02:47.315956422 +0200
+++ /var/tmp/diff_new_pack.obZ6Uf/_new  2017-05-09 18:02:47.319955857 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ecdsa
 #
-# Copyright (c) 2015 SUSE LINUX Products 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,6 +16,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-ecdsa
 Version:        0.13
 Release:        0
@@ -24,13 +25,13 @@
 Group:          Development/Languages/Python
 Url:            http://github.com/warner/python-ecdsa
 Source:         
https://pypi.python.org/packages/source/e/ecdsa/ecdsa-%{version}.tar.gz
-BuildRequires:  python-devel
+BuildRequires:  %{python_module devel}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:      noarch
-%endif
+
+%python_subpackages
 
 %description
 This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve
@@ -44,12 +45,17 @@
 %setup -q -n ecdsa-%{version}
 
 %build
-python setup.py build
+%python_build
+#remove shebang from all non executable files
+find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#! /usr/bin/env 
python@d}' {} \;
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+
+#hardlink duplicated files
+%fdupes %{buildroot}
 
-%files
+%files %python_files
 %defattr(-,root,root,-)
 %doc LICENSE NEWS README.md
 %{python_sitelib}/*

++++++ _service ++++++
<services>
 <service name="download_files" mode="localonly">
    <param name="enforceupstream">yes</param>
    <param name="changesgenerate">enable</param>
 </service>
 <service name="set_version" mode="localonly"/>
</services>

Reply via email to