]> git.pld-linux.org Git - packages/yubico-piv-tool.git/blob - yubico-piv-tool.spec
bb100723348b688a9604f78ff301044d5d68cc34
[packages/yubico-piv-tool.git] / yubico-piv-tool.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # build without tests
4
5 Summary:        Tool for interacting with the PIV applet on a YubiKey NEO
6 Name:           yubico-piv-tool
7 Version:        1.4.4
8 Release:        1
9 License:        GPL v3+
10 Group:          Applications
11 Source0:        https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz
12 # Source0-md5:  bdada97514316bd7d712f8dfc6ee6a5e
13 URL:            https://developers.yubico.com/yubico-piv-tool/
14 BuildRequires:  openssl-devel
15 BuildRequires:  pcsc-lite-devel
16 Requires:       pcsc-driver-ccid
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The Yubico PIV tool is used for interacting with the Privilege and
21 Identification Card (PIV) applet on a YubiKey NEO.
22
23 With it you may generate keys on the device, importing keys and
24 certificates, and create certificate requests, and other operations. A
25 shared library and a command-line tool is included.
26
27 %package devel
28 Summary:        Tool for interacting with the PIV applet on a YubiKey NEO
29 Requires:       %{name} = %{version}-%{release}
30
31 %description devel
32 The Yubico PIV tool is used for interacting with the Privilege and
33 Identification Card (PIV) applet on a YubiKey NEO. This package
34 includes development files.
35
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
49 rm -rf $RPM_BUILD_ROOT
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 rm $RPM_BUILD_ROOT%{_libdir}/libykpiv.{la,a}
54 rm $RPM_BUILD_ROOT%{_libdir}/libykcs11.{la,a}
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %post   -p /sbin/ldconfig
60 %postun -p /sbin/ldconfig
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.051622 seconds and 2 git commands to generate.