3 %bcond_without static_libs # static library
4 %bcond_without tests # unit tests
6 Summary: Yubikey personalization program
7 Summary(pl.UTF-8): Program do personalizacji urządzeń Yubikey
12 Group: Applications/System
13 Source0: https://developers.yubico.com/yubikey-personalization/Releases/%{name}-%{version}.tar.gz
14 # Source0-md5: 8749113ce5a0164fe2b429b61242ba0f
15 URL: https://developers.yubico.com/yubikey-personalization/
16 BuildRequires: asciidoc
17 BuildRequires: json-c-devel
18 BuildRequires: libusb-devel >=1.0
19 BuildRequires: libyubikey-devel >= 1.5
20 BuildRequires: pkgconfig
21 BuildRequires: udev-devel >= 1:1.188
22 Requires: libyubikey >= 1.5
23 Conflicts: udev-core < 1:1.188
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Yubico's YubiKey can be re-programmed with a new AES key. This is a
28 library that makes this an easy task.
30 %description -l pl.UTF-8
31 Urządzenia Yubico YubiKey można ponownie zaprogramować nowym kluczem
32 AES. Ta biblioteka pozwala zrobić to łatwo.
35 Summary: Development files for ykpers library
36 Summary(pl.UTF-8): Pliki programistyczne biblioteki ykpers
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 This package contains the header files needed to develop applications
42 that use ykpers library.
44 %description devel -l pl.UTF-8
45 Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji
46 wykorzystujących bibliotekę ykpers.
49 Summary: Static ykpers library
50 Summary(pl.UTF-8): Statyczna biblioteka ykpers
51 Group: Development/Libraries
52 Requires: %{name}-devel = %{version}-%{release}
55 Static ykpers library.
57 %description static -l pl.UTF-8
58 Statyczna biblioteka ykpers.
65 --disable-silent-rules \
66 %{!?with_static_libs:--disable-static} \
67 --with-backend=libusb-1.0 \
68 --with-udevrulesdir=/lib/udev/rules.d
72 export LD_LIBRARY_PATH=$(pwd)/.libs
73 # disable valgrind, it reports false positives from libc sscanf() and strdup()
79 rm -rf $RPM_BUILD_ROOT
82 DESTDIR=$RPM_BUILD_ROOT
84 # obsoleted by pkg-config
85 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libykpers-1.la
88 rm -rf $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
94 %defattr(644,root,root,755)
95 %doc AUTHORS COPYING ChangeLog NEWS README doc/Compatibility.asciidoc
96 %attr(755,root,root) %{_bindir}/ykinfo
97 %attr(755,root,root) %{_bindir}/ykpersonalize
98 %attr(755,root,root) %{_bindir}/ykchalresp
99 %attr(755,root,root) %{_libdir}/libykpers-1.so.*.*
100 %attr(755,root,root) %ghost %{_libdir}/libykpers-1.so.1
101 %{_mandir}/man1/ykpersonalize.1*
102 %{_mandir}/man1/ykchalresp.1*
103 %{_mandir}/man1/ykinfo.1*
104 /lib/udev/rules.d/69-yubikey.rules
107 %defattr(644,root,root,755)
108 %doc doc/USB-Hid-Issue.asciidoc
109 %attr(755,root,root) %{_libdir}/libykpers-1.so
110 %{_includedir}/ykpers-1
111 %{_pkgconfigdir}/ykpers-1.pc
113 %if %{with static_libs}
115 %defattr(644,root,root,755)
116 %{_libdir}/libykpers-1.a