diff --git a/bitstring-2.2.0.zip b/bitstring-2.2.0.zip deleted file mode 100644 index 8478d80..0000000 --- a/bitstring-2.2.0.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7c39ffcc2a2d62f6ea5a0114ea903c9bafd05056c94d5385c56d04bb9d0f4a3d -size 584654 diff --git a/bitstring-3.0.2.zip b/bitstring-3.0.2.zip new file mode 100644 index 0000000..486c2e2 --- /dev/null +++ b/bitstring-3.0.2.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ff42c7192b694774e09ad70a6dd40a0e655ec022ed4f090c929ea69f21b8ebc +size 618856 diff --git a/python-bitstring.changes b/python-bitstring.changes index bff40fc..c5403d0 100644 --- a/python-bitstring.changes +++ b/python-bitstring.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Fri Jan 11 14:31:13 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + +------------------------------------------------------------------- +Fri Jan 11 14:30:45 UTC 2013 - p.drouand@gmail.com + +- Fix wronf EOF and remove shebang on bitstring.py + +------------------------------------------------------------------- +Fri Jan 11 14:14:55 UTC 2013 - p.drouand@gmail.com + +- Update to 3.0.2 version: + * Fix for subclasses of bitstring classes behaving strangely ( Issue 121 ). + * Fix for excessive memory usage in rare cases ( Issue 120 ). + * Fixes for slicing edge cases. + ------------------------------------------------------------------- Fri Sep 23 13:50:34 UTC 2011 - saschpe@suse.de diff --git a/python-bitstring.spec b/python-bitstring.spec index 94de71f..d2ed168 100644 --- a/python-bitstring.spec +++ b/python-bitstring.spec @@ -1,7 +1,7 @@ # # spec file for package python-bitstring # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -16,10 +16,10 @@ Name: python-bitstring -Version: 2.2.0 +Version: 3.0.2 Release: 0 Url: http://python-bitstring.googlecode.com -Summary: Simple construction, analysis and modification of binary data. +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 @@ -46,6 +46,11 @@ 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 python setup.py build diff --git a/python3-bitstring.changes b/python3-bitstring.changes new file mode 100644 index 0000000..c1e15ce --- /dev/null +++ b/python3-bitstring.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jan 11 14:31:13 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support \ No newline at end of file diff --git a/python3-bitstring.spec b/python3-bitstring.spec new file mode 100644 index 0000000..f2eb763 --- /dev/null +++ b/python3-bitstring.spec @@ -0,0 +1,62 @@ +# +# 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 +Version: 3.0.2 +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