]> git.pld-linux.org Git - packages/ykpers.git/blame - ykpers.spec
- added json-c patch (fixes build with json-c 0.14); release 2
[packages/ykpers.git] / ykpers.spec
CommitLineData
4a4d6a23
JB
1#
2# Conditional build:
3%bcond_without static_libs # static library
4%bcond_without tests # unit tests
5
665c618d 6Summary: Yubikey personalization program
4a4d6a23 7Summary(pl.UTF-8): Program do personalizacji urządzeń Yubikey
665c618d 8Name: ykpers
1f3f787e 9Version: 1.20.0
f3fb7e74 10Release: 2
665c618d
AM
11License: BSD
12Group: Applications/System
4a4d6a23 13Source0: https://developers.yubico.com/yubikey-personalization/Releases/%{name}-%{version}.tar.gz
1f3f787e 14# Source0-md5: 8749113ce5a0164fe2b429b61242ba0f
f3fb7e74 15Patch0: %{name}-json-c.patch
4a4d6a23
JB
16URL: https://developers.yubico.com/yubikey-personalization/
17BuildRequires: asciidoc
665c618d 18BuildRequires: json-c-devel
4a4d6a23
JB
19BuildRequires: libusb-devel >=1.0
20BuildRequires: libyubikey-devel >= 1.5
21BuildRequires: pkgconfig
22BuildRequires: udev-devel >= 1:1.188
23Requires: libyubikey >= 1.5
24Conflicts: udev-core < 1:1.188
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
665c618d
AM
26
27%description
28Yubico's YubiKey can be re-programmed with a new AES key. This is a
29library that makes this an easy task.
30
6dda319f 31%description -l pl.UTF-8
4a4d6a23
JB
32Urządzenia Yubico YubiKey można ponownie zaprogramować nowym kluczem
33AES. Ta biblioteka pozwala zrobić to łatwo.
34
665c618d 35%package devel
4a4d6a23
JB
36Summary: Development files for ykpers library
37Summary(pl.UTF-8): Pliki programistyczne biblioteki ykpers
665c618d
AM
38Group: Development/Libraries
39Requires: %{name} = %{version}-%{release}
40
41%description devel
4a4d6a23
JB
42This package contains the header files needed to develop applications
43that use ykpers library.
44
45%description devel -l pl.UTF-8
46Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia aplikacji
47wykorzystujących bibliotekę ykpers.
48
49%package static
50Summary: Static ykpers library
51Summary(pl.UTF-8): Statyczna biblioteka ykpers
52Group: Development/Libraries
53Requires: %{name}-devel = %{version}-%{release}
54
55%description static
56Static ykpers library.
57
58%description static -l pl.UTF-8
59Statyczna biblioteka ykpers.
665c618d
AM
60
61%prep
62%setup -q
f3fb7e74 63%patch0 -p1
665c618d
AM
64
65%build
66%configure \
67 --disable-silent-rules \
4a4d6a23
JB
68 %{!?with_static_libs:--disable-static} \
69 --with-backend=libusb-1.0 \
70 --with-udevrulesdir=/lib/udev/rules.d
665c618d
AM
71%{__make}
72
73%if %{with tests}
4a4d6a23
JB
74export LD_LIBRARY_PATH=$(pwd)/.libs
75# disable valgrind, it reports false positives from libc sscanf() and strdup()
76%{__make} check \
77 LOG_COMPILER=
665c618d
AM
78%endif
79
80%install
81rm -rf $RPM_BUILD_ROOT
4a4d6a23
JB
82
83%{__make} install \
665c618d
AM
84 DESTDIR=$RPM_BUILD_ROOT
85
4a4d6a23
JB
86# obsoleted by pkg-config
87%{__rm} $RPM_BUILD_ROOT%{_libdir}/libykpers-1.la
88
665c618d 89%clean
4a4d6a23 90rm -rf $RPM_BUILD_ROOT
665c618d 91
4a4d6a23
JB
92%post -p /sbin/ldconfig
93%postun -p /sbin/ldconfig
665c618d
AM
94
95%files
96%defattr(644,root,root,755)
4a4d6a23 97%doc AUTHORS COPYING ChangeLog NEWS README doc/Compatibility.asciidoc
665c618d
AM
98%attr(755,root,root) %{_bindir}/ykinfo
99%attr(755,root,root) %{_bindir}/ykpersonalize
100%attr(755,root,root) %{_bindir}/ykchalresp
665c618d 101%attr(755,root,root) %{_libdir}/libykpers-1.so.*.*
4a4d6a23 102%attr(755,root,root) %ghost %{_libdir}/libykpers-1.so.1
665c618d
AM
103%{_mandir}/man1/ykpersonalize.1*
104%{_mandir}/man1/ykchalresp.1*
105%{_mandir}/man1/ykinfo.1*
106/lib/udev/rules.d/69-yubikey.rules
107
108%files devel
109%defattr(644,root,root,755)
110%doc doc/USB-Hid-Issue.asciidoc
665c618d
AM
111%attr(755,root,root) %{_libdir}/libykpers-1.so
112%{_includedir}/ykpers-1
4a4d6a23
JB
113%{_pkgconfigdir}/ykpers-1.pc
114
115%if %{with static_libs}
116%files static
117%defattr(644,root,root,755)
118%{_libdir}/libykpers-1.a
119%endif
This page took 0.064976 seconds and 4 git commands to generate.