Name: libu2f-host Version: 0.0 Release: 2%{?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 Source1: 69-u2f.rules # For /usr/lib/udev/rules.d Requires: systemd BuildRequires: json-c-devel hidapi-devel # 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 {} ';' install -D -m 0644 %{SOURCE1} %{buildroot}/usr/lib/udev/rules.d/69-u2f.rules %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_libdir}/*.so.* /usr/lib/udev/rules.d/69-u2f.rules %doc 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 * Mon Oct 27 2014 Andy Lutomirski - 0.0-2 - Add udev rules * Wed Oct 22 2014 Andy Lutomirski - 0.0-1 - New package