diff --git a/_service b/_service new file mode 100644 index 0000000..790feac --- /dev/null +++ b/_service @@ -0,0 +1,7 @@ + + + yes + enable + + + diff --git a/python-ecdsa.changes b/python-ecdsa.changes index 8bceb73..60753fc 100644 --- a/python-ecdsa.changes +++ b/python-ecdsa.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 28 11:52:09 UTC 2017 - pousaduarte@gmail.com + +- Convert to singlespec +- Use "download_files" in _service file to automate source fetching + ------------------------------------------------------------------- Sat Feb 21 01:31:36 UTC 2015 - prusnak@opensuse.org diff --git a/python-ecdsa.spec b/python-ecdsa.spec index 445eab7..2891658 100644 --- a/python-ecdsa.spec +++ b/python-ecdsa.spec @@ -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 @@ License: MIT 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 @@ into other protocols. %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 -%files +#hardlink duplicated files +%fdupes %{buildroot} + +%files %python_files %defattr(-,root,root,-) %doc LICENSE NEWS README.md %{python_sitelib}/*