Name: libu2f-host Version: 0.0.4 Release: 1%{?dist} Summary: Yubico Universal 2nd Factor (U2F) Host C Library License: GPLv3+ URL: http://developers.yubico.com/%{name}/ Source0: http://developers.yubico.com/%{name}/releases/%{name}-%{version}.tar.xz BuildRequires: json-c-devel hidapi-devel systemd # Bundled gnulib https://fedorahosted.org/fpc/ticket/174 Provides: bundled(gnulib) %description libu2f-host provides a C library that implements the host-side of the U2F protocol. There are APIs to talk to a U2F device and perform the U2F Register and U2F Authenticate operations. %package -n u2f-host Summary: Command-line tool for U2F devices Requires: %{name}%{?_isa} = %{version}-%{release} %description -n u2f-host u2f-host provides a command line tool that implements the host-side of the U2F protocol. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains the header files needed to develop applications that use libu2f-host. %prep %setup -q %build %configure --disable-rpath --disable-static # --disable-rpath doesn't work. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %check LD_LIBRARY_PATH="$(pwd)/u2f-host/.libs" make check %install %make_install find %{buildroot} -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_libdir}/*.so.* %license COPYING %files -n u2f-host %{_bindir}/u2f-host %{_mandir}/man1/u2f-host.1* %files devel %{_libdir}/pkgconfig/*.pc %{_libdir}/*.so %{_includedir}/* %doc README %doc %{_datadir}/gtk-doc %changelog * Fri Feb 13 2015 Andy Lutomirski - 0.0.4-1 - Update to new release - Drop udev rules -- they should be a separate package IMO - Mark COPYING as a license - Improve manpage rule * Fri Oct 31 2014 Andy Lutomirski - 0.0-5 - BR: systemd, for _udevrulesdir * Fri Oct 31 2014 Andy Lutomirski - 0.0-4 - Update udev rules for the Plug-Up key - Fix timestamp on the udev rules * Wed Oct 29 2014 Andy Lutomirski - 0.0-3 - Use _udevrulesdir * Mon Oct 27 2014 Andy Lutomirski - 0.0-2 - Add udev rules * Wed Oct 22 2014 Andy Lutomirski - 0.0-1 - New package