|
|
@ -1,6 +1,13 @@
|
|
|
|
|
|
|
|
#Drop python2 on Fedora 30+ and RHEL 8+
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 30 || 0%{?rhel} >= 8
|
|
|
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: pyscard
|
|
|
|
Name: pyscard
|
|
|
|
Version: 1.9.5
|
|
|
|
Version: 1.9.7
|
|
|
|
Release: 10%{?dist}
|
|
|
|
Release: 1%{?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
|
|
|
@ -14,8 +21,6 @@ URL: https://sourceforge.net/projects/pyscard/
|
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
|
|
|
BuildRequires: pcsc-lite-devel
|
|
|
|
BuildRequires: pcsc-lite-devel
|
|
|
|
BuildRequires: swig >= 1.3.31
|
|
|
|
BuildRequires: swig >= 1.3.31
|
|
|
|
|
|
|
|
|
|
|
@ -28,8 +33,10 @@ This is the python2 package.
|
|
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%package -n python2-%{name}
|
|
|
|
%package -n python2-%{name}
|
|
|
|
Summary: %summary
|
|
|
|
Summary: %summary
|
|
|
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
Requires: pcsc-lite
|
|
|
|
Requires: pcsc-lite
|
|
|
|
%{?python_provide:%python_provide python2-%{name}}
|
|
|
|
%{?python_provide:%python_provide python2-%{name}}
|
|
|
|
# Remove before F30
|
|
|
|
# Remove before F30
|
|
|
@ -38,10 +45,13 @@ Provides: pyscard%{?_isa} = %{version}-%{release}
|
|
|
|
Obsoletes: pyscard < %{version}-%{release}
|
|
|
|
Obsoletes: pyscard < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python2-%{name} %_description
|
|
|
|
%description -n python2-%{name} %_description
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-%{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
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
Requires: pcsc-lite
|
|
|
|
Requires: pcsc-lite
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-%{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
|
|
|
@ -50,38 +60,76 @@ Python wrapper module.
|
|
|
|
|
|
|
|
|
|
|
|
This is the python3 package.
|
|
|
|
This is the python3 package.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?python3_other_pkgversion}
|
|
|
|
|
|
|
|
%package -n python%{python3_other_pkgversion}-%{name}
|
|
|
|
|
|
|
|
Summary: A framework for building smart card aware applications in Python
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_other_pkgversion}-devel
|
|
|
|
|
|
|
|
Requires: pcsc-lite
|
|
|
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{name}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_other_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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is the python3 package.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
# license file is CRLF terminated -- prevent a rpmlint warning
|
|
|
|
# license file is CRLF terminated -- prevent a rpmlint warning
|
|
|
|
#sed -i 's/\r//' LICENSE
|
|
|
|
#sed -i 's/\r//' LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%py2_build
|
|
|
|
%py2_build
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%py3_build
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
%if 0%{?python3_other_pkgversion}
|
|
|
|
|
|
|
|
%py3_other_build
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%py2_install
|
|
|
|
%py2_install
|
|
|
|
chmod 755 %{buildroot}%{python2_sitearch}/smartcard/scard/*.so
|
|
|
|
chmod 755 %{buildroot}%{python2_sitearch}/smartcard/scard/*.so
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%py3_install
|
|
|
|
%py3_install
|
|
|
|
chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so
|
|
|
|
chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so
|
|
|
|
|
|
|
|
%if 0%{?python3_other_pkgversion}
|
|
|
|
|
|
|
|
%py3_other_install
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with python2}
|
|
|
|
%files -n python2-%{name}
|
|
|
|
%files -n python2-%{name}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README
|
|
|
|
%doc ACKS README.md
|
|
|
|
%doc smartcard/doc/*
|
|
|
|
%doc smartcard/doc/*
|
|
|
|
%{python2_sitearch}/smartcard/
|
|
|
|
%{python2_sitearch}/smartcard/
|
|
|
|
%{python2_sitearch}/%{name}-%{version}-py*.egg-info
|
|
|
|
%{python2_sitearch}/%{name}-%{version}-py*.egg-info
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{name}
|
|
|
|
%files -n python%{python3_pkgversion}-%{name}
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%doc README
|
|
|
|
%doc ACKS README.md
|
|
|
|
%doc smartcard/doc/*
|
|
|
|
%doc smartcard/doc/*
|
|
|
|
%{python3_sitearch}/smartcard/
|
|
|
|
%{python3_sitearch}/smartcard/
|
|
|
|
%{python3_sitearch}/%{name}-%{version}-py*.egg-info
|
|
|
|
%{python3_sitearch}/%{name}-%{version}-py*.egg-info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?python3_other_pkgversion}
|
|
|
|
|
|
|
|
%files -n python%{python3_other_pkgversion}-%{name}
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%doc ACKS README.md
|
|
|
|
|
|
|
|
%doc smartcard/doc/*
|
|
|
|
|
|
|
|
%{python3_other_sitearch}/smartcard/
|
|
|
|
|
|
|
|
%{python3_other_sitearch}/%{name}-%{version}-py*.egg-info
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Nov 16 2018 Orion Poplawski <orion@nwra.com> - 1.9.5-10
|
|
|
|
* Fri Nov 16 2018 Orion Poplawski <orion@nwra.com> - 1.9.7-1
|
|
|
|
- Support python3 on EPEL
|
|
|
|
- Update to 1.9.7
|
|
|
|
|
|
|
|
- Drop python2 on Fedora 30+, RHEL 8+ (BZ# 1634871)
|
|
|
|
|
|
|
|
- Support python3 on EPEL (BZ# 1540752)
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|