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