1555e6c19c
* PCSCCardRequest: - handle KeyboardInterrupt in waitforcard() & waitforcardevent() - use a local PC/SC context to avoid locks * smartcard.util.padd(): do NOT modify the input parameter * CardMonitoring: a timeout exception IS expected * Fix pydoctor documentation * wx: fix module and examples * Remove Python 2 conditional code * Test and improve the synchronization code * Test and update the `Observer.py` code * Remove `ClassLoader.py` * Migrate a `src/` layout * Migrate test/* from unittest to pytest * Add missing GSM 03.38 symbols for decoding * Support only Python 3.9 and higher * Remove the Python 2.x-only Pyro dependency * Migrate CI to use the official Coveralls action * Standardize local and CI testing to use tox * Build wheels in CI for all supported Python versions * Build the docs as a part of the test suite * Begin to add type annotations to the package * Deprecate the `HexListToBinString`, `BinStringToHexList`, `hl2bs`, and `bs2hl` utility functions * Support "64" as an ATR baud rate adjustment integer (ISO 7816-3 2006) OBS-URL: https://build.opensuse.org/package/show/security/python-pyscard?expand=0&rev=39
67 lines
2.0 KiB
RPMSpec
67 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-pyscard
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2011 LISA GmbH, Bingen, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define modname pyscard
|
|
Name: python-pyscard
|
|
Version: 2.2.0
|
|
Release: 0
|
|
Summary: Python module adding smart card support
|
|
License: LGPL-2.0-or-later
|
|
Group: Development/Languages/Python
|
|
URL: https://pyscard.sourceforge.io/
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyscard/pyscard-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: pcsc-lite-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: swig
|
|
Requires: pcsc-ccid
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python-pyscard consists of smartcard.scard, an extension module wrapping
|
|
Windows smart card base components (also known as PCSC) on Windows and PCSC
|
|
lite on linux and Mac OS X Tiger and Leopard, and smartcard, a higher level
|
|
python framework built on top of the raw PCSC API.
|
|
|
|
%prep
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
%pytest_arch
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc ChangeLog README.md
|
|
%{python_sitearch}/pyscard*
|
|
%{python_sitearch}/smartcard
|
|
|
|
%changelog
|