]>
Commit | Line | Data |
---|---|---|
ed5353ef | 1 | # |
d7af1426 ER |
2 | # Conditional build: |
3 | %bcond_without tests # build without tests | |
4 | ||
ed5353ef AM |
5 | Summary: C library for decrypting and parsing Yubikey One-time passwords |
6 | Name: libyubikey | |
7 | Version: 1.13 | |
8 | Release: 1 | |
9 | License: BSD | |
ed5353ef | 10 | Group: Libraries |
ed5353ef AM |
11 | Source0: http://opensource.yubico.com/yubico-c/releases/%{name}-%{version}.tar.gz |
12 | # Source0-md5: 6e84fc1914ab5b609319945c18d45835 | |
d7af1426 | 13 | URL: http://opensource.yubico.com/yubico-c |
ed5353ef AM |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | This package holds a low-level C software development kit for the | |
18 | Yubico authentication device, the Yubikey. | |
19 | ||
20 | %package devel | |
21 | Summary: Development files for libyubikey | |
22 | Group: Development/Libraries | |
23 | Requires: %{name} = %{version}-%{release} | |
24 | ||
25 | %description devel | |
26 | This package contains the header file needed to develop applications | |
27 | that use libyubikey. | |
28 | ||
29 | %prep | |
30 | %setup -q | |
31 | ||
32 | %build | |
33 | %configure \ | |
34 | --disable-static \ | |
35 | --disable-silent-rules \ | |
36 | ||
37 | %{__make} | |
38 | ||
39 | %if %{with tests} | |
ed5353ef AM |
40 | %{__make} check |
41 | %endif | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
ed5353ef | 45 | %{__make} install \ |
d7af1426 ER |
46 | INSTALL="%{__install} -p" \ |
47 | DESTDIR=$RPM_BUILD_ROOT | |
ed5353ef AM |
48 | |
49 | %clean | |
d7af1426 | 50 | rm -rf $RPM_BUILD_ROOT |
ed5353ef | 51 | |
d7af1426 ER |
52 | %post -p /sbin/ldconfig |
53 | %postun -p /sbin/ldconfig | |
ed5353ef AM |
54 | |
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc AUTHORS NEWS ChangeLog README | |
58 | %attr(755,root,root) %{_bindir}/modhex | |
59 | %attr(755,root,root) %{_bindir}/ykparse | |
60 | %attr(755,root,root) %{_bindir}/ykgenerate | |
61 | %attr(755,root,root) %ghost %{_libdir}/libyubikey.so.0 | |
62 | %attr(755,root,root) %{_libdir}/libyubikey.so.*.* | |
63 | %{_mandir}/man1/ykgenerate.1* | |
64 | %{_mandir}/man1/ykparse.1* | |
65 | %{_mandir}/man1/modhex.1* | |
66 | ||
67 | %files devel | |
68 | %defattr(644,root,root,755) | |
69 | %{_includedir}/yubikey.h | |
70 | %attr(755,root,root) %{_libdir}/libyubikey.so | |
71 | %{_libdir}/libyubikey.la |