]> git.pld-linux.org Git - packages/libyubikey.git/blame - libyubikey.spec
pldize
[packages/libyubikey.git] / libyubikey.spec
CommitLineData
ed5353ef 1#
d7af1426
ER
2# Conditional build:
3%bcond_without tests # build without tests
4
ed5353ef
AM
5Summary: C library for decrypting and parsing Yubikey One-time passwords
6Name: libyubikey
7Version: 1.13
8Release: 1
9License: BSD
ed5353ef 10Group: Libraries
ed5353ef
AM
11Source0: http://opensource.yubico.com/yubico-c/releases/%{name}-%{version}.tar.gz
12# Source0-md5: 6e84fc1914ab5b609319945c18d45835
d7af1426 13URL: http://opensource.yubico.com/yubico-c
ed5353ef
AM
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17This package holds a low-level C software development kit for the
18Yubico authentication device, the Yubikey.
19
20%package devel
21Summary: Development files for libyubikey
22Group: Development/Libraries
23Requires: %{name} = %{version}-%{release}
24
25%description devel
26This package contains the header file needed to develop applications
27that 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
44rm -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 50rm -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
This page took 0.055351 seconds and 4 git commands to generate.