2011-08-17 19:11:44 +02:00
|
|
|
#
|
|
|
|
# spec file for package perl-pcsc (Version 1.4.10)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-pcsc
|
|
|
|
%define cpan_name pcsc-perl
|
|
|
|
Summary: Perl interface to Smart Card Reader
|
|
|
|
Version: 1.4.10
|
|
|
|
Release: 0
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/pcsc-perl/
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
2011-08-17 19:40:50 +02:00
|
|
|
# PATCH-FIX-OPENSUSE pcsc-perl-noSCardSetTimeout.patch sbrabec@suse.cz -- Fix for the latest pcsc-lite.
|
|
|
|
Patch: pcsc-perl-noSCardSetTimeout.patch
|
2011-08-17 19:11:44 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{perl_requires}
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: pcsc-lite-devel pkg-config
|
2011-08-17 19:26:53 +02:00
|
|
|
Requires: libpcsclite1
|
2011-08-17 19:11:44 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
PC/SC represents an abstraction layer to smart card readers. It
|
|
|
|
provides a communication layer with a wide variety of smart card
|
|
|
|
readers through a standardized API.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2011-08-17 19:40:50 +02:00
|
|
|
%patch -p1
|
2011-08-17 19:11:44 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
# No daemon and no card in the sysroot => no test.
|
|
|
|
#%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changelog LICENCE README
|
|
|
|
|
|
|
|
%changelog
|