[packages/ykpers] - initial

arekm arekm at pld-linux.org
Mon Jan 30 14:06:06 CET 2017


commit 665c618dbc78ca7f61c3224618a343e9fb1567c4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Jan 30 14:05:53 2017 +0100

    - initial

 ykpers.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)
---
diff --git a/ykpers.spec b/ykpers.spec
new file mode 100644
index 0000000..0b8e3c1
--- /dev/null
+++ b/ykpers.spec
@@ -0,0 +1,77 @@
+%bcond_without	tests
+Summary:	Yubikey personalization program
+Name:		ykpers
+Version:	1.18.0
+Release:	1
+License:	BSD
+Group:		Applications/System
+URL:		http://opensource.yubico.com/yubikey-personalization/
+Source0:	http://opensource.yubico.com/yubikey-personalization/releases/%{name}-%{version}.tar.gz
+# Source0-md5:	58e6a7011a3a02ae420a8eee0a442fb1
+BuildRequires:	json-c-devel
+BuildRequires:	libusb-devel
+BuildRequires:	libyubikey-devel
+BuildRequires:	systemd-devel
+
+%description
+Yubico's YubiKey can be re-programmed with a new AES key. This is a
+library that makes this an easy task.
+
+%package devel
+Summary:	Development files for ykpers
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+This package contains the header file needed to develop applications
+that use ykpers.
+
+%prep
+%setup -q
+
+%build
+%configure \
+	--disable-silent-rules \
+	--disable-static \
+	--with-udevrulesdir=/lib/udev/rules.d \
+	--with-backend=libusb
+%{__make}
+
+%if %{with tests}
+export LD_LIBRARY_PATH=$RPM_BUILD_DIR/%{name}-%{version}/.libs
+%{__make} check
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} \
+	install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README ChangeLog NEWS
+%doc doc/Compatibility.asciidoc
+%attr(755,root,root) %{_bindir}/ykinfo
+%attr(755,root,root) %{_bindir}/ykpersonalize
+%attr(755,root,root) %{_bindir}/ykchalresp
+%attr(755,root,root) %ghost %{_libdir}/libykpers-1.so.1
+%attr(755,root,root) %{_libdir}/libykpers-1.so.*.*
+%{_mandir}/man1/ykpersonalize.1*
+%{_mandir}/man1/ykchalresp.1*
+%{_mandir}/man1/ykinfo.1*
+/lib/udev/rules.d/69-yubikey.rules
+
+%files devel
+%defattr(644,root,root,755)
+%doc doc/USB-Hid-Issue.asciidoc
+%{_pkgconfigdir}/ykpers-1.pc
+%attr(755,root,root) %{_libdir}/libykpers-1.so
+%{_includedir}/ykpers-1
+%{_libdir}/libykpers-1.la
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ykpers.git/commitdiff/665c618dbc78ca7f61c3224618a343e9fb1567c4



More information about the pld-cvs-commit mailing list