forked from pool/python-bitstring
- Update to 3.1.6:
* Fixed immutability bug. Bug 176. * Fixed failure of `__contains__` in some circumstances. Bug 180. * Better handling of open files. Bug 186. * Better Python 2/3 check. * Making unit tests easier to run. * Allowing length of 1 to be specified for bools. (Thanks to LemonPi) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitstring?expand=0&rev=15
This commit is contained in:
committed by
Git OBS Bridge
parent
2a1245ebc7
commit
47d629cbaa
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bitstring
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,24 +17,20 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Test files missing
|
||||
%bcond_with test
|
||||
Name: python-bitstring
|
||||
Version: 3.1.5
|
||||
Version: 3.1.6
|
||||
Release: 0
|
||||
Summary: Python module for the construction, analysis and modification of binary data
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/scott-griffiths/bitstring
|
||||
Source: https://files.pythonhosted.org/packages/source/b/bitstring/bitstring-%{version}.zip
|
||||
Source: https://github.com/scott-griffiths/bitstring/archive/bitstring-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: unzip
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -48,8 +44,8 @@ They can also be read from, searched and replaced, and navigated in,
|
||||
similar to a file or stream.
|
||||
|
||||
%prep
|
||||
%setup -q -n bitstring-%{version}
|
||||
sed -i 's/\r$//' README.rst
|
||||
%setup -q -n bitstring-bitstring-%{version}
|
||||
dos2unix README.rst
|
||||
sed -i '1{\@^#!%{_bindir}/env python@d}' bitstring.py
|
||||
|
||||
%build
|
||||
@@ -59,12 +55,9 @@ sed -i '1{\@^#!%{_bindir}/env python@d}' bitstring.py
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
py.test-%{$python_bin_suffix}
|
||||
}
|
||||
%endif
|
||||
cd test
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user