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