Name: libykneomgr Version: 0.1.2 Release: 1%{?dist} Summary: YubiKey NEO Manager C Library License: LGPLv3+ URL: http://opensource.yubico.com/%{name}/ Source0: http://opensource.yubico.com/%{name}/releases/%{name}-%{version}.tar.gz BuildRequires: zlib-devel libzip-devel pcsc-lite-devel help2man # libykneomgr uses gnulib. See https://fedorahosted.org/fpc/ticket/174 Provides: bundled(gnulib) %description libykneomgr is a library to manage the YubiKey NEO. It can change the USB mode of a YubiKey NEO as well as add and remove applets. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package tools Summary: YubiKey NEO management tool Requires: %{name}%{?_isa} = %{version}-%{release} %description tools The %{name}-tools package contains the ykneomgr command-line tool. %prep %setup -q %build %configure --disable-static --disable-rpath # --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 # We need LD_LIBRARY_PATH so help2man can run ykneomgr. LD_LIBRARY_PATH="$(pwd)/lib/.libs" make %{?_smp_mflags} %check LD_LIBRARY_PATH="$(pwd)/lib/.libs" make check %install %make_install find %{buildroot} -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc README %doc COPYING %{_libdir}/*.so.* %files devel %doc %{_datadir}/gtk-doc/html/%{name}/* %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %files tools %{_bindir}/ykneomgr %{_mandir}/man1/ykneomgr.1.gz %changelog * Thu Mar 27 2014 Andy Lutomirski - 0.1.2-1 - New package