From edbc91d921f96cd99fdfe4f34d0394d16cc88195 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 14 Aug 2015 10:19:24 +0200 Subject: [PATCH] updated to 1.9.0 and switched to python3 --- .gitignore | 2 ++ pyscard.spec | 24 ++++++++++++++---------- sources | 2 +- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index cb3c80f..d5e89ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /pyscard-1.6.16.tar.gz +/pyscard-1.7.0.tar.gz +/pyscard-1.9.0.tar.gz diff --git a/pyscard.spec b/pyscard.spec index 8042074..862d1ec 100644 --- a/pyscard.spec +++ b/pyscard.spec @@ -1,6 +1,6 @@ Name: pyscard -Version: 1.6.16 -Release: 4%{?dist} +Version: 1.9.0 +Release: 1%{?dist} Summary: A framework for building smart card aware applications in Python Group: Development/Libraries @@ -10,10 +10,10 @@ Group: Development/Libraries # http://sourceforge.net/p/pyscard/code/619/ License: LGPLv2+ and Python and CC-BY-SA -URL: http://ludovicrousseau.blogspot.cz/2014/07/pyscard-unofficial-version-1616.html -Source0: http://ludovic.rousseau.free.fr/softwares/pcsc-lite/%{name}-%{version}.tar.gz +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 @@ -29,20 +29,24 @@ Python wrapper module. sed -i 's/\r//' LICENSE %build -CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build +CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build %install -%{__python} setup.py install -O1 --skip-build --root %{buildroot} -chmod 755 %{buildroot}%{python_sitearch}/smartcard/scard/_scard.so +%{__python3} setup.py install -O1 --skip-build --root %{buildroot} +chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/_scard.*.so %files %license LICENSE %doc README %doc smartcard/doc/* -%{python_sitearch}/smartcard/ -%{python_sitearch}/%{name}-%{version}-py*.egg-info +%{python3_sitearch}/smartcard/ +%{python3_sitearch}/%{name}-%{version}-py*.egg-info %changelog +* Fri Aug 14 2015 Nikos Mavrogiannopoulos 1.9.0-1 +- New upstream release +- Built with python3 + * Thu Jun 18 2015 Fedora Release Engineering - 1.6.16-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index 63f9a07..ce97d93 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d472530735f24e23e7278e2e6c4f87e4 pyscard-1.6.16.tar.gz +9ffd8637cf125981e4b2b443009855fe pyscard-1.9.0.tar.gz