forked from pool/python-bitstring
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
bitstring-1.3.0.tar.bz2
Normal file
3
bitstring-1.3.0.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ac4c57ff82ef1d7701afe48b6f6dc400f94933bbb34ead7d880836d095aadf7d
|
||||
size 882390
|
||||
5
python-bitstring.changes
Normal file
5
python-bitstring.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 19 19:27:25 UTC 2010 - toms@suse.de
|
||||
|
||||
- First initial version 1.3.0
|
||||
|
||||
23
python-bitstring.py.diff
Normal file
23
python-bitstring.py.diff
Normal file
@@ -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")
|
||||
+
|
||||
76
python-bitstring.spec
Normal file
76
python-bitstring.spec
Normal file
@@ -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 <scott@griffiths.name>
|
||||
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 <scott@griffiths.name>
|
||||
|
||||
|
||||
%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
|
||||
Reference in New Issue
Block a user