15
0
forked from pool/python-ecdsa
2018-12-04 17:12:34 +00:00
committed by Git OBS Bridge
parent 4f75f2797e
commit d7628b7ec4

View File

@@ -23,13 +23,11 @@ Release: 0
Summary: ECDSA cryptographic signature library (pure python)
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
URL: http://github.com/warner/python-ecdsa
Source: https://files.pythonhosted.org/packages/source/e/ecdsa/ecdsa-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
@@ -46,7 +44,7 @@ into other protocols.
%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}' {} \;
find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#! %{_bindir}/env python@d}' {} \;
%install
%python_install
@@ -54,9 +52,9 @@ find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#! /usr/bin/env pyt
#hardlink duplicated files
%fdupes %{buildroot}
%files %python_files
%defattr(-,root,root,-)
%doc LICENSE NEWS README.md
%files %{python_files}
%license LICENSE
%doc NEWS README.md
%{python_sitelib}/*
%changelog