public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-bitarray] epel10: Add support to epel 7 and 6,disable python3 in el6
Date: Sun, 09 Aug 2026 01:30:14 GMT [thread overview]
Message-ID: <178623901499.1.5111805467906856700.rpms-python-bitarray-244e9d81ca31@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-bitarray
Branch : epel10
Commit : 244e9d81ca31ad0bc08572b94e1638e7b46d4e7b
Author : Sérgio M. Basto <sergio@serjux.com>
Date : 2016-10-04T03:55:56+01:00
Stats : +32/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-bitarray/c/244e9d81ca31ad0bc08572b94e1638e7b46d4e7b?branch=epel10
Log:
Add support to epel 7 and 6,disable python3 in el6
---
diff --git a/python-bitarray.spec b/python-bitarray.spec
index 6404d9d..92e9c26 100644
--- a/python-bitarray.spec
+++ b/python-bitarray.spec
@@ -2,10 +2,17 @@
%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)")}
+# Python3 not available in el6
+%if 0%{?rhel} > 1 && 0%{?rhel} < 7
+ %bcond_with py3
+%else
+ %bcond_without py3
+%endif
+
Name: python-%{srcname}
Version: 0.8.1
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: %{sum}
Group: Development/Languages
@@ -14,10 +21,16 @@ URL: http://pypi.python.org/pypi/%{srcname}/
Source0: http://pypi.python.org/packages/source/b/%{srcname}/%{srcname}-%{version}.tar.gz
BuildRequires: python2-devel
+%if 0%{?rhel}
+BuildRequires: python-setuptools
+%else
BuildRequires: python2-setuptools
+%endif
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
+%if %{with py3}
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-setuptools
+%endif
%description
Bitarrays are sequence types and behave very much like usual lists.
@@ -48,11 +61,12 @@ you may find this module useful.
This is Python 2 version.
-%package -n python3-%{srcname}
+%if %{with py3}
+%package -n python%{python3_pkgversion}-%{srcname}
Summary: %{sum}
-%{?python_provide:%python_provide python3-%{srcname}}
+%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
-%description -n python3-%{srcname}
+%description -n python%{python3_pkgversion}-%{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.
@@ -62,20 +76,24 @@ 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.
+%endif
%prep
%setup -q -n %{srcname}-%{version}
-
%build
%py2_build
+%if %{with py3}
%py3_build
+%endif
%install
%py2_install
+%if %{with py3}
%py3_install
+%endif
%files -n python2-%{srcname}
@@ -83,12 +101,18 @@ This is Python 3 version.
%{python2_sitearch}/*
-%files -n python3-%{srcname}
+%if %{with py3}
+%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE
%{python3_sitearch}/*
+%endif
%changelog
+* Tue Oct 04 2016 Sérgio Basto <sergio@serjux.com> - 0.8.1-4
+- Clean trailing whitespaces
+- Add support to epel 7 and 6, disable python3 in el6
+
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
reply other threads:[~2026-08-09 1:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178623901499.1.5111805467906856700.rpms-python-bitarray-244e9d81ca31@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox