17
0
Files
python-bitstring/python-bitstring.spec
Dirk Mueller 0a4cd263e7 Accepting request 416195 from home:mnhauke
- Update to version 3.1.5
  * Support initialisation from an array.
  * Added a separate LICENSE file.
- Update to version 3.1.4
  * Fix for bitstring types when created directly from other bitstring types.
  * Updating contact, website details.
- Update to version 3.1.3
  * Fix for problem with prepend for bitstrings with byte offsets in their data store.

OBS-URL: https://build.opensuse.org/request/show/416195
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitstring?expand=0&rev=7
2016-08-07 11:49:45 +00:00

66 lines
2.2 KiB
RPMSpec

#
# spec file for package python-bitstring
#
# Copyright (c) 2016 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-bitstring
Version: 3.1.5
Release: 0
Url: http://python-bitstring.googlecode.com
Summary: Simple construction, analysis and modification of binary data
License: MIT
Group: Development/Libraries/Python
Source: https://files.pythonhosted.org/packages/source/b/bitstring/bitstring-%{version}.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: unzip
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
bitstring is a pure Python module designed to help make
the creation and analysis of binary data as simple and natural as possible.
BitStrings can be constructed from integers (big and little endian), hex,
octal, binary, strings or files. They can be sliced, joined, reversed,
inserted into, overwritten, etc. with simple functions or slice notation.
They can also be read from, searched and replaced, and navigated in,
similar to a file or stream.
%prep
%setup -q -n bitstring-%{version}
# For rpmlint warning: remove shebang from python library:
sed -i '/^#!/d' bitstring.py
# Fix wrong EOL encoding:
sed -i 's/\r$//' README.rst release_notes.txt
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root)
%doc LICENSE README.rst release_notes.txt doc/*
%{python_sitelib}/*
%changelog