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
|
|
|
#
|
2014-07-23 14:09:28 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2013-10-28 13:54:06 +01:00
|
|
|
%define build_pskc 0
|
2011-02-05 15:46:34 +01:00
|
|
|
Name: oath-toolkit
|
2013-10-28 13:54:06 +01:00
|
|
|
Version: 2.4.0
|
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
|
2014-07-23 14:09:28 +02:00
|
|
|
License: GPL-3.0+
|
2011-02-05 15:46:34 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2014-07-23 14:09:28 +02:00
|
|
|
Url: http://www.nongnu.org/oath-toolkit/
|
2013-06-15 23:15:35 +02:00
|
|
|
Source: http://download.savannah.nongnu.org/releases/oath-toolkit/oath-toolkit-%{version}.tar.gz
|
2013-10-28 13:54:06 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: gengetopt
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkgconfig
|
2014-07-23 14:09:28 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-10-28 13:54:06 +01:00
|
|
|
%if %{build_pskc}
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: pkgconfig(xmlsec1)
|
|
|
|
%endif
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%description
|
2013-10-28 13:54:06 +01:00
|
|
|
The OATH Toolkit makes it easy to build one-time password
|
|
|
|
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
|
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/Networking/Security
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%description -n pam_oath
|
2013-10-28 13:54:06 +01:00
|
|
|
The OATH Toolkit makes it easy to build one-time password
|
|
|
|
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 liboath0
|
2013-10-28 13:54:06 +01:00
|
|
|
Summary: Library for Open AuTHentication (OATH) HOTP support
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Productivity/Networking/Security
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%description -n liboath0
|
2013-10-28 13:54:06 +01:00
|
|
|
The OATH Toolkit makes it easy to build one-time password
|
|
|
|
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
|
2013-10-28 13:54:06 +01:00
|
|
|
Summary: Library for Open AuTHentication (OATH) HOTP support -- Development Files
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Productivity/Networking/Security
|
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
|
2013-10-28 13:54:06 +01:00
|
|
|
The OATH Toolkit makes it easy to build one-time password
|
|
|
|
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.
|
|
|
|
|
|
|
|
%if %{build_pskc}
|
2014-07-23 14:09:28 +02:00
|
|
|
|
2013-10-28 13:54:06 +01:00
|
|
|
%package -n libpskc0
|
|
|
|
Summary: Library for Portable Symmetric Key Container
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Productivity/Networking/Security
|
2011-02-05 15:46:34 +01:00
|
|
|
|
2013-10-28 13:54:06 +01:00
|
|
|
%description -n libpskc0
|
|
|
|
The OATH Toolkit makes it easy to build one-time password
|
|
|
|
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.
|
|
|
|
|
|
|
|
%package -n libpskc-devel
|
|
|
|
Summary: Library for Portable Symmetric Key Container -- Development Files
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Productivity/Networking/Security
|
|
|
|
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
|
|
|
|
The OATH Toolkit makes it easy to build one-time password
|
|
|
|
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.
|
|
|
|
%endif
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --with-pam-dir=/%{_lib}/security \
|
2011-02-05 19:43:16 +01:00
|
|
|
--with-libgcrypt \
|
2011-02-05 15:46:34 +01:00
|
|
|
--disable-silent-rules \
|
|
|
|
--with-pic \
|
|
|
|
--disable-static
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2014-07-23 14:09:28 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
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
|
|
|
%if %{build_pskc}
|
2014-07-23 14:09:28 +02:00
|
|
|
|
2013-10-28 13:54:06 +01:00
|
|
|
%post -n libpskc0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libpskc0 -p /sbin/ldconfig
|
|
|
|
%endif
|
|
|
|
|
2011-02-05 15:46:34 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-10-28 13:54:06 +01:00
|
|
|
%doc ChangeLog NEWS README COPYING.summary 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
|
|
|
%if %{build_pskc}
|
|
|
|
%{_bindir}/pskctool
|
|
|
|
%{_mandir}/man1/pskctool.*
|
|
|
|
%endif
|
2011-02-05 15:46:34 +01:00
|
|
|
|
|
|
|
%files -n pam_oath
|
|
|
|
%defattr(-,root,root)
|
2013-10-28 13:54:06 +01:00
|
|
|
%doc pam_oath/COPYING pam_oath/README
|
2011-02-05 15:46:34 +01:00
|
|
|
/%{_lib}/security/pam_oath.so
|
|
|
|
|
|
|
|
%files -n liboath0
|
|
|
|
%defattr(-,root,root)
|
2013-10-28 13:54:06 +01:00
|
|
|
%doc liboath/COPYING
|
2011-02-05 15:46:34 +01:00
|
|
|
%{_libdir}/liboath.so.*
|
|
|
|
|
|
|
|
%files -n liboath-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_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
|
|
|
%if %{build_pskc}
|
2014-07-23 14:09:28 +02:00
|
|
|
|
2013-10-28 13:54:06 +01:00
|
|
|
%files -n libpskc0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
# there's no COPYING for libpskc, but it's LGPL, like liboath
|
|
|
|
%doc libpskc/README liboath/COPYING
|
|
|
|
%{_libdir}/libpskc.so.*
|
|
|
|
|
|
|
|
%files -n libpskc-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libpskc.so
|
|
|
|
%{_includedir}/libpskc/
|
|
|
|
%{_libdir}/pkgconfig/libpskc.pc
|
|
|
|
%doc %{_datadir}/gtk-doc/html/libpskc
|
|
|
|
%{_mandir}/man3/pskc_*
|
|
|
|
%endif
|
|
|
|
|
2011-02-05 15:46:34 +01:00
|
|
|
%changelog
|