]> git.pld-linux.org Git - packages/yubico-piv-tool.git/blame - yubico-piv-tool.spec
- updated to 1.5.0
[packages/yubico-piv-tool.git] / yubico-piv-tool.spec
CommitLineData
e1b64efc
ER
1#
2# Conditional build:
c1d612a8
JB
3%bcond_without static_libs # static library
4%bcond_without tests # unit tests
e1b64efc 5
cc549f10 6Summary: Tool for interacting with the PIV applet on a YubiKey NEO
c1d612a8 7Summary(pl.UTF-8): Narzędzie do komunikacji z apletem PIV na YubiKey NEO
cc549f10 8Name: yubico-piv-tool
c1d612a8 9Version: 1.5.0
cc549f10 10Release: 1
c1d612a8 11License: BSD
cc549f10 12Group: Applications
cc549f10 13Source0: https://developers.yubico.com/yubico-piv-tool/Releases/%{name}-%{version}.tar.gz
c1d612a8 14# Source0-md5: bcfec9fa2454ba7f7be6cc80632bd41f
e1b64efc 15URL: https://developers.yubico.com/yubico-piv-tool/
c1d612a8
JB
16%{?with_tests:BuildRequires: check-devel >= 0.9.6}
17BuildRequires: help2man
cc549f10
AM
18BuildRequires: openssl-devel
19BuildRequires: pcsc-lite-devel
c1d612a8
JB
20BuildRequires: pkgconfig
21Requires: %{name}-libs = %{version}-%{release}
cc549f10 22Requires: pcsc-driver-ccid
e1b64efc 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
cc549f10
AM
24
25%description
26The Yubico PIV tool is used for interacting with the Privilege and
27Identification Card (PIV) applet on a YubiKey NEO.
28
29With it you may generate keys on the device, importing keys and
c1d612a8
JB
30certificates, and create certificate requests, and other operations.
31
32%description -l pl.UTF-8
33Narzędzie Yubico PIV Tool służy do komunikacji z apletem PIV
34(Privilege and Identification card) na urządzeniach YubiKey NEO.
35
36Przy jego pomocy można generować klucze na urządzeniu, importować
37klucze i certyfikaty, tworzyć żądania certyfikatów oraz wykonywać inne
38operacje.
39
40%package libs
41Summary: Yubico PIV shared libraries
42Summary(pl.UTF-8): Biblioteki współdzielone Yubico PIV
43Group: Libraries
44
45%description libs
46The Yubico PIV tool is used for interacting with the Privilege and
47Identification Card (PIV) applet on a YubiKey NEO. This package
48contains shared libraries for the tool.
49
50%description libs -l pl.UTF-8
51Narzędzie Yubico PIV Tool służy do komunikacji z apletem PIV
52(Privilege and Identification card) na urządzeniach YubiKey NEO. Ten
53pakiet zawiera biblioteki współdzielone wykorzystywane przez
54narzędzie.
cc549f10
AM
55
56%package devel
c1d612a8
JB
57Summary: Header files for Yubico PIV libraries
58Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Yubico PIV
59Group: Development/Libraries
60Requires: %{name}-libs = %{version}-%{release}
61Requires: openssl-devel
cc549f10
AM
62
63%description devel
64The Yubico PIV tool is used for interacting with the Privilege and
65Identification Card (PIV) applet on a YubiKey NEO. This package
66includes development files.
67
c1d612a8
JB
68%description devel -l pl.UTF-8
69Narzędzie Yubico PIV Tool służy do komunikacji z apletem PIV
70(Privilege and Identification card) na urządzeniach YubiKey NEO. Ten
71pakiet zawiera pliki programistyczne.
72
73%package static
74Summary: Yubico PIV static libraries
75Summary(pl.UTF-8): Biblioteki statyczne Yubico PIV
76Group: Development/Libraries
77Requires: %{name}-devel = %{version}-%{release}
78
79%description static
80The Yubico PIV tool is used for interacting with the Privilege and
81Identification Card (PIV) applet on a YubiKey NEO. This package
82includes static libraries.
83
84%description static -l pl.UTF-8
85Narzędzie Yubico PIV Tool służy do komunikacji z apletem PIV
86(Privilege and Identification card) na urządzeniach YubiKey NEO. Ten
87pakiet zawiera biblioteki statyczne.
88
cc549f10
AM
89%prep
90%setup -q
91
92%build
93%configure \
94 --with-backend="pcsc" \
c1d612a8
JB
95 --disable-silent-rules \
96 %{!?with_static_libs:--disable-static}
cc549f10
AM
97
98%{__make}
99
100%{?with_tests:%{__make} check}
101
102%install
103rm -rf $RPM_BUILD_ROOT
cc549f10
AM
104%{__make} install \
105 DESTDIR=$RPM_BUILD_ROOT
106
c1d612a8 107%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{ykcs11,ykpiv}.la
cc549f10
AM
108
109%clean
110rm -rf $RPM_BUILD_ROOT
111
c1d612a8
JB
112%post libs -p /sbin/ldconfig
113%postun libs -p /sbin/ldconfig
cc549f10
AM
114
115%files
116%defattr(644,root,root,755)
c1d612a8 117%doc COPYING ChangeLog NEWS README doc/*.adoc
cc549f10 118%attr(755,root,root) %{_bindir}/yubico-piv-tool
c1d612a8
JB
119%{_mandir}/man1/yubico-piv-tool.1*
120
121%files libs
122%defattr(644,root,root,755)
123%attr(755,root,root) %{_libdir}/libykpiv.so.*.*.*
cc549f10 124%attr(755,root,root) %ghost %{_libdir}/libykpiv.so.1
c1d612a8 125%attr(755,root,root) %{_libdir}/libykcs11.so.*.*.*
cc549f10 126%attr(755,root,root) %ghost %{_libdir}/libykcs11.so.1
cc549f10
AM
127
128%files devel
129%defattr(644,root,root,755)
130%attr(755,root,root) %{_libdir}/libykpiv.so
131%attr(755,root,root) %{_libdir}/libykcs11.so
132%{_pkgconfigdir}/ykpiv.pc
133%{_pkgconfigdir}/ykcs11.pc
134%{_includedir}/ykpiv
c1d612a8
JB
135
136%if %{with static_libs}
137%files static
138%defattr(644,root,root,755)
139%{_libdir}/libykpiv.a
140%{_libdir}/libykcs11.a
141%endif
This page took 0.0964 seconds and 4 git commands to generate.