File ykclient.spec of Package ykclient
#
# spec file for package
#
# Copyright (c) 2010 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ykclient
Version: 2.14
Release: 0
License: BSD-2-Clause
Summary: Online validation of Yubikey OTPs
Url: https://developers.yubico.com/
Group: Productivity/Networking/Security
Source: https://developers.yubico.com/yubico-c-client/Releases/ykclient-%{version}.tar.gz
BuildRequires: curl-devel
BuildRequires: pkgconfig
BuildRequires: help2man
Provides: yubico-c-client = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This project implements online validation of Yubikey OTPs.
It is written in C and provides a shared library for use by other software.
%package -n libykclient3
Summary: Online validation of Yubikey OTPs
Group: Productivity/Networking/Security
%description -n libykclient3
This project implements online validation of Yubikey OTPs.
It is written in C and provides a shared library for use by other software.
%package -n libykclient-devel
Summary: Online validation of Yubikey OTPs
Group: Development/Languages/C and C++
Requires: libykclient3 = %{version}
Requires: glibc-devel
%description -n libykclient-devel
This project implements online validation of Yubikey OTPs.ยท
It is written in C and provides a shared library for use by other software.
%prep
%setup -q
%build
%configure --disable-static --with-pic
make %{?_smp_mflags}
%install
%makeinstall
rm -rf %{buildroot}%{_libdir}/libykclient.la
%clean
%__rm -rf %{buildroot}
%post -n libykclient3 -p /sbin/ldconfig
%postun -n libykclient3 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/ykclient
%{_mandir}/man1/ykclient.1.gz
%files -n libykclient3
%defattr(-,root,root)
%{_libdir}/libykclient.so.*
%files -n libykclient-devel
%defattr(-,root,root)
%{_includedir}/ykclient.h
%{_includedir}/ykclient_errors.h
%{_includedir}/ykclient_server_response.h
%{_includedir}/ykclient_version.h
%{_libdir}/libykclient.so
%changelog