commit b8dd28e3a4b4ed5de03c4cb65285ab70d282abf136df3df7094dcdd1802ab79c Author: Thomas Schraitle Date: Fri Mar 19 19:40:11 2010 +0000 Accepting request 35391 from home:thomas-schraitle Copy from home:thomas-schraitle/python-bitstring via accept of submit request 35391 revision 1. Request was accepted with message: New package OBS-URL: https://build.opensuse.org/request/show/35391 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitstring?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/bitstring-1.3.0.tar.bz2 b/bitstring-1.3.0.tar.bz2 new file mode 100644 index 0000000..ee1a54e --- /dev/null +++ b/bitstring-1.3.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac4c57ff82ef1d7701afe48b6f6dc400f94933bbb34ead7d880836d095aadf7d +size 882390 diff --git a/python-bitstring.changes b/python-bitstring.changes new file mode 100644 index 0000000..11078d7 --- /dev/null +++ b/python-bitstring.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Mar 19 19:27:25 UTC 2010 - toms@suse.de + +- First initial version 1.3.0 + diff --git a/python-bitstring.py.diff b/python-bitstring.py.diff new file mode 100644 index 0000000..c34bff3 --- /dev/null +++ b/python-bitstring.py.diff @@ -0,0 +1,23 @@ +--- 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 new file mode 100644 index 0000000..4eca5ae --- /dev/null +++ b/python-bitstring.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-bitstring +# +# Copyright (c) 2010 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/ + +%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 +%py_requires + +%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. + +Author +------ + Scott Griffiths + + +%prep +%setup -q -n %{modname}-%{version} +%patch0 + +%build +python setup.py build +chmod -x %{modname}.py + +%install +python setup.py install \ + --root=$RPM_BUILD_ROOT \ + --prefix=%{_prefix} \ + --record=%{name}.files + +%check +cd test +python test_bitstring.py -v + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.files +%defattr(-,root,root) + +%changelog \ No newline at end of file