File python-pyscard.spec of Package python-pyscard

#
# 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
# 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 http://bugs.opensuse.org/
#


%define modname pyscard
Name:           python-pyscard
Version:        1.9.0
Release:        0
Summary:        Python module adding smart card support
License:        LGPL-2.0+
Group:          Development/Languages/Python
Url:            http://pyscard.sourceforge.net/
Source:         %{modname}-%{version}.tar.gz
BuildRequires:  dos2unix
BuildRequires:  fdupes
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.

%prep
%setup -q -n %{modname}-%{version}
mv smartcard/doc .
dos2unix LICENSE

%build
export CFLAGS="%{optflags}"
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record=INSTALLED_FILES
%fdupes %{buildroot}

%files
%defattr(-,root,root,-)
%doc ACKS ChangeLog doc LICENSE PKG-INFO README TODO
%{python_sitearch}/*

%changelog
openSUSE Build Service is sponsored by