2015-01-31 00:48:35 +01:00
|
|
|
#
|
|
|
|
# spec file for package yubico-piv-tool
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
%define soname 1
|
|
|
|
|
|
|
|
Name: yubico-piv-tool
|
2015-03-29 12:44:25 +02:00
|
|
|
Version: 0.1.6
|
2015-01-31 00:48:35 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Yubico YubiKey NEO CCID Manager
|
|
|
|
License: LGPL-3.0+
|
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
Url: https://developers.yubico.com/
|
|
|
|
Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pcsc-lite-devel
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
|
|
|
Requires: libykpiv%{soname} = %{version}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is a command line tool to interact with the PIV applet on a YubiKey NEO.
|
|
|
|
Among other functions it supports, generating keys on device, importing keys
|
|
|
|
and certificates and creating certificate requests.
|
|
|
|
|
|
|
|
%package -n libykpiv%{soname}
|
|
|
|
Summary: Yubikey NEO PIV applet library
|
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
|
|
|
|
%description -n libykpiv%{soname}
|
|
|
|
This is a low-level library to interact the PIV applet on a YubiKey NEO
|
|
|
|
|
|
|
|
%package -n libykpiv-devel
|
|
|
|
Summary: Development files for Yubikey NEO PIV applet library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libykpiv%{soname} = %{version}
|
|
|
|
|
|
|
|
%description -n libykpiv-devel
|
|
|
|
This package contains the header file needed to develop applications that use
|
|
|
|
Yubikey NEO PIV 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}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
|
|
|
|
%{__rm} -rf %{buildroot}/%{_libdir}/*.la
|
|
|
|
|
|
|
|
%post -n libykpiv%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libykpiv%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING NEWS ChangeLog README
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%files -n libykpiv%{soname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libykpiv.so.%{soname}
|
2015-03-29 12:44:25 +02:00
|
|
|
%{_libdir}/libykpiv.so.%{soname}.0.4
|
2015-01-31 00:48:35 +01:00
|
|
|
|
|
|
|
%files -n libykpiv-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/ykpiv/
|
|
|
|
%{_includedir}/ykpiv/*
|
|
|
|
%{_libdir}/libykpiv.so
|
|
|
|
%{_libdir}/pkgconfig/ykpiv.pc
|
|
|
|
|
|
|
|
%changelog
|