public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pyscard] epel10: New subpackage for python3 build
@ 2026-08-21  2:56 Seth Jennings
  0 siblings, 0 replies; only message in thread
From: Seth Jennings @ 2026-08-21  2:56 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/pyscard
Branch : epel10
Commit : 38f79ca2fe09ccc7f56e486c258db6df0b863977
Author : Seth Jennings <spartacus06@gmail.com>
Date   : 2015-09-01T10:30:00-05:00
Stats  : +34/-7 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/pyscard/c/38f79ca2fe09ccc7f56e486c258db6df0b863977?branch=epel10

Log:
New subpackage for python3 build

---
diff --git a/pyscard.spec b/pyscard.spec
index 862d1ec..c28cb9f 100644
--- a/pyscard.spec
+++ b/pyscard.spec
@@ -1,6 +1,6 @@
 Name:           pyscard
 Version:        1.9.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A framework for building smart card aware applications in Python
 
 Group:          Development/Libraries
@@ -13,36 +13,63 @@ License:        LGPLv2+ and Python and CC-BY-SA
 URL:            https://sourceforge.net/projects/pyscard/
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 
+BuildRequires:  python2-devel
 BuildRequires:  python3-devel
 BuildRequires:  pcsc-lite-devel
 BuildRequires:  swig >= 1.3.31
 Requires:       pcsc-lite
 
 %description
-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 
+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.
 
+This is the python2 package.
+
+%package -n python3-%{name}
+Summary:        A framework for building smart card aware applications in Python
+Requires:       pcsc-lite
+
+%description -n python3-%{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.
+
+This is the python3 package.
+
 %prep
 %setup -q
 # license file is CRLF terminated -- prevent a rpmlint warning
 sed -i 's/\r//' LICENSE
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
+%{__python2} setup.py build
+%{__python3} setup.py build
 
 %install
-%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
-chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/_scard.*.so
+%{__python2} setup.py install --root %{buildroot}
+chmod 755 %{buildroot}%{python2_sitearch}/smartcard/scard/*.so
+%{__python3} setup.py install --root %{buildroot}
+chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so
 
 %files
 %license LICENSE
 %doc README
 %doc smartcard/doc/*
+%{python2_sitearch}/smartcard/
+%{python2_sitearch}/%{name}-%{version}-py*.egg-info
+
+%files -n python3-%{name}
+%license LICENSE
+%doc README
+%doc smartcard/doc/*
 %{python3_sitearch}/smartcard/
-%{python3_sitearch}/%{name}-%{version}-py*.egg-info 
+%{python3_sitearch}/%{name}-%{version}-py*.egg-info
 
 %changelog
+* Mon Aug 31 2015 Seth Jennings <spartacus06@gmail.com> 1.9.0-2
+- New subpackage for python3 build
+
 * Fri Aug 14 2015 Nikos Mavrogiannopoulos <nmav@redhat.com> 1.9.0-1
 - New upstream release
 - Built with python3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-21  2:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-21  2:56 [rpms/pyscard] epel10: New subpackage for python3 build Seth Jennings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox