File oath-ldap-tool.spec of Package oath-ldap-tool
#
# spec file for package oath-ldap-tool
#
# Copyright (c) 2020 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/
#
%global modname oath-ldap-tool
%define skip_python2 1
Name: %{modname}
Version: 1.3.4
Release: 0
Summary: OATH-LDAP command-line tool
License: Apache-2.0
Group: Development/Libraries/Python
Url: https://oath-ldap.stroeder.com
Source0: https://pypi.io/packages/source/o/%{modname}/%{modname}-%{version}.tar.gz
Source1: https://pypi.io/packages/source/o/%{modname}/%{modname}-%{version}.tar.gz.asc
Source2: %{name}.keyring
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-setuptools
Requires: python3-ldap0 >= 1.0.0
Requires: python3-jwcrypto
Requires: python3-python-yubico >= 1.3.3
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Obsoletes: oathldap-tool
%description
Command-line tool for OATH-LDAP:
* generate OATH-LDAP master keys
* add Yubikey token entries
* initialize Yubikey for HOTP
%prep
%setup -q -n %{modname}-%{version}
%build
%python3_build
%install
%python3_install --install-data /
%fdupes %{buildroot}
%files
%defattr(-,root,root,-)
%{python3_sitelib}/*
%{_bindir}/oath-ldap-tool
%doc README.md
%license LICENSE
%changelog