diff --git a/python-bitstring.spec b/python-bitstring.spec index 49aea93..14dd7ce 100644 --- a/python-bitstring.spec +++ b/python-bitstring.spec @@ -25,17 +25,16 @@ Release: 0 Summary: Construction, analysis and modification of binary data License: MIT Group: Development/Languages/Python -Url: https://github.com/scott-griffiths/bitstring +URL: https://github.com/scott-griffiths/bitstring Source: https://files.pythonhosted.org/packages/source/b/bitstring/bitstring-%{version}.zip BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip +BuildArch: noarch %if %{with test} BuildRequires: %{python_module pytest} %endif -BuildArch: noarch - %python_subpackages %description @@ -51,7 +50,7 @@ similar to a file or stream. %prep %setup -q -n bitstring-%{version} sed -i 's/\r$//' README.rst -sed -i '1{\@^#!/usr/bin/env python@d}' bitstring.py +sed -i '1{\@^#!%{_bindir}/env python@d}' bitstring.py %build %python_build @@ -68,8 +67,8 @@ py.test-%{$python_bin_suffix} %endif %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst +%license LICENSE +%doc README.rst %{python_sitelib}/* %changelog