You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pyscard/pyscard.spec

118 lines
3.9 KiB

Name: pyscard
Version: 1.9.5
Release: 2%{?dist}
Summary: A framework for building smart card aware applications in Python
Group: Development/Libraries
# The entire source code is LGPLv2+ except for ClassLoader.py (Python),
# and Synchronization.py, Observer.py (CC-BY-SA 3.0), according to
# http://sourceforge.net/p/pyscard/code/619/
License: LGPLv2+
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
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
%{__python2} setup.py build
%{__python3} setup.py build
%install
%{__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
%changelog
* Fri Mar 31 2017 Seth Jennings <sethdjennings@gmail.com> - 1.9.5-2
- upstream release 1.9.5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-6
- Rebuild for Python 3.6
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-3
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
* 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
* 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
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.16-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Fri Aug 08 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> 1.6.16-2
- Clarified licenses.
* Fri Aug 01 2014 Nikos Mavrogiannopoulos <nmav@redhat.com> 1.6.16-1
- New (unofficial) release.
* Fri Jan 21 2011 Andrew Elwell <andrew.elwell@gmail.com> 1.6.12-4
- Rebuilt to address comments in package review (bug #663102)
* Fri Jan 14 2011 Andrew Elwell <andrew.elwell@gmail.com> 1.6.12-3
- Added missing BuildRequres on swig.
* Thu Dec 16 2010 Andrew Elwell <andrew.elwell@gmail.com> 1.6.12-2
- Corrected CFLAGS in build.
* Tue Dec 14 2010 Andrew Elwell <andrew.elwell@gmail.com> 1.6.12-1
- Initial package of 1.6.12 from upstream.