File uyuni-storage-setup.spec of Package uyuni-storage-setup

#
# spec file for package uyuni-storage-setup
#
# 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/
#

# The productprettyname macros is controlled in the prjconf. If not defined, we fallback here
%{!?productprettyname: %global productprettyname Uyuni}

%global debug_package %{nil}
Name:           uyuni-storage-setup
Version:        5.2.0
Release:        0
Summary:        Tools for managing storage on %{productprettyname}
License:        GPL-3.0-only
Group:          System/Management
URL:            https://github.com/uyuni-project/uyuni
#!CreateArchive: %{name}
Source0: uyuni-storage-setup-git-1602.8675cc4.tar.gz

%description
Tools for managing storage on %{productprettyname} Server and Proxy

%package server
Summary:        Storage setup scripts for %{productprettyname} Server
Requires:       grep
Requires:       mgradm
Requires:       parted
Requires:       rsync
Requires:       util-linux
Requires:       xfsprogs
Conflicts:      %{name}-proxy

%description server
Scripts that help setting up %{productprettyname} Server storage after deployment.

%package proxy
Summary:        Storage setup scripts for %{productprettyname} Proxy
Requires:       grep
Requires:       mgrpxy
Requires:       parted
Requires:       rsync
Requires:       util-linux
Requires:       xfsprogs
Conflicts:      %{name}-server

%description proxy
Scripts that help setting up %{productprettyname} Proxy storage after deployment.

%prep
%autosetup -n uyuni-storage-setup-git-1602.8675cc4 -p1

%build

%install
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vd %{buildroot}%{_usr}/lib/susemanager/

install -m 755 scripts/mgr-storage-server %{buildroot}%{_bindir}/mgr-storage-server
install -m 755 scripts/mgr-storage-proxy %{buildroot}%{_bindir}/mgr-storage-proxy
install -m 755 scripts/susemanager-storage-setup-functions.sh %{buildroot}%{_usr}/lib/susemanager/

%files server
%doc README.md
%license LICENSE
%{_bindir}/mgr-storage-server
%{_usr}/lib/susemanager

%files proxy
%doc README.md
%license LICENSE
%{_bindir}/mgr-storage-proxy
%{_usr}/lib/susemanager

%changelog
openSUSE Build Service is sponsored by