forked from pool/opensc
This commit is contained in:
parent
6a62578d23
commit
d7e1cbb1ba
11
opensc-0.11.1-sizeof.patch
Normal file
11
opensc-0.11.1-sizeof.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/tools/cryptoflex-tool.c
|
||||
+++ src/tools/cryptoflex-tool.c
|
||||
@@ -501,7 +501,7 @@
|
||||
if (keysize == 0)
|
||||
break;
|
||||
idx += keysize;
|
||||
- for (i = 0; i < sizeof(sizes)/sizeof(int); i++)
|
||||
+ for (i = 0; i < sizeof(sizes)/sizeof(*sizes); i++)
|
||||
if (sizes[i] == keysize)
|
||||
mod_len = mod_lens[i];
|
||||
if (mod_len < 0)
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 27 12:12:30 CET 2007 - mvaner@suse.cz
|
||||
|
||||
- Fixing dodgy use of sizeof (#238660)
|
||||
- sizeof.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 18:49:35 CEST 2006 - sbrabec@suse.cz
|
||||
|
||||
|
13
opensc.spec
13
opensc.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package opensc (Version 0.11.1)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
@ -20,14 +20,15 @@ BuildRequires: openct-devel
|
||||
%endif
|
||||
URL: http://www.opensc-project.org/opensc/
|
||||
Version: 0.11.1
|
||||
Release: 1
|
||||
Release: 32
|
||||
Group: Hardware/Other
|
||||
Summary: OpenSC Smart Card Library
|
||||
License: LGPL
|
||||
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
|
||||
Requires: pcsc-lite
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: opensc-%{version}.tar.bz2
|
||||
Source1: http://www.opensc.org/files/doc/init_perso_guide.html
|
||||
Patch1: %{name}-%{version}-sizeof.patch
|
||||
AutoReqProv: on
|
||||
|
||||
%description
|
||||
@ -68,6 +69,7 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1
|
||||
|
||||
%build
|
||||
rm -f aclocal/libtool.m4
|
||||
@ -121,7 +123,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%_libdir/*.a
|
||||
%_libdir/pkgconfig/*.pc
|
||||
|
||||
%changelog -n opensc
|
||||
%changelog
|
||||
* Tue Feb 27 2007 - mvaner@suse.cz
|
||||
- Fixing dodgy use of sizeof (#238660)
|
||||
- sizeof.patch
|
||||
* Mon Oct 02 2006 - sbrabec@suse.cz
|
||||
- Updated to version 0.11.1:
|
||||
* Update for piv pkcs#15 emulation
|
||||
|
Loading…
Reference in New Issue
Block a user