public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Orion Poplawski <orion@nwra.com>
To: git-commits@fedoraproject.org
Subject: [rpms/pyscard] epel10.2: Support python3 on EPEL
Date: Fri, 21 Aug 2026 02:57:10 GMT [thread overview]
Message-ID: <178728103042.1.9337825322030517745.rpms-pyscard-b81a8931cf7a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pyscard
Branch : epel10.2
Commit : b81a8931cf7acbac61d1f40b2b3a1f0a20681a45
Author : Orion Poplawski <orion@nwra.com>
Date : 2018-11-16T10:55:45-07:00
Stats : +12/-9 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/pyscard/c/b81a8931cf7acbac61d1f40b2b3a1f0a20681a45?branch=epel10.2
Log:
Support python3 on EPEL
---
diff --git a/pyscard.spec b/pyscard.spec
index 3e621ce..7d5c749 100644
--- a/pyscard.spec
+++ b/pyscard.spec
@@ -1,6 +1,6 @@
Name: pyscard
Version: 1.9.5
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: A framework for building smart card aware applications in Python
Group: Development/Libraries
@@ -15,7 +15,7 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.
BuildRequires: gcc
BuildRequires: python2-devel
-BuildRequires: python3-devel
+BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: pcsc-lite-devel
BuildRequires: swig >= 1.3.31
@@ -39,11 +39,11 @@ Obsoletes: pyscard < %{version}-%{release}
%description -n python2-%{name} %_description
-%package -n python3-%{name}
+%package -n python%{python3_pkgversion}-%{name}
Summary: A framework for building smart card aware applications in Python
Requires: pcsc-lite
-%description -n python3-%{name}
+%description -n python%{python3_pkgversion}-%{name}
The pyscard smartcard library is a framework for building smart card aware
applications in Python. The smartcard module is built on top of the PCSC API
Python wrapper module.
@@ -56,13 +56,13 @@ This is the python3 package.
#sed -i 's/\r//' LICENSE
%build
-%{__python2} setup.py build
-%{__python3} setup.py build
+%py2_build
+%py3_build
%install
-%{__python2} setup.py install --root %{buildroot}
+%py2_install
chmod 755 %{buildroot}%{python2_sitearch}/smartcard/scard/*.so
-%{__python3} setup.py install --root %{buildroot}
+%py3_install
chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so
%files -n python2-%{name}
@@ -72,7 +72,7 @@ chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so
%{python2_sitearch}/smartcard/
%{python2_sitearch}/%{name}-%{version}-py*.egg-info
-%files -n python3-%{name}
+%files -n python%{python3_pkgversion}-%{name}
%license LICENSE
%doc README
%doc smartcard/doc/*
@@ -80,6 +80,9 @@ chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so
%{python3_sitearch}/%{name}-%{version}-py*.egg-info
%changelog
+* Fri Nov 16 2018 Orion Poplawski <orion@nwra.com> - 1.9.5-10
+- Support python3 on EPEL
+
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
reply other threads:[~2026-08-21 2:57 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=178728103042.1.9337825322030517745.rpms-pyscard-b81a8931cf7a@fedoraproject.org \
--to=orion@nwra.com \
--cc=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