]> git.pld-linux.org Git - packages/ykpers.git/blame - ykpers.spec
- release 2 (by relup.sh)
[packages/ykpers.git] / ykpers.spec
CommitLineData
665c618d
AM
1%bcond_without tests
2Summary: Yubikey personalization program
3Name: ykpers
4Version: 1.18.0
38d0994a 5Release: 2
665c618d
AM
6License: BSD
7Group: Applications/System
8URL: http://opensource.yubico.com/yubikey-personalization/
9Source0: http://opensource.yubico.com/yubikey-personalization/releases/%{name}-%{version}.tar.gz
10# Source0-md5: 58e6a7011a3a02ae420a8eee0a442fb1
11BuildRequires: json-c-devel
12BuildRequires: libusb-devel
13BuildRequires: libyubikey-devel
14BuildRequires: systemd-devel
15
16%description
17Yubico's YubiKey can be re-programmed with a new AES key. This is a
18library that makes this an easy task.
19
20%package devel
21Summary: Development files for ykpers
22Group: Development/Libraries
23Requires: %{name} = %{version}-%{release}
24
25%description devel
26This package contains the header file needed to develop applications
27that use ykpers.
28
29%prep
30%setup -q
31
32%build
33%configure \
34 --disable-silent-rules \
35 --disable-static \
36 --with-udevrulesdir=/lib/udev/rules.d \
37 --with-backend=libusb
38%{__make}
39
40%if %{with tests}
41export LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/.libs
42%{__make} check
43%endif
44
45%install
46rm -rf $RPM_BUILD_ROOT
47%{__make} \
48 install \
49 DESTDIR=$RPM_BUILD_ROOT
50
51%clean
52%{__rm} -rf ${RPM_BUILD_ROOT}
53
54%post -p /sbin/ldconfig
55%postun -p /sbin/ldconfig
56
57%files
58%defattr(644,root,root,755)
59%doc AUTHORS README ChangeLog NEWS
60%doc doc/Compatibility.asciidoc
61%attr(755,root,root) %{_bindir}/ykinfo
62%attr(755,root,root) %{_bindir}/ykpersonalize
63%attr(755,root,root) %{_bindir}/ykchalresp
64%attr(755,root,root) %ghost %{_libdir}/libykpers-1.so.1
65%attr(755,root,root) %{_libdir}/libykpers-1.so.*.*
66%{_mandir}/man1/ykpersonalize.1*
67%{_mandir}/man1/ykchalresp.1*
68%{_mandir}/man1/ykinfo.1*
69/lib/udev/rules.d/69-yubikey.rules
70
71%files devel
72%defattr(644,root,root,755)
73%doc doc/USB-Hid-Issue.asciidoc
74%{_pkgconfigdir}/ykpers-1.pc
75%attr(755,root,root) %{_libdir}/libykpers-1.so
76%{_includedir}/ykpers-1
77%{_libdir}/libykpers-1.la
This page took 0.067623 seconds and 4 git commands to generate.