updated to 1.9.0 and switched to python3

epel9
Nikos Mavrogiannopoulos 10 years ago
parent a5216c8ed5
commit edbc91d921

2
.gitignore vendored

@ -1 +1,3 @@
/pyscard-1.6.16.tar.gz
/pyscard-1.7.0.tar.gz
/pyscard-1.9.0.tar.gz

@ -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 <nmav@redhat.com> 1.9.0-1
- New upstream release
- Built with python3
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.16-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

@ -1 +1 @@
d472530735f24e23e7278e2e6c4f87e4 pyscard-1.6.16.tar.gz
9ffd8637cf125981e4b2b443009855fe pyscard-1.9.0.tar.gz

Loading…
Cancel
Save