forked from pool/libyubikey
78 lines
1.8 KiB
RPMSpec
78 lines
1.8 KiB
RPMSpec
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: libyubikey
|
|
Version: 1.7
|
|
Release: 1
|
|
License: GPL
|
|
Summary: Yubico's USB key low-level C library
|
|
Url: http://code.google.com/p/yubico-c/
|
|
Group: Productivity/Networking/Security
|
|
Source0: http://yubico-c.googlecode.com/files/%{name}/%{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Patch: libyubikey-1.7-rpath-and-auto.patch
|
|
|
|
%description
|
|
|
|
Low-level library for decrypting and parsing Yubikey One-Time Passwords (OTP) in C.
|
|
|
|
|
|
%package -n libyubikey0
|
|
Summary: Yubico's USB key low-level C library
|
|
Group: Productivity/Networking/Security
|
|
|
|
%description -n libyubikey0
|
|
|
|
Low-level library for decrypting and parsing Yubikey One-Time Passwords (OTP) in C.
|
|
|
|
%package devel
|
|
Summary: Yubico's USB key low-level C library
|
|
Group: Productivity/Networking/Security
|
|
Requires: libyubikey0 = %{version} glibc-devel
|
|
|
|
%description devel
|
|
|
|
Low-level library for decrypting and parsing Yubikey One-Time Passwords (OTP) in C.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure --disable-static --with-pic
|
|
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}
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
rm %{buildroot}%{_libdir}/*.la
|
|
|
|
%post -n libyubikey0 -p /sbin/ldconfig
|
|
|
|
%postun -n libyubikey0 -p /sbin/ldconfig
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/modhex
|
|
%{_bindir}/ykgenerate
|
|
%{_bindir}/ykparse
|
|
|
|
%files -n libyubikey0
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libyubikey.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libyubikey.so
|
|
%{_includedir}/yubikey.h
|
|
|
|
%changelog
|