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