2011-01-28 19:12:39 +00:00
|
|
|
#
|
2015-01-19 11:16:58 +00:00
|
|
|
# spec file for package libyubikey
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2011-01-28 19:12:39 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-01-28 18:01:03 +00:00
|
|
|
|
2015-01-19 11:16:58 +00:00
|
|
|
|
2011-01-28 19:12:39 +00:00
|
|
|
Name: libyubikey
|
2015-03-29 10:43:35 +00:00
|
|
|
Version: 1.13
|
2015-01-19 11:16:58 +00:00
|
|
|
Release: 0
|
2011-01-28 19:12:39 +00:00
|
|
|
Summary: Yubico's USB key low-level C library
|
2015-01-19 11:16:58 +00:00
|
|
|
License: BSD-2-Clause
|
2011-01-28 19:12:39 +00:00
|
|
|
Group: Productivity/Networking/Security
|
2015-01-19 11:16:58 +00:00
|
|
|
Url: https://developers.yubico.com/
|
|
|
|
# a different tarball is available from github. It will not build with this spec file
|
|
|
|
Source0: https://developers.yubico.com/yubico-c/Releases/%{name}-%{version}.tar.gz
|
2011-01-28 19:12:39 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-01-28 18:01:03 +00:00
|
|
|
|
|
|
|
%description
|
2011-01-28 19:12:39 +00:00
|
|
|
|
|
|
|
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
|
2014-10-03 19:27:15 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-01-19 11:16:58 +00:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libyubikey0 = %{version}
|
2011-01-28 19:12:39 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
2011-01-28 18:01:03 +00:00
|
|
|
Low-level library for decrypting and parsing Yubikey One-Time Passwords (OTP) in C.
|
|
|
|
|
2015-01-19 11:16:58 +00:00
|
|
|
%package tools
|
|
|
|
Summary: Tools to support Yubico's USB key low-level C library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libyubikey0 = %{version}
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
|
|
|
|
Binary tools to support Yubico's Low-level library for decrypting and parsing Yubikey One-Time Passwords (OTP) in C.
|
|
|
|
|
2011-01-28 18:01:03 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2011-01-28 19:12:39 +00:00
|
|
|
%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
|
|
|
|
|
2011-01-28 18:01:03 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
2015-01-19 11:16:58 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-01-28 18:01:03 +00:00
|
|
|
|
2011-01-28 19:12:39 +00:00
|
|
|
%post -n libyubikey0 -p /sbin/ldconfig
|
2011-01-28 18:01:03 +00:00
|
|
|
|
2011-01-28 19:12:39 +00:00
|
|
|
%postun -n libyubikey0 -p /sbin/ldconfig
|
2011-01-28 18:01:03 +00:00
|
|
|
|
2015-01-19 11:16:58 +00:00
|
|
|
%files tools
|
2011-01-28 18:01:03 +00:00
|
|
|
%defattr(-,root,root,-)
|
2015-04-01 08:05:41 +00:00
|
|
|
%doc COPYING AUTHORS NEWS
|
2011-01-28 19:12:39 +00:00
|
|
|
%{_bindir}/modhex
|
|
|
|
%{_bindir}/ykgenerate
|
|
|
|
%{_bindir}/ykparse
|
2014-10-03 19:27:15 +00:00
|
|
|
%{_mandir}/man1/*
|
2011-01-28 18:01:03 +00:00
|
|
|
|
2011-01-28 19:12:39 +00:00
|
|
|
%files -n libyubikey0
|
|
|
|
%defattr(-,root,root,-)
|
2015-04-01 08:05:41 +00:00
|
|
|
%doc COPYING AUTHORS NEWS
|
2011-01-28 19:12:39 +00:00
|
|
|
%{_libdir}/libyubikey.so.*
|
2011-01-28 18:01:03 +00:00
|
|
|
|
2011-01-28 19:12:39 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2015-04-01 08:05:41 +00:00
|
|
|
%doc COPYING AUTHORS NEWS
|
2011-01-28 19:12:39 +00:00
|
|
|
%{_libdir}/libyubikey.so
|
|
|
|
%{_includedir}/yubikey.h
|
2011-01-28 18:01:03 +00:00
|
|
|
|
2011-01-28 19:12:39 +00:00
|
|
|
%changelog
|