diff --git a/bitstring-1.3.0.tar.bz2 b/bitstring-1.3.0.tar.bz2 deleted file mode 100644 index ee1a54e..0000000 --- a/bitstring-1.3.0.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac4c57ff82ef1d7701afe48b6f6dc400f94933bbb34ead7d880836d095aadf7d -size 882390 diff --git a/bitstring-2.2.0.zip b/bitstring-2.2.0.zip new file mode 100644 index 0000000..8478d80 --- /dev/null +++ b/bitstring-2.2.0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c39ffcc2a2d62f6ea5a0114ea903c9bafd05056c94d5385c56d04bb9d0f4a3d +size 584654 diff --git a/python-bitstring.changes b/python-bitstring.changes index 11078d7..bff40fc 100644 --- a/python-bitstring.changes +++ b/python-bitstring.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Fri Sep 23 13:50:34 UTC 2011 - saschpe@suse.de + +- Update to version 2.2.0: + * Fix for Python 3.2, correcting for a change to the binascii module. + * Fix for bool initialisation from 0 or 1. + * Efficiency improvements, including interning strategy. +- Changes from version 2.1.1: + * Bug fix: Reading using the 'bytes' token had been broken (Issue 102). + * Fixed problem using some methods on ConstBitArrays. + * Better exception handling for tokens missing values. + * Some performance improvements. +- See release_notes.txt for further changes... + ------------------------------------------------------------------- Fri Mar 19 19:27:25 UTC 2010 - toms@suse.de diff --git a/python-bitstring.py.diff b/python-bitstring.py.diff deleted file mode 100644 index c34bff3..0000000 --- a/python-bitstring.py.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- bitstring.py.orig 2010-03-19 20:29:28.935704104 +0100 -+++ bitstring.py 2010-03-19 20:29:46.238828417 +0100 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+# -*- coding: utf-8 -*- - """ - Module for bit-wise data manipulation. - http://python-bitstring.googlecode.com -@@ -3828,13 +3828,4 @@ - 'se': Bits._setse, - } - --if __name__=='__main__': -- print("Running bitstring module unit tests:") -- try: -- import sys, os -- sys.path.insert(0, 'test') -- import test_bitstring -- os.chdir('test') -- test_bitstring.unittest.main(test_bitstring) -- except ImportError: -- print("Error: cannot find test_bitstring.py") -+ diff --git a/python-bitstring.spec b/python-bitstring.spec index 4eca5ae..94de71f 100644 --- a/python-bitstring.spec +++ b/python-bitstring.spec @@ -14,24 +14,25 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ -%define modname bitstring -Summary: Simple Construction, Analysis and Modification of Binary Data -Name: python-%{modname} -Version: 1.3.0 -Release: 1 -Source0: %{modname}-%{version}.tar.bz2 -Patch0: %{name}.py.diff -License: MIT License -Group: Development/Libraries/Python -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot -%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} -BuildArch: noarch -%endif -Vendor: Scott Griffiths -Url: http://python-bitstring.googlecode.com -BuildRequires: python-devel +Name: python-bitstring +Version: 2.2.0 +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: python-devel +BuildRequires: unzip +%if 0%{?suse_version} %py_requires +%if 0%{?suse_version} > 1110 +BuildArch: noarch +%endif +%endif +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description bitstring is a pure Python module designed to help make @@ -43,34 +44,18 @@ 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. -Author ------- - Scott Griffiths - - %prep -%setup -q -n %{modname}-%{version} -%patch0 +%setup -q -n bitstring-%{version} %build python setup.py build -chmod -x %{modname}.py %install -python setup.py install \ - --root=$RPM_BUILD_ROOT \ - --prefix=%{_prefix} \ - --record=%{name}.files +python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%check -cd test -python test_bitstring.py -v - - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f %{name}.files +%files %defattr(-,root,root) +%doc README.txt release_notes.txt doc/* +%{python_sitelib}/* -%changelog \ No newline at end of file +%changelog