]> git.pld-linux.org Git - packages/ykpers.git/blob - ykpers.spec
- release 2 (by relup.sh)
[packages/ykpers.git] / ykpers.spec
1 %bcond_without  tests
2 Summary:        Yubikey personalization program
3 Name:           ykpers
4 Version:        1.18.0
5 Release:        2
6 License:        BSD
7 Group:          Applications/System
8 URL:            http://opensource.yubico.com/yubikey-personalization/
9 Source0:        http://opensource.yubico.com/yubikey-personalization/releases/%{name}-%{version}.tar.gz
10 # Source0-md5:  58e6a7011a3a02ae420a8eee0a442fb1
11 BuildRequires:  json-c-devel
12 BuildRequires:  libusb-devel
13 BuildRequires:  libyubikey-devel
14 BuildRequires:  systemd-devel
15
16 %description
17 Yubico's YubiKey can be re-programmed with a new AES key. This is a
18 library that makes this an easy task.
19
20 %package devel
21 Summary:        Development files for ykpers
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 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}
41 export LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/.libs
42 %{__make} check
43 %endif
44
45 %install
46 rm -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.313505 seconds and 4 git commands to generate.