From d7628b7ec4a87a998b8ad2ffa31245eb126dfbd418a39843cf2cf366b3a369e2 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:12:34 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ecdsa?expand=0&rev=15 --- python-ecdsa.spec | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/python-ecdsa.spec b/python-ecdsa.spec index f07efe8..2ad54b4 100644 --- a/python-ecdsa.spec +++ b/python-ecdsa.spec @@ -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