|
|
acbbea3 |
%global srcname bitarray
|
|
|
acbbea3 |
%global sum Efficient Array of Booleans --C Extensions
|
|
|
1f2f4a7 |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
1f2f4a7 |
|
|
|
244e9d8 |
# Python3 not available in el6
|
|
|
244e9d8 |
%if 0%{?rhel} > 1 && 0%{?rhel} < 7
|
|
|
244e9d8 |
%bcond_with py3
|
|
|
244e9d8 |
%else
|
|
|
244e9d8 |
%bcond_without py3
|
|
|
244e9d8 |
%endif
|
|
|
244e9d8 |
|
|
|
9bf1158 |
|
|
|
9bf1158 |
Name: python-%{srcname}
|
|
|
9bf1158 |
Version: 0.8.1
|
|
|
244e9d8 |
Release: 4%{?dist}
|
|
|
acbbea3 |
Summary: %{sum}
|
|
|
1f2f4a7 |
|
|
|
1f2f4a7 |
Group: Development/Languages
|
|
|
1f2f4a7 |
License: Python
|
|
|
acbbea3 |
URL: http://pypi.python.org/pypi/%{srcname}/
|
|
|
acbbea3 |
Source0: http://pypi.python.org/packages/source/b/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
acbbea3 |
|
|
|
acbbea3 |
BuildRequires: python2-devel
|
|
|
244e9d8 |
%if 0%{?rhel}
|
|
|
244e9d8 |
BuildRequires: python-setuptools
|
|
|
244e9d8 |
%else
|
|
|
acbbea3 |
BuildRequires: python2-setuptools
|
|
|
244e9d8 |
%endif
|
|
|
acbbea3 |
|
|
|
244e9d8 |
%if %{with py3}
|
|
|
244e9d8 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
244e9d8 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
244e9d8 |
%endif
|
|
|
1f2f4a7 |
|
|
|
1f2f4a7 |
%description
|
|
|
1f2f4a7 |
Bitarrays are sequence types and behave very much like usual lists.
|
|
|
1f2f4a7 |
Eight bits are represented by one byte in contiguous block of memory.
|
|
|
1f2f4a7 |
The user can select between two representations; little-endian and big-endian.
|
|
|
1f2f4a7 |
Most of the functionality is implemented in C.Methods for accessing the machine
|
|
|
1f2f4a7 |
representation are provided. This can be useful when bit level access to binary
|
|
|
9bf1158 |
files is required, such as portable bitmap image files (.pbm). Also, when
|
|
|
1f2f4a7 |
dealing with compressed data which uses variable bit length encoding
|
|
|
1f2f4a7 |
you may find this module useful.
|
|
|
1f2f4a7 |
|
|
|
acbbea3 |
|
|
|
acbbea3 |
%package -n python2-%{srcname}
|
|
|
acbbea3 |
Summary: %{sum}
|
|
|
663bc4e |
Provides: python-%{srcname} = %{version}-%{release}
|
|
|
663bc4e |
Obsoletes: python-%{srcname} < %{version}-%{release}
|
|
|
acbbea3 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
acbbea3 |
|
|
|
acbbea3 |
%description -n python2-%{srcname}
|
|
|
acbbea3 |
Bitarrays are sequence types and behave very much like usual lists.
|
|
|
acbbea3 |
Eight bits are represented by one byte in contiguous block of memory.
|
|
|
acbbea3 |
The user can select between two representations; little-endian and big-endian.
|
|
|
acbbea3 |
Most of the functionality is implemented in C.Methods for accessing the machine
|
|
|
acbbea3 |
representation are provided. This can be useful when bit level access to binary
|
|
|
9bf1158 |
files is required, such as portable bitmap image files (.pbm). Also, when
|
|
|
acbbea3 |
dealing with compressed data which uses variable bit length encoding
|
|
|
acbbea3 |
you may find this module useful.
|
|
|
acbbea3 |
This is Python 2 version.
|
|
|
acbbea3 |
|
|
|
acbbea3 |
|
|
|
244e9d8 |
%if %{with py3}
|
|
|
244e9d8 |
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
acbbea3 |
Summary: %{sum}
|
|
|
244e9d8 |
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
acbbea3 |
|
|
|
244e9d8 |
%description -n python%{python3_pkgversion}-%{srcname}
|
|
|
acbbea3 |
Bitarrays are sequence types and behave very much like usual lists.
|
|
|
acbbea3 |
Eight bits are represented by one byte in contiguous block of memory.
|
|
|
acbbea3 |
The user can select between two representations; little-endian and big-endian.
|
|
|
acbbea3 |
Most of the functionality is implemented in C.Methods for accessing the machine
|
|
|
acbbea3 |
representation are provided. This can be useful when bit level access to binary
|
|
|
9bf1158 |
files is required, such as portable bitmap image files (.pbm). Also, when
|
|
|
acbbea3 |
dealing with compressed data which uses variable bit length encoding
|
|
|
acbbea3 |
you may find this module useful.
|
|
|
acbbea3 |
This is Python 3 version.
|
|
|
244e9d8 |
%endif
|
|
|
acbbea3 |
|
|
|
acbbea3 |
|
|
|
1f2f4a7 |
%prep
|
|
|
acbbea3 |
%setup -q -n %{srcname}-%{version}
|
|
|
1f2f4a7 |
|
|
|
1f2f4a7 |
%build
|
|
|
acbbea3 |
%py2_build
|
|
|
244e9d8 |
%if %{with py3}
|
|
|
acbbea3 |
%py3_build
|
|
|
244e9d8 |
%endif
|
|
|
1f2f4a7 |
|
|
|
1f2f4a7 |
|
|
|
1f2f4a7 |
%install
|
|
|
acbbea3 |
%py2_install
|
|
|
244e9d8 |
%if %{with py3}
|
|
|
acbbea3 |
%py3_install
|
|
|
244e9d8 |
%endif
|
|
|
1f2f4a7 |
|
|
|
9bf1158 |
|
|
|
acbbea3 |
%files -n python2-%{srcname}
|
|
|
9bf1158 |
%license LICENSE
|
|
|
acbbea3 |
%{python2_sitearch}/*
|
|
|
1f2f4a7 |
|
|
|
1f2f4a7 |
|
|
|
244e9d8 |
%if %{with py3}
|
|
|
244e9d8 |
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
9bf1158 |
%license LICENSE
|
|
|
acbbea3 |
%{python3_sitearch}/*
|
|
|
244e9d8 |
%endif
|
|
|
9bf1158 |
|
|
|
1f2f4a7 |
|
|
|
1f2f4a7 |
%changelog
|
|
|
244e9d8 |
* Tue Oct 04 2016 Sérgio Basto <sergio@serjux.com> - 0.8.1-4
|
|
|
244e9d8 |
- Clean trailing whitespaces
|
|
|
244e9d8 |
- Add support to epel 7 and 6, disable python3 in el6
|
|
|
244e9d8 |
|
|
|
f8cc701 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-3
|
|
|
f8cc701 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
f8cc701 |
|
|
|
663bc4e |
* Sun Jul 03 2016 Sérgio Basto <sergio@serjux.com> - 0.8.1-2
|
|
|
663bc4e |
- Replace python-bitarray with python2-bitarray
|
|
|
663bc4e |
https://fedoraproject.org/wiki/Packaging:Guidelines#Renaming.2FReplacing_Existing_Packages
|
|
|
663bc4e |
|
|
|
acbbea3 |
* Thu Jun 30 2016 Sérgio Basto <sergio@serjux.com> - 0.8.1-1
|
|
|
acbbea3 |
- Clean up the spec
|
|
|
acbbea3 |
|
|
|
acbbea3 |
* Thu Jun 09 2016 Dominika Krejci <dkrejci@redhat.com>
|
|
|
acbbea3 |
- Add Python 3
|
|
|
acbbea3 |
- Upgrade to version 0.8.1
|
|
|
acbbea3 |
|
|
|
e5bc0e3 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-12
|
|
|
e5bc0e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
e5bc0e3 |
|
|
|
4f7d0d6 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-11
|
|
|
4f7d0d6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
4f7d0d6 |
|
|
|
d7294fd |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-10
|
|
|
d7294fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
d7294fd |
|
|
|
20f974d |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-9
|
|
|
20f974d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
20f974d |
|
|
|
e43cd55 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-8
|
|
|
e43cd55 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
e43cd55 |
|
|
|
89f6158 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-7
|
|
|
89f6158 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
89f6158 |
|
|
|
101d255 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-6
|
|
|
101d255 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
101d255 |
|
|
|
92dfb73 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-5
|
|
|
92dfb73 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
92dfb73 |
|
|
|
bfaccc6 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-4
|
|
|
bfaccc6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
bfaccc6 |
|
|
|
f81567d |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.5-3
|
|
|
f81567d |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
f81567d |
|
|
|
840967d |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-2
|
|
|
840967d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
840967d |
|
|
|
1f2f4a7 |
* Wed Apr 08 2009 Ramakrishna Reddy Yekulla <ramkrsna@fedoraproject.org> 0.3.5-1
|
|
|
1f2f4a7 |
- Initial RPM release
|
|
|
1f2f4a7 |
|