2011-02-05 15:46:34 +01:00
|
|
|
#
|
2014-07-23 14:09:28 +02:00
|
|
|
# spec file for package oath-toolkit
|
2011-02-05 15:46:34 +01:00
|
|
|
#
|
2018-04-13 22:15:21 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-02-05 15:46:34 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: oath-toolkit
|
2016-09-01 14:04:42 +02:00
|
|
|
Version: 2.6.2
|
2011-02-05 15:46:34 +01:00
|
|
|
Release: 0
|
2013-10-28 13:54:06 +01:00
|
|
|
Summary: Toolkit for one-time password authentication systems
|
2018-04-13 22:15:21 +02:00
|
|
|
License: GPL-3.0-or-later AND LGPL-2.1-or-later
|
2011-02-05 15:46:34 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2018-04-13 22:15:21 +02:00
|
|
|
URL: http://www.nongnu.org/oath-toolkit/
|
2018-01-19 09:10:23 +01:00
|
|
|
Source: http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
Patch1: 0001-Fix-no-return-in-nonvoid-function-errors-reported-by.patch
|
|
|
|
Patch2: 0002-update_gnulibs_files.patch
|
2013-10-28 13:54:06 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: gengetopt
|
|
|
|
BuildRequires: libgcrypt-devel
|
2018-04-13 22:15:21 +02:00
|
|
|
BuildRequires: libtool
|
2013-10-28 13:54:06 +01:00
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkgconfig
|
2018-04-13 22:15:21 +02:00
|
|
|
BuildRequires: pkgconfig(gtk-doc)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2013-10-28 13:54:06 +01:00
|
|
|
BuildRequires: pkgconfig(xmlsec1)
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%description
|
2018-04-18 21:47:04 +02:00
|
|
|
The OATH Toolkit makes it possible to build one-time password
|
2013-10-28 13:54:06 +01:00
|
|
|
authentication systems. It contains shared libraries, command line
|
|
|
|
tools and a PAM module. Supported technologies include the
|
|
|
|
event-based HOTP algorithm (RFC4226) and the time-based TOTP algorithm
|
|
|
|
(RFC6238). OATH stands for Open AuTHentication, which is the
|
|
|
|
organization that specify the algorithms. For managing secret key
|
|
|
|
files, the Portable Symmetric Key Container (PSKC) format described in
|
|
|
|
RFC6030 is supported.
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%package -n pam_oath
|
2013-10-28 13:54:06 +01:00
|
|
|
Summary: PAM module for pluggable login authentication for OATH
|
2018-04-13 22:15:21 +02:00
|
|
|
License: GPL-3.0-or-later
|
2013-10-28 13:54:06 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%description -n pam_oath
|
2018-04-18 21:47:04 +02:00
|
|
|
The OATH Toolkit makes it possible to build one-time password
|
|
|
|
authentication systems.
|
|
|
|
|
|
|
|
This subpackage contains a module to integrate OATH into PAM.
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%package -n liboath0
|
2013-10-28 13:54:06 +01:00
|
|
|
Summary: Library for Open AuTHentication (OATH) HOTP support
|
2018-04-13 22:15:21 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2018-04-18 21:47:04 +02:00
|
|
|
Group: System/Libraries
|
2018-04-11 15:06:01 +02:00
|
|
|
Requires: %{name}-xml >= %{version}
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%description -n liboath0
|
2018-04-18 21:47:04 +02:00
|
|
|
The OATH Toolkit makes it possible to build one-time password
|
|
|
|
authentication systems. Supported technologies include the
|
2013-10-28 13:54:06 +01:00
|
|
|
event-based HOTP algorithm (RFC4226) and the time-based TOTP algorithm
|
2018-04-18 21:47:04 +02:00
|
|
|
(RFC6238).
|
2011-02-05 15:46:34 +01:00
|
|
|
|
2018-04-11 15:06:01 +02:00
|
|
|
%package xml
|
2018-04-18 21:47:04 +02:00
|
|
|
Summary: XML data files needed by liboath
|
2018-04-13 22:15:21 +02:00
|
|
|
License: GPL-3.0-or-later AND LGPL-2.1-or-later
|
2018-04-18 21:47:04 +02:00
|
|
|
Group: Productivity/Networking/Security
|
2018-04-11 15:06:01 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description xml
|
2018-04-18 21:47:04 +02:00
|
|
|
The OATH Toolkit makes it possible to build one-time password
|
2018-04-11 15:06:01 +02:00
|
|
|
authentication systems. It contains shared libraries, command line
|
|
|
|
tools and a PAM module. Supported technologies include the
|
|
|
|
event-based HOTP algorithm (RFC4226) and the time-based TOTP algorithm
|
|
|
|
(RFC6238). OATH stands for Open AuTHentication, which is the
|
|
|
|
organization that specify the algorithms. For managing secret key
|
|
|
|
files, the Portable Symmetric Key Container (PSKC) format described in
|
|
|
|
RFC6030 is supported.
|
|
|
|
|
2011-02-05 15:46:34 +01:00
|
|
|
%package -n liboath-devel
|
2018-04-18 21:47:04 +02:00
|
|
|
Summary: Development files for the Open AuTHentication (OATH) HOTP support library
|
2018-04-13 22:15:21 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2016-09-01 14:04:42 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-02-05 15:46:34 +01:00
|
|
|
Requires: glibc-devel
|
2014-07-23 14:09:28 +02:00
|
|
|
Requires: liboath0 = %{version}
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%description -n liboath-devel
|
2018-04-18 21:47:04 +02:00
|
|
|
The OATH Toolkit makes it possible to build one-time password
|
|
|
|
authentication systems.
|
|
|
|
|
|
|
|
This subpackage contains the header files for the HOTP/TOTP library.
|
2013-10-28 13:54:06 +01:00
|
|
|
|
|
|
|
%package -n libpskc0
|
|
|
|
Summary: Library for Portable Symmetric Key Container
|
2018-04-13 22:15:21 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2018-04-18 21:47:04 +02:00
|
|
|
Group: System/Libraries
|
2011-02-05 15:46:34 +01:00
|
|
|
|
2013-10-28 13:54:06 +01:00
|
|
|
%description -n libpskc0
|
2018-04-18 21:47:04 +02:00
|
|
|
The OATH Toolkit makes it possible to build one-time password
|
|
|
|
authentication systems.
|
|
|
|
|
|
|
|
For managing secret key files, the Portable Symmetric Key Container
|
|
|
|
(PSKC) format described in RFC6030 is supported.
|
2013-10-28 13:54:06 +01:00
|
|
|
|
|
|
|
%package -n libpskc-devel
|
2018-04-18 21:47:04 +02:00
|
|
|
Summary: Development files for the Portable Symmetric Key Container library
|
2018-04-13 22:15:21 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2016-09-01 14:04:42 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-10-28 13:54:06 +01:00
|
|
|
Requires: glibc-devel
|
2014-07-23 14:09:28 +02:00
|
|
|
Requires: libpskc0 = %{version}
|
2013-10-28 13:54:06 +01:00
|
|
|
|
|
|
|
%description -n libpskc-devel
|
2018-04-18 21:47:04 +02:00
|
|
|
The OATH Toolkit makes it possible to build one-time password
|
|
|
|
authentication systems.
|
|
|
|
|
|
|
|
For managing secret key files, the Portable Symmetric Key Container
|
|
|
|
(PSKC) format described in RFC6030 is supported.
|
|
|
|
|
|
|
|
This subpackage contains the headers for this library.
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-01-19 09:10:23 +01:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%build
|
2018-04-13 22:15:21 +02:00
|
|
|
autoreconf -fiv
|
|
|
|
%configure \
|
|
|
|
--with-pam-dir=/%{_lib}/security \
|
|
|
|
--with-libgcrypt \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--disable-static
|
|
|
|
%make_build
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%install
|
2018-04-13 22:15:21 +02:00
|
|
|
%make_install
|
2013-10-28 13:54:06 +01:00
|
|
|
mv COPYING COPYING.summary
|
2014-07-23 14:09:28 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%post -n liboath0 -p /sbin/ldconfig
|
|
|
|
%postun -n liboath0 -p /sbin/ldconfig
|
2013-10-28 13:54:06 +01:00
|
|
|
%post -n libpskc0 -p /sbin/ldconfig
|
|
|
|
%postun -n libpskc0 -p /sbin/ldconfig
|
|
|
|
|
2011-02-05 15:46:34 +01:00
|
|
|
%files
|
2018-04-13 22:15:21 +02:00
|
|
|
%license COPYING.summary
|
|
|
|
%doc ChangeLog NEWS README
|
2018-04-11 13:57:33 +02:00
|
|
|
%license oathtool/COPYING
|
2011-02-05 15:46:34 +01:00
|
|
|
%{_bindir}/oathtool
|
2013-06-15 23:15:35 +02:00
|
|
|
%{_mandir}/man1/oathtool.*
|
2013-10-28 13:54:06 +01:00
|
|
|
%{_bindir}/pskctool
|
|
|
|
%{_mandir}/man1/pskctool.*
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%files -n pam_oath
|
2018-04-11 13:57:33 +02:00
|
|
|
%doc pam_oath/README
|
2018-04-13 22:15:21 +02:00
|
|
|
%license pam_oath/COPYING
|
2011-02-05 15:46:34 +01:00
|
|
|
/%{_lib}/security/pam_oath.so
|
|
|
|
|
|
|
|
%files -n liboath0
|
2018-04-11 13:57:33 +02:00
|
|
|
%license liboath/COPYING
|
2011-02-05 15:46:34 +01:00
|
|
|
%{_libdir}/liboath.so.*
|
2018-04-11 15:06:01 +02:00
|
|
|
|
|
|
|
%files xml
|
2016-09-01 14:04:42 +02:00
|
|
|
%{_datadir}/xml/pskc/
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%files -n liboath-devel
|
|
|
|
%{_libdir}/liboath.so
|
2013-10-28 13:54:06 +01:00
|
|
|
%{_includedir}/liboath/
|
2011-02-05 15:46:34 +01:00
|
|
|
%{_libdir}/pkgconfig/liboath.pc
|
2013-06-15 23:15:35 +02:00
|
|
|
%doc %{_datadir}/gtk-doc/html/liboath
|
|
|
|
%{_mandir}/man3/oath_*
|
2011-02-05 15:46:34 +01:00
|
|
|
|
2013-10-28 13:54:06 +01:00
|
|
|
%files -n libpskc0
|
|
|
|
# there's no COPYING for libpskc, but it's LGPL, like liboath
|
2018-04-11 13:57:33 +02:00
|
|
|
%doc libpskc/README
|
|
|
|
%license liboath/COPYING
|
2013-10-28 13:54:06 +01:00
|
|
|
%{_libdir}/libpskc.so.*
|
|
|
|
|
|
|
|
%files -n libpskc-devel
|
|
|
|
%{_libdir}/libpskc.so
|
2016-09-01 14:04:42 +02:00
|
|
|
%{_includedir}/pskc/
|
2013-10-28 13:54:06 +01:00
|
|
|
%{_libdir}/pkgconfig/libpskc.pc
|
|
|
|
%doc %{_datadir}/gtk-doc/html/libpskc
|
|
|
|
%{_mandir}/man3/pskc_*
|
|
|
|
|
2011-02-05 15:46:34 +01:00
|
|
|
%changelog
|