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