- Initial package, version 1.7
OBS-URL: https://build.opensuse.org/package/show/security/libyubikey?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
e3e8acbf3c
commit
90836eb1d2
13
_service
Normal file
13
_service
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" ?>
|
||||
<services>
|
||||
<service name="download_url">
|
||||
<param name="protocol">http</param>
|
||||
<param name="host">yubico-c.googlecode.com</param>
|
||||
<param name="path">/files/libyubikey-1.7.tar.gz</param>
|
||||
</service>
|
||||
<service name="verify_file">
|
||||
<param name="file">_service:download_url:libyubikey-1.7.tar.gz</param>
|
||||
<param name="verifier">sha256</param>
|
||||
<param name="checksum">9e92fd8f9ce3ec3bca1cdd445dadec347a996dcb6f16ebf59ae356b3e78b4ad6</param>
|
||||
</service>
|
||||
</services>
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d58a0da145f6d6d333c35eedfba503ddcc273eeaa0646710121e3ee582d6b7a7
|
||||
size 287639
|
38
libyubikey-1.7-rpath-and-auto.patch
Normal file
38
libyubikey-1.7-rpath-and-auto.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
--- Makefile.am.orig
|
||||
+++ Makefile.am
|
||||
@@ -49,18 +49,18 @@ endif
|
||||
bin_PROGRAMS = modhex ykparse ykgenerate
|
||||
|
||||
modhex_SOURCES = modhex.c
|
||||
-modhex_LDADD = ./libyubikey.la
|
||||
+modhex_LDADD = libyubikey.la
|
||||
|
||||
ykparse_SOURCES = ykparse.c
|
||||
-ykparse_LDADD = ./libyubikey.la
|
||||
+ykparse_LDADD = libyubikey.la
|
||||
|
||||
ykgenerate_SOURCES = ykgenerate.c
|
||||
-ykgenerate_LDADD = ./libyubikey.la
|
||||
+ykgenerate_LDADD = libyubikey.la
|
||||
|
||||
# Self tests.
|
||||
|
||||
AM_LDFLAGS = -no-install
|
||||
-LDADD = libyubikey.la
|
||||
+#LDADD = libyubikey.la
|
||||
|
||||
check_PROGRAMS = selftest
|
||||
TESTS = $(check_PROGRAMS)
|
||||
--- configure.ac.orig
|
||||
+++ configure.ac
|
||||
@@ -38,7 +38,9 @@ AC_SUBST(LT_REVISION, 2)
|
||||
AC_SUBST(LT_AGE, 1)
|
||||
|
||||
AM_INIT_AUTOMAKE([-Wall -Werror])
|
||||
-AC_PROG_CC
|
||||
+AC_PROG_CC_STDC
|
||||
+AC_USE_SYSTEM_EXTENSIONS
|
||||
+AC_SYS_LARGEFILE
|
||||
AC_LIBTOOL_WIN32_DLL
|
||||
AC_PROG_LIBTOOL
|
||||
|
5
libyubikey.changes
Normal file
5
libyubikey.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 28 19:12:44 UTC 2011 - cristian.rodriguez@opensuse.org
|
||||
|
||||
- Initial package, version 1.7
|
||||
|
@@ -1,43 +1,77 @@
|
||||
Name: libyubikey
|
||||
Version: 1.4
|
||||
Release: 1%{?dist}
|
||||
Summary: Yubico's USB key low-level C library
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
Group: Applications/security
|
||||
License: GPL
|
||||
URL: http://code.google.com/p/yubico-c/
|
||||
Source0: http://yubico-c.googlecode.com/files/%{name}/%{name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: libusb
|
||||
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
|
||||
%configure
|
||||
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
|
||||
rm -rf %{buildroot}
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%make_install
|
||||
rm %{buildroot}%{_libdir}/*.la
|
||||
|
||||
%post
|
||||
%post -n libyubikey0 -p /sbin/ldconfig
|
||||
|
||||
|
||||
%postun
|
||||
%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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user