File oath-toolkit.spec of Package oath-toolkit_BR

#
# spec file for package
#
# Copyright (c) 2017 SUSE LINUX 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

%define sover 0

Name:		oath-toolkit
Version:	2.6.2
Release:	0
License:	GPL-3.0+ and LGPL-2.1+
Summary:	Build one-time password authentication systems
Url:		http://www.nongnu.org/oath-toolkit/
Group:		Productivity/Networking/Security
Source0:	https://download.savannah.nongnu.org/releases/oath-toolkit/oath-toolkit-%{version}.tar.gz
Source1:	https://download.savannah.nongnu.org/releases/oath-toolkit/oath-toolkit-%{version}.tar.gz.sig
Source100:	oath-toolkit.changes
Patch0:		oath-toolkit-return_nonvoid.patch
BuildRequires:	pam-devel libgcrypt-devel gtk-doc pkgconfig gengetopt bison
BuildRequires:	libxml2-devel
BuildRequires:	pkg-config
BuildRequires:	pkgconfig(xmlsec1-openssl)
BuildRequires:	libxslt-devel libtool autoconf automake openssl-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-build

%description

The oath toolkit makes it possible to build one-time password authentication systems.

%package -n oathtool
Summary:	Build one-time password authentication systems
Group:		Productivity/Networking/Security
License:	GPL-3.0+

%description -n oathtool

The oath toolkit makes it possible to build one-time password authentication systems.
This package contains the binary "oathtool" for building one-time passwords.

%package -n pam_oath
Summary:	Build one-time password authentication systems
Group:		Productivity/Networking/Security
License:	GPL-3.0+

%description -n pam_oath

The oath toolkit makes it possible to build one-time password authentication systems.
This package contains the pam module pam_oath.

%package -n liboath%{sover}
Summary:	Build one-time password authentication systems
Group:		Productivity/Networking/Security
License:	LGPL-2.1+

%description -n liboath%{sover}

The oath toolkit makes it possible to build one-time password authentication systems.
This package contains the shared library liboath%{sover}.

%package -n liboath-devel
Summary:	Build one-time password authentication systems
Group:		Development/Libraries/C and C++
License:	LGPL-2.1+
Requires:	liboath%{sover} = %{version}
Requires:	glibc-devel

%description -n liboath-devel

The oath toolkit makes it possible to build one-time password authentication systems.
This package contains files mandatory for building and linking packages against liboath%{sover}.

%package -n liboath-doc
Summary:	Documentation for the oath toolkit
Group:		Productivity/Networking/Security
BuildArch:	noarch

%description -n liboath-doc

The oath toolkit makes it possible to build one-time password authentication systems.
This package conatins documentation for the oath toolkit.

%package -n pskctool
Summary:	Portable Symmetric Key Container (PSKC) tool
Group:		Productivity/Networking/Security
License:	GPL-3.0+

%description -n pskctool

The oath toolkit makes it possible to build one-time password authentication systems.
This package contains pskctool which allows you to parse, print, validate, sign and verify PSKC data..

%package -n libpskc%{sover}
Summary:	Portable Symmetric Key Container (PSKC) library
Group:		Productivity/Networking/Security
License:	LGPL-2.1+

%description -n libpskc%{sover}

The oath toolkit makes it possible to build one-time password authentication systems.
This package contains the shared library libpskc%{sover}.

%package -n libpskc-devel
Summary:	Portable Symmetric Key Container (PSKC) development files
Group:		Development/Libraries/C and C++
License:	LGPL-2.1+
Requires:	libpskc%{sover} = %{version}
Requires:	glibc-devel

%description -n libpskc-devel

The oath toolkit makes it possible to build one-time password authentication systems.
This package contains files mandatory for building and linking packages against libpskc%{sover}.

%package -n libpskc-doc
Summary:	Documentation for PSKC
Group:		Productivity/Networking/Security
BuildArch:	noarch

%description -n libpskc-doc

The oath toolkit makes it possible to build one-time password authentication systems.
This package conatins documentation for the Portable Symmetric Key Container (PSKC).

%debug_package

%prep
%setup -q

%patch0 -p0

%build
%configure  --with-pam-dir=/%{_lib}/security \
            --with-libgcrypt \
            --disable-silent-rules \
            --with-pic \
            --enable-pskc \
            --disable-static

make %{?_smp_mflags}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -print -delete

%clean
%__rm -rf %{buildroot}

%post -n liboath%{sover} -p /sbin/ldconfig

%post -n libpskc%{sover} -p /sbin/ldconfig

%postun -n liboath%{sover} -p /sbin/ldconfig

%postun -n libpskc%{sover} -p /sbin/ldconfig

%files -n oathtool
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/oathtool
%{_mandir}/man1/oathtool.*.*

%files -n pam_oath
%defattr(-,root,root)
%doc pam_oath/README
/%{_lib}/security/pam_oath.so

%files -n liboath%{sover}
%defattr(-,root,root)
%{_libdir}/liboath.so.*
%{_mandir}/man3/oath*.*

%files -n liboath-devel
%defattr(-,root,root)
%{_libdir}/liboath.so
%dir %{_includedir}/liboath
%{_includedir}/liboath/oath.h
%{_libdir}/pkgconfig/liboath.pc

%files -n liboath-doc
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc/html/liboath
%{_datadir}/gtk-doc/html/liboath/*

%files -n pskctool
%defattr(-,root,root)
%{_bindir}/pskctool
%dir %{_datadir}/xml/pskc
%{_datadir}/xml/pskc/*
%{_mandir}/man1/pskctool.*.*

%files -n libpskc%{sover}
%defattr(-,root,root)
%doc libpskc/README
%{_libdir}/libpskc.so.*
%{_mandir}/man3/pskc*.*

%files -n libpskc-devel
%defattr(-,root,root)
%{_libdir}/libpskc.so
%dir %{_includedir}/pskc
%{_includedir}/pskc/*.h
%{_libdir}/pkgconfig/libpskc.pc

%files -n libpskc-doc
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc/html/libpskc
%{_datadir}/gtk-doc/html/libpskc/*

%changelog
openSUSE Build Service is sponsored by