Support python3 on EPEL

epel9
Orion Poplawski 7 years ago
parent bb7085a1ed
commit b81a8931cf

@ -1,6 +1,6 @@
Name: pyscard Name: pyscard
Version: 1.9.5 Version: 1.9.5
Release: 9%{?dist} Release: 10%{?dist}
Summary: A framework for building smart card aware applications in Python Summary: A framework for building smart card aware applications in Python
Group: Development/Libraries Group: Development/Libraries
@ -15,7 +15,7 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.
BuildRequires: gcc BuildRequires: gcc
BuildRequires: python2-devel BuildRequires: python2-devel
BuildRequires: python3-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: pcsc-lite-devel BuildRequires: pcsc-lite-devel
BuildRequires: swig >= 1.3.31 BuildRequires: swig >= 1.3.31
@ -39,11 +39,11 @@ Obsoletes: pyscard < %{version}-%{release}
%description -n python2-%{name} %_description %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 Summary: A framework for building smart card aware applications in Python
Requires: pcsc-lite 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 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 applications in Python. The smartcard module is built on top of the PCSC API
Python wrapper module. Python wrapper module.
@ -56,13 +56,13 @@ This is the python3 package.
#sed -i 's/\r//' LICENSE #sed -i 's/\r//' LICENSE
%build %build
%{__python2} setup.py build %py2_build
%{__python3} setup.py build %py3_build
%install %install
%{__python2} setup.py install --root %{buildroot} %py2_install
chmod 755 %{buildroot}%{python2_sitearch}/smartcard/scard/*.so chmod 755 %{buildroot}%{python2_sitearch}/smartcard/scard/*.so
%{__python3} setup.py install --root %{buildroot} %py3_install
chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so
%files -n python2-%{name} %files -n python2-%{name}
@ -72,7 +72,7 @@ chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so
%{python2_sitearch}/smartcard/ %{python2_sitearch}/smartcard/
%{python2_sitearch}/%{name}-%{version}-py*.egg-info %{python2_sitearch}/%{name}-%{version}-py*.egg-info
%files -n python3-%{name} %files -n python%{python3_pkgversion}-%{name}
%license LICENSE %license LICENSE
%doc README %doc README
%doc smartcard/doc/* %doc smartcard/doc/*
@ -80,6 +80,9 @@ chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so
%{python3_sitearch}/%{name}-%{version}-py*.egg-info %{python3_sitearch}/%{name}-%{version}-py*.egg-info
%changelog %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 * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save