1
0
Dominique Leuenberger 2015-11-11 09:31:54 +00:00 committed by Git OBS Bridge
commit cd9960d832
6 changed files with 61 additions and 17 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4cec162dda45851741a3b58c492797cc051ef59192ca35a3bdd125fc2ebd6210
size 410065

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:457407e462d8d11c80788641516d65b92cc327b120b4e5bbf43f0d0679db1c39
size 488212

Binary file not shown.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Fri Nov 6 21:05:07 UTC 2015 - t.gruner@katodev.de
- Version 1.1.0 (released 2015-11-06)
- Add support for new YubiKey 4.
- Add ykcs11.
-------------------------------------------------------------------
Tue Oct 13 07:47:50 UTC 2015 - t.gruner@katodev.de
- Add dependencive in .spec file
-------------------------------------------------------------------
Thu Oct 1 21:18:34 UTC 2015 - t.gruner@katodev.de

View File

@ -17,9 +17,8 @@
%define soname 1
Name: yubico-piv-tool
Version: 1.0.3
Version: 1.1.0
Release: 0
Summary: Yubico YubiKey NEO CCID Manager
License: BSD-2-Clause
@ -27,12 +26,13 @@ Group: Productivity/Networking/Security
Url: https://developers.yubico.com/
Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz
Source1: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz.sig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libtool
BuildRequires: pcsc-lite-devel
BuildRequires: pkg-config
BuildRequires: pkgconfig(openssl)
Requires: libykcs11-%{soname} = %{version}
Requires: libykpiv%{soname} = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a command line tool to interact with the PIV applet on a YubiKey NEO.
@ -42,10 +42,19 @@ and certificates and creating certificate requests.
%package -n libykpiv%{soname}
Summary: Yubikey NEO PIV applet library
Group: Productivity/Networking/Security
Requires: pcsc-ccid
%description -n libykpiv%{soname}
This is a low-level library to interact the PIV applet on a YubiKey NEO
%package -n libykcs11-%{soname}
Summary: Yubikey NEO PKCS#11 applet library
Group: Productivity/Networking/Security
Requires: pcsc-ccid
%description -n libykcs11-%{soname}
This is a PKCS#11 module that allows to communicate with the PIV application running on a YubiKey
%package -n libykpiv-devel
Summary: Development files for Yubikey NEO PIV applet library
Group: Development/Libraries/C and C++
@ -55,23 +64,34 @@ Requires: libykpiv%{soname} = %{version}
This package contains the header file needed to develop applications that use
Yubikey NEO PIV applet library.
%package -n libykcs11-devel
Summary: Development files for Yubikey NEO PKCS#11 applet library
Group: Development/Libraries/C and C++
Requires: libykcs11-%{soname} = %{version}
%description -n libykcs11-devel
This package contains the header file needed to develop applications that use
Yubikey NEO PKCS#11 applet library.
%prep
%setup -q
%build
%configure --enable-static=no --with-backend=pcsc
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{__make} %{?_smp_mflags}
make %{?_smp_mflags}
%install
%{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
%{__rm} -rf %{buildroot}/%{_libdir}/*.la
make install DESTDIR=%{buildroot} INSTALL="install -p"
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libykpiv%{soname} -p /sbin/ldconfig
%postun -n libykpiv%{soname} -p /sbin/ldconfig
%post -n libykcs11-%{soname} -p /sbin/ldconfig
%postun -n libykcs11-%{soname} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING NEWS ChangeLog README
@ -81,7 +101,12 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%files -n libykpiv%{soname}
%defattr(-,root,root)
%{_libdir}/libykpiv.so.%{soname}
%{_libdir}/libykpiv.so.%{soname}.0.8
%{_libdir}/libykpiv.so.%{soname}.1.0
%files -n libykcs11-%{soname}
%defattr(-,root,root)
%{_libdir}/libykcs11.so.%{soname}
%{_libdir}/libykcs11.so.%{soname}.1.0
%files -n libykpiv-devel
%defattr(-,root,root)
@ -90,4 +115,11 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{_libdir}/libykpiv.so
%{_libdir}/pkgconfig/ykpiv.pc
%files -n libykcs11-devel
%defattr(-,root,root)
%dir %{_includedir}/ykcs11/
%{_includedir}/ykcs11/*
%{_libdir}/libykcs11.so
%{_libdir}/pkgconfig/ykcs11.pc
%changelog