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 Patch0: %{name}-json-c.patch
16 URL: https://developers.yubico.com/yubikey-personalization/
17 BuildRequires: asciidoc
18 BuildRequires: json-c-devel
19 BuildRequires: libusb-devel >=1.0
20 BuildRequires: libyubikey-devel >= 1.5
21 BuildRequires: pkgconfig
22 BuildRequires: udev-devel >= 1:1.188
23 Requires: libyubikey >= 1.5
24 Conflicts: udev-core < 1:1.188
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Yubico's YubiKey can be re-programmed with a new AES key. This is a
29 library that makes this an easy task.
31 %description -l pl.UTF-8
32 Urządzenia Yubico YubiKey można ponownie zaprogramować nowym kluczem
33 AES. Ta biblioteka pozwala zrobić to łatwo.
36 Summary: Development files for ykpers library
37 Summary(pl.UTF-8): Pliki programistyczne biblioteki ykpers
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
42 This package contains the header files needed to develop applications
43 that use ykpers library.
45 %description devel -l pl.UTF-8
46 Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji
47 wykorzystujących bibliotekę ykpers.
50 Summary: Static ykpers library
51 Summary(pl.UTF-8): Statyczna biblioteka ykpers
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
56 Static ykpers library.
58 %description static -l pl.UTF-8
59 Statyczna biblioteka ykpers.
67 --disable-silent-rules \
68 %{!?with_static_libs:--disable-static} \
69 --with-backend=libusb-1.0 \
70 --with-udevrulesdir=/lib/udev/rules.d
74 export LD_LIBRARY_PATH=$(pwd)/.libs
75 # disable valgrind, it reports false positives from libc sscanf() and strdup()
81 rm -rf $RPM_BUILD_ROOT
84 DESTDIR=$RPM_BUILD_ROOT
86 # obsoleted by pkg-config
87 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libykpers-1.la
90 rm -rf $RPM_BUILD_ROOT
92 %post -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
96 %defattr(644,root,root,755)
97 %doc AUTHORS COPYING ChangeLog NEWS README doc/Compatibility.asciidoc
98 %attr(755,root,root) %{_bindir}/ykinfo
99 %attr(755,root,root) %{_bindir}/ykpersonalize
100 %attr(755,root,root) %{_bindir}/ykchalresp
101 %attr(755,root,root) %{_libdir}/libykpers-1.so.*.*
102 %attr(755,root,root) %ghost %{_libdir}/libykpers-1.so.1
103 %{_mandir}/man1/ykpersonalize.1*
104 %{_mandir}/man1/ykchalresp.1*
105 %{_mandir}/man1/ykinfo.1*
106 /lib/udev/rules.d/69-yubikey.rules
109 %defattr(644,root,root,755)
110 %doc doc/USB-Hid-Issue.asciidoc
111 %attr(755,root,root) %{_libdir}/libykpers-1.so
112 %{_includedir}/ykpers-1
113 %{_pkgconfigdir}/ykpers-1.pc
115 %if %{with static_libs}
117 %defattr(644,root,root,755)
118 %{_libdir}/libykpers-1.a