SHA256
1
0
forked from pool/python-ecdsa

Accepting request 491825 from home:xenonpk:python

Convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/491825
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ecdsa?expand=0&rev=12
This commit is contained in:
2017-04-28 12:57:33 +00:00
committed by Git OBS Bridge
parent fe658fa4c6
commit 93be3e909e
3 changed files with 28 additions and 9 deletions
+15 -9
View File
@@ -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}/*