From acbbea3ad2c8c859e0f7296165b2b299574c3966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= sergio@serjux.com Date: Fri, 1 Jul 2016 00:15:06 +0100 Subject: Upgrade to version 0.8.1
Add Python 3 Clean up the spec --- .gitignore | 1 + python-bitarray.spec | 87 +++++++++++++++++++++++++++++++++++++++------------- sources | 2 +- 3 files changed, 67 insertions(+), 23 deletions(-)
diff --git a/.gitignore b/.gitignore index a65fcfc..7dc5874 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ bitarray-0.3.5.tar.gz +/bitarray-0.8.1.tar.gz diff --git a/python-bitarray.spec b/python-bitarray.spec index 0ca610c..f5116cc 100644 --- a/python-bitarray.spec +++ b/python-bitarray.spec @@ -1,17 +1,23 @@ +%global srcname bitarray +%global sum Efficient Array of Booleans --C Extensions %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-Name: python-bitarray -Version: 0.3.5 -Release: 12%{?dist} -Summary: Efficient Array of Booleans --C Extensions +Name: python-%{srcname} +Version: 0.8.1 +Release: 1%{?dist} +Summary: %{sum}
Group: Development/Languages License: Python -URL: http://pypi.python.org/pypi/bitarray/ -Source0: http://pypi.python.org/packages/source/b/bitarray/bitarray-%%7Bversion%7D.ta... -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: python-devel python-setuptools +URL: http://pypi.python.org/pypi/%%7Bsrcname%7D/ +Source0: http://pypi.python.org/packages/source/b/%%7Bsrcname%7D/%%7Bsrcname%7D-%%7Bv... + +BuildRequires: python2-devel +BuildRequires: python2-setuptools + +BuildRequires: python3-devel +BuildRequires: python3-setuptools
%description Bitarrays are sequence types and behave very much like usual lists. @@ -23,32 +29,71 @@ files is required, such as portable bitmap image files (.pbm). Also, when dealing with compressed data which uses variable bit length encoding you may find this module useful.
+ +%package -n python2-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +Bitarrays are sequence types and behave very much like usual lists. +Eight bits are represented by one byte in contiguous block of memory. +The user can select between two representations; little-endian and big-endian. +Most of the functionality is implemented in C.Methods for accessing the machine +representation are provided. This can be useful when bit level access to binary +files is required, such as portable bitmap image files (.pbm). Also, when +dealing with compressed data which uses variable bit length encoding +you may find this module useful. +This is Python 2 version. + + +%package -n python3-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +Bitarrays are sequence types and behave very much like usual lists. +Eight bits are represented by one byte in contiguous block of memory. +The user can select between two representations; little-endian and big-endian. +Most of the functionality is implemented in C.Methods for accessing the machine +representation are provided. This can be useful when bit level access to binary +files is required, such as portable bitmap image files (.pbm). Also, when +dealing with compressed data which uses variable bit length encoding +you may find this module useful. +This is Python 3 version. + + %prep -%setup -q -n bitarray-%{version} +%setup -q -n %{srcname}-%{version}
%build -CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build +%py2_build +%py3_build
%install -rm -rf $RPM_BUILD_ROOT -%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%py2_install +%py3_install
-%clean -rm -rf $RPM_BUILD_ROOT - +%files -n python2-%{srcname} +%license LICENSE +%{python2_sitearch}/*
-%files -%defattr(-,root,root,-) -%doc LICENSE
-%{python_sitearch}/* +%files -n python3-%{srcname} +%license LICENSE +%{python3_sitearch}/*
- %changelog +* Thu Jun 30 2016 Sérgio Basto sergio@serjux.com - 0.8.1-1 +- Clean up the spec + +* Thu Jun 09 2016 Dominika Krejci dkrejci@redhat.com +- Add Python 3 +- Upgrade to version 0.8.1 + * Thu Feb 04 2016 Fedora Release Engineering releng@fedoraproject.org - 0.3.5-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
@@ -85,5 +130,3 @@ rm -rf $RPM_BUILD_ROOT * Wed Apr 08 2009 Ramakrishna Reddy Yekulla ramkrsna@fedoraproject.org 0.3.5-1 - Initial RPM release
- - diff --git a/sources b/sources index d8e38b0..3972092 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -322a25e04e7aece5e028e5b068329291 bitarray-0.3.5.tar.gz +3825184f54f4d93508a28031b4c65d3b bitarray-0.8.1.tar.gz
scm-commits@lists.fedoraproject.org