1 |
Name: ykpers |
2 |
Version: 1.7.0 |
3 |
Release: %mkrel 1 |
4 |
Summary: Yubikey personalization program |
5 |
|
6 |
Group: Applications/System |
7 |
License: BSD |
8 |
URL: http://code.google.com/p/yubikey-personalization/ |
9 |
Source0: http://yubikey-personalization.googlecode.com/files/%{name}-%{version}.tar.gz |
10 |
Source1: http://yubikey-personalization.googlecode.com/files/%{name}-%{version}.tar.gz.sig |
11 |
|
12 |
BuildRequires: gusb-devel |
13 |
BuildRequires: yubikey-devel |
14 |
|
15 |
%description |
16 |
Yubico's YubiKey can be re-programmed with a new AES key. This is a library |
17 |
that makes this an easy task. |
18 |
|
19 |
%package devel |
20 |
Summary: Development files for ykpers |
21 |
Group: Development/Libraries |
22 |
Requires: %{name} = %{version}-%{release} |
23 |
|
24 |
%description devel |
25 |
This package contains the header file needed to develop applications that |
26 |
use ykpers. |
27 |
|
28 |
%prep |
29 |
%setup -q |
30 |
|
31 |
%build |
32 |
%configure --enable-static=no --disable-rpath \ |
33 |
--with-udevrulesdir=/lib/udev/rules.d \ |
34 |
%ifnarch s390 s390x |
35 |
--with-backend=libusb-1.0 |
36 |
%else |
37 |
--with-backend=libusb |
38 |
%endif |
39 |
# --disable-rpath doesn't work for the configure script |
40 |
%{__sed} -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
41 |
%{__sed} -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
42 |
%{__make} %{?_smp_mflags} |
43 |
|
44 |
%check |
45 |
pwd |
46 |
%{__make} check LD_LIBRARY_PATH="../.libs" |
47 |
|
48 |
%install |
49 |
%{__make} install DESTDIR=${RPM_BUILD_ROOT} INSTALL="%{__install} -p" |
50 |
|
51 |
%clean |
52 |
%{__rm} -rf ${RPM_BUILD_ROOT} |
53 |
|
54 |
%post -p /sbin/ldconfig |
55 |
|
56 |
%postun -p /sbin/ldconfig |
57 |
|
58 |
%files |
59 |
%defattr(-,root,root,-) |
60 |
%doc AUTHORS COPYING README ChangeLog NEWS |
61 |
%doc doc/Read-Me.asciidoc doc/Compatibility.asciidoc |
62 |
%{_bindir}/ykpersonalize |
63 |
%{_bindir}/ykchalresp |
64 |
%{_libdir}/libykpers-1.so.1 |
65 |
%{_libdir}/libykpers-1.so.%{version} |
66 |
%{_mandir}/man1/ykpersonalize.1.xz |
67 |
%{_mandir}/man1/ykchalresp.1.xz |
68 |
/lib/udev/rules.d/70-yubikey.rules |
69 |
|
70 |
%files devel |
71 |
%defattr(-,root,root,-) |
72 |
%doc doc/USB-Hid-Issue.asciidoc |
73 |
%{_libdir}/pkgconfig/ykpers-1.pc |
74 |
%{_libdir}/libykpers-1.so |
75 |
%{_includedir}/ykpers-1/ |
76 |
%exclude %{_libdir}/libykpers-1.la |
77 |
|