2013-01-15 14:12:02 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python3-bitstring
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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: python3-bitstring
|
2013-04-20 12:47:24 +00:00
|
|
|
Version: 3.1.2
|
2013-01-15 14:12:02 +00:00
|
|
|
Release: 0
|
|
|
|
|
Url: http://python-bitstring.googlecode.com
|
|
|
|
|
Summary: Simple construction, analysis and modification of binary data
|
|
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
|
Source: http://pypi.python.org/packages/source/b/bitstring/bitstring-%{version}.zip
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildRequires: python3
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-distribute
|
|
|
|
|
BuildRequires: unzip
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%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.txt release_notes.txt
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
python3 setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc README.txt release_notes.txt doc/*
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|