1
0

Accepting request 346703 from security

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/346703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyscard?expand=0&rev=2
This commit is contained in:
2015-12-03 12:31:07 +00:00
committed by Git OBS Bridge
4 changed files with 47 additions and 43 deletions
+22
View File
@@ -1,3 +1,25 @@
-------------------------------------------------------------------
Fri Oct 16 07:38:21 UTC 2015 - t.gruner@katodev.de
- Version 1.9.0 (August 2015)
- add Python3 support (Python2 is still supported)
- fix a lot of pylint warnings
- smartcard/test/* replace deprecated assert calls
- add tox support and coverage reports, run test suite on Travis
- add Travis CI support to automatically build on Unix
- add AppVeyor support to automatically build on Windows
- minor bugs fixed
- Big thank you to Alex Willmer for his work on pyscard
- Version 1.7.0 (June 2015)
- PCSCCardConnection: Fix a problem with mode=SCARD_SHARE_DIRECT
- add support of cygwin as a build platform
- Fix a problem with Windows Remote Desktop
- Switch from distutils to setuptools
- dropped support for Python 2.5 and earlier (Alex Willmer)
- dropped support for OS X 10.5 (Leopard) and earlier (Alex Willmer)
- minor bugs fixed
-------------------------------------------------------------------
Thu Jul 16 13:54:00 UTC 2015 - t.gruner@katodev.de
+22 -40
View File
@@ -1,6 +1,7 @@
#
# spec file for package python-pyscard
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -15,67 +16,48 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define modname pyscard
Name: python-pyscard
Version: 1.6.16
Release: 0.svn529.2.1
Version: 1.9.0
Release: 0
Summary: Python module adding smart card support
URL: http://pyscard.sourceforge.net/
License: LGPL-2.1+
License: LGPL-2.0+
Group: Development/Languages/Python
Source: %{modname}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-buildroot
BuildRequires: pcsc-lite-devel
BuildRequires: python-devel
BuildRequires: swig
BuildRequires: recode
Url: http://pyscard.sourceforge.net/
Source: %{modname}-%{version}.tar.gz
BuildRequires: dos2unix
BuildRequires: fdupes
Requires: python-wxGTK
%if 0%{?suse_version}
%py_requires
%endif
BuildRequires: pcsc-lite-devel
BuildRequires: pkg-config
BuildRequires: python-setuptools
BuildRequires: swig
BuildRequires: pkgconfig(python) >= 2.7
Requires: pcsc-ccid
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
This package is build from rev 529 of the svn repo at:
https://pyscard.svn.sourceforge.net/svnroot/pyscard/trunk
Authors:
--------
Jean-Daniel Aussel <aussel.jean-daniel@gemalto.com>
python framework built on top of the raw PCSC API.
%prep
%setup -q -n %{modname}-%{version}
mv smartcard/{ACKS,ChangeLog,doc,Examples,TODO} .
recode lat1..utf8 ACKS
sed -i 's/\r//g' LICENSE Examples/wx/*/setup.py
mv smartcard/doc .
dos2unix LICENSE
%build
export CFLAGS="%{optflags}"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record=INSTALLED_FILES
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(0644,root,root,0755)
%doc ACKS ChangeLog doc Examples LICENSE PKG-INFO README TODO
%python_sitearch/*
%files
%defattr(-,root,root,-)
%doc ACKS ChangeLog doc LICENSE PKG-INFO README TODO
%{python_sitearch}/*
%changelog
-3
View File
@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ff3f43b822596a23978f6a7bd686885fff090ecc57e494ee9d7d40aac3fcbf7
size 288950
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e0af4350d7a198ee2c1bd21a9e83abcc58bee86bb2d6be59ed7d4c33a81badc5
size 153007