]> git.pld-linux.org Git - packages/yubico-piv-tool.git/blame - yubico-piv-tool.spec
pldize; drop chrpath; pld macros auto-invoke it
[packages/yubico-piv-tool.git] / yubico-piv-tool.spec
CommitLineData
e1b64efc
ER
1#
2# Conditional build:
3%bcond_without tests # build without tests
4
cc549f10
AM
5Summary: Tool for interacting with the PIV applet on a YubiKey NEO
6Name: yubico-piv-tool
7Version: 1.4.2
8Release: 1
9License: GPL v3+
10Group: Applications
cc549f10
AM
11Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz
12# Source0-md5: b03dc5adef8504f822a7586e65f5b33c
e1b64efc 13URL: https://developers.yubico.com/yubico-piv-tool/
cc549f10
AM
14BuildRequires: openssl-devel
15BuildRequires: pcsc-lite-devel
16Requires: pcsc-driver-ccid
e1b64efc 17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
cc549f10
AM
18
19%description
20The Yubico PIV tool is used for interacting with the Privilege and
21Identification Card (PIV) applet on a YubiKey NEO.
22
23With it you may generate keys on the device, importing keys and
24certificates, and create certificate requests, and other operations. A
25shared library and a command-line tool is included.
26
27%package devel
28Summary: Tool for interacting with the PIV applet on a YubiKey NEO
29Requires: %{name} = %{version}-%{release}
30
31%description devel
32The Yubico PIV tool is used for interacting with the Privilege and
33Identification Card (PIV) applet on a YubiKey NEO. This package
34includes development files.
35
cc549f10
AM
36%prep
37%setup -q
38
39%build
40%configure \
41 --with-backend="pcsc" \
42 --disable-silent-rules
43
44%{__make}
45
46%{?with_tests:%{__make} check}
47
48%install
49rm -rf $RPM_BUILD_ROOT
cc549f10
AM
50%{__make} install \
51 DESTDIR=$RPM_BUILD_ROOT
52
e1b64efc
ER
53rm $RPM_BUILD_ROOT%{_libdir}/libykpiv.{la,a}
54rm $RPM_BUILD_ROOT%{_libdir}/libykcs11.{la,a}
cc549f10
AM
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
e1b64efc
ER
59%post -p /sbin/ldconfig
60%postun -p /sbin/ldconfig
cc549f10
AM
61
62%files
63%defattr(644,root,root,755)
64%attr(755,root,root) %{_bindir}/yubico-piv-tool
65%attr(755,root,root) %ghost %{_libdir}/libykpiv.so.1
66%attr(755,root,root) %{_libdir}/libykpiv.so.*.*
67%attr(755,root,root) %ghost %{_libdir}/libykcs11.so.1
68%attr(755,root,root) %{_libdir}/libykcs11.so.*.*
69%{_mandir}/man1/yubico-piv-tool.1*
70
71%files devel
72%defattr(644,root,root,755)
73%attr(755,root,root) %{_libdir}/libykpiv.so
74%attr(755,root,root) %{_libdir}/libykcs11.so
75%{_pkgconfigdir}/ykpiv.pc
76%{_pkgconfigdir}/ykcs11.pc
77%{_includedir}/ykpiv
This page took 0.055348 seconds and 4 git commands to generate.