File firewalld-rpcbind-helper.spec of Package firewalld-rpcbind-helper.12369

# spec file for package firewalld-rpcbind-helper
# Copyright (c) 2018 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

%define main_script
Name:           firewalld-rpcbind-helper
Version:        0.1
Release:        0
Summary:        Tool for static port assignment of NFSv3, ypserv, ypbind services
License:        GPL-2.0-or-later
Group:          Productivity/Networking/Security
Patch0:         shebang.patch
Patch1:         0001-main-script-fix-running-with-python3-need-to-decode.patch
Patch2:         0002-main-script-be-prepared-for-some-of-the-sysconfig-fi.patch
Patch3:         0003-main-script-fix-dict_values-object-does-not-support-.patch
Requires:       python3
Recommends:     firewalld
BuildArch:      noarch

This is a helper utility for the configuration of static NFSv3, ypserv and
ypbind network ports for use with firewalld.

%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

# nothing

mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_docdir}/%{name}
cp LICENSE %{buildroot}/%{_docdir}/%{name}
cp %{main_script} %{buildroot}/%{_bindir}/%{main_script}

%doc %{_docdir}/%{name}

openSUSE Build Service is sponsored by