* tests: add a test case for the ensure_ctdb_port_in_services func * sambacc: add a function to alter /etc/services for ctdb port * sambacc: add a ctdb port configuration value * samba_cmds: Switch ctdb to CommandArgs type * samba_cmds: Switch wbinfo to CommandArgs type * samba_cmds: Modify execute() to accept CommandArgs * tests: test session crypto info fetched from grpc server * grpc: add session crypto information to grpc server * grpc: add session crypto message to control.proto * tests: add test coverage for backend session crypto * grpc: add support for session crypto info to backend.py * grpc: remove junk values from backend Versions object * mergify: Restrict the addition of "priority-review" label * github: Update mergify rules with symbolic fedora test jobs * workflows: Dynamically detect fedora versions for test matrix * extras: update python-sambacc.spec for new grpc extra * tox.ini: include grpc libs for unit tests * setup.cfg: add new modules, entrypoint, extras * commands/remotecontrol: create remote control command * tests: add test_grpc_backend.py to test server backend module * tests: add test_grpc_server.py to test grpc server behavior * grpc: add server.py for managing the grpc server * grpc: add backend.py for interfacing with samba commands * grpc/generated: add generated grpc files * tox.ini: add new environments for generating grpc related files * grpc/protobufs: add initial .proto file * grpc: establish a location for grpc related code and files * tox.ini: support mypy checking for files using grpc libs * pyproject.toml: exclude generated files from mypy check OBS-URL: https://build.opensuse.org/package/show/network:samba:CONTAINERS/python-sambacc?expand=0&rev=12
79 lines
2.5 KiB
RPMSpec
79 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-sambacc
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global bname sambacc
|
|
|
|
Name: python-%{bname}
|
|
Version: v0.6+git.60.2f89a38
|
|
Release: 0
|
|
Summary: Samba Container Configurator
|
|
License: GPL-3.0-or-later
|
|
URL: https://github.com/samba-in-kubernetes/sambacc
|
|
Source: %{bname}-%{version}.tar.bz2
|
|
BuildArch: noarch
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python3-pyxattr
|
|
Requires: samba-python3
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Python library intended to act as a bridge between a container
|
|
environment and Samba servers and utilities. It aims to consolidate, coordinate and
|
|
automate all of the low level steps of setting up smbd, users, groups, and other
|
|
supporting components.
|
|
|
|
%package -n %{bname}
|
|
Summary: %{summary}
|
|
Requires: python3-%{bname}
|
|
|
|
%description -n %{bname}
|
|
A set of CLI tools intended to act as a bridge between a container
|
|
environment and Samba servers and utilities. It aims to consolidate, coordinate and
|
|
automate all of the low level steps of setting up smbd, users, groups, and other
|
|
supporting components.
|
|
|
|
%prep
|
|
%autosetup -n %{bname}-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/%{bname}-*.dist-info
|
|
%python_expand find %{buildroot}%{$python_sitelib} -name *.pyc -delete
|
|
sed -i 's;python%{python_version};python3;g' %{buildroot}/%{_bindir}/samba-container
|
|
sed -i 's;python%{python_version};python3;g' %{buildroot}/%{_bindir}/samba-dc-container
|
|
|
|
%files %{python_files}
|
|
%{python_sitelib}/%{bname}
|
|
|
|
%files -n %{bname}
|
|
%doc README.*
|
|
%{_bindir}/samba-container
|
|
%{_bindir}/samba-dc-container
|
|
%{_bindir}/samba-remote-control
|
|
%{_datadir}/%{bname}
|
|
|
|
%changelog
|