forked from pool/python-ecdsa
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ecdsa?expand=0&rev=15
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user