# # spec file for package spacewalk-utils # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2008-2018 Red Hat, Inc. # # 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/ # Name: spacewalk-utils Version: 5.1.0 Release: 0.git.18133.9f7a168 Summary: Utilities that may be run against a SUSE Manager/Uyuni server License: GPL-2.0-only AND GPL-3.0-or-later Group: Productivity/Other URL: https://github.com/uyuni-project/uyuni Source0: spacewalk-utils-git-18133.996b22c.tar.gz BuildRequires: docbook-utils BuildRequires: fdupes BuildRequires: make BuildRequires: python3 BuildRequires: python3-rpm-macros BuildRequires: uyuni-base-common # Required by depsolver.py Requires: (python3-PyYAML or python3-pyyaml) # Required by spacewalk-hostname-rename Requires: bash # Required by spacewalk-hostname-rename Requires: cobbler # Required by spacewalk-hostname-rename Requires: iproute # Required by spacewalk-hostname-rename Requires: perl-Satcon # Required by depsolver.py Requires: python3-solv # Required by depsolver.py, cloneByDate.py, spacewalk-common-channels Requires: python3-uyuni-common-libs # Required by spacewalk-hostname-rename Requires: rpm # Required by spacewalk-hostname-rename Requires: spacewalk-admin # Required by cloneByDate.py, spacewalk-clone-by-date, spacewalk-common-channels Requires: spacewalk-backend # Required by cloneByDate.py Requires: spacewalk-backend-sql # Required by cloneByDate.py, depsolver.py Requires: spacewalk-backend-tools >= 2.2.27 # Required by spacewalk-hostname-rename Requires: spacewalk-certs-tools # Required by spacewalk-hostname-rename Requires: spacewalk-config # Required by spacewalk-export Requires: spacewalk-reports # Required by spacewalk-hostname-rename Requires: spacewalk-setup # Required by spacewalk-hostname-rename (provides /usr/bin/spacewalk-sql) Requires: susemanager-schema # Required by cloneByDate.py, depsolver.py,spacewalk-clone-by-date Requires(pre): uyuni-base-common BuildArch: noarch %if 0%{?suse_version} Requires: perl = %{perl_version} %else Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %endif %description Utilities that may be run against a SUSE Manager server (supported) or an Uyuni server %package extras Summary: Extra utilities that may run against a SUSE Manager/Uyuni server # Required by spacewalk-watch-channel-sync.sh Group: Productivity/Other Requires: bash # Required by sw-ldap-user-sync Requires: python3-PyYAML # Required by taskotop Requires: python3-curses # Required by sw-ldap-user-sync Requires: python3-ldap # Required by migrate-system-profile Requires: python3-rhnlib >= 2.5.20 # Required by migrateSystemProfile.py, systemSnapshot.py Requires: python3-uyuni-common-libs # Required by spacewalk-manage-snapshots, systemSnapshot.py Requires: spacewalk-backend # Required by taskotop Requires: spacewalk-backend-sql # Required by spacewalk-final-archive, spacewalk-watch-channel-sync.sh Requires: spacewalk-backend-tools >= 2.2.27 # As spacewalk-utils owns {python3_sitelib}/utils Requires: spacewalk-utils # Required by migrate-system-profile, migrateSystemProfile.py, spacewalk-export-channels, spacewalk-manage-snapshots, sw-system-snapshot, systemSnapshot.py Requires(pre): uyuni-base-common %description extras Extra utilities that may be run against a SUSE Manager server (unsupported) or an Uyuni server %prep %setup -q -n spacewalk-utils-git-18133.996b22c %build make all %install make install PREFIX=%{buildroot} ROOT=%{python3_sitelib} \ MANDIR=%{_mandir} pushd %{buildroot} %if 0%{?suse_version} %py3_compile -O %{buildroot}%{python3_sitelib} %fdupes %{buildroot}%{python3_sitelib} %else %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib} %endif popd %check %files %defattr(-,root,root) %license COPYING.GPLv2 COPYING.GPLv3 %attr(755,root,root) %{_bindir}/spacewalk-common-channels %attr(755,root,root) %{_bindir}/spacewalk-clone-by-date %attr(755,root,root) %{_bindir}/spacewalk-hostname-rename %attr(755,root,root) %{_bindir}/spacewalk-manage-channel-lifecycle %attr(755,root,root) %{_bindir}/spacewalk-sync-setup %config %{_sysconfdir}/rhn/spacewalk-common-channels.ini %dir %{python3_sitelib}/utils %{python3_sitelib}/utils/__init__.py* %{python3_sitelib}/utils/systemSnapshot.py* %{python3_sitelib}/utils/cloneByDate.py* %{python3_sitelib}/utils/depsolver.py* %dir %{python3_sitelib}/utils/__pycache__ %{python3_sitelib}/utils/__pycache__/__init__.* %{python3_sitelib}/utils/__pycache__/systemSnapshot.* %{python3_sitelib}/utils/__pycache__/cloneByDate.* %{python3_sitelib}/utils/__pycache__/depsolver.* %{_mandir}/man8/spacewalk-clone-by-date.8%{?ext_man} %{_mandir}/man8/spacewalk-hostname-rename.8%{?ext_man} %{_mandir}/man8/spacewalk-sync-setup.8%{?ext_man} %files extras %defattr(-,root,root) %license COPYING.GPLv2 COPYING.GPLv3 %attr(755,root,root) %{_bindir}/delete-old-systems-interactive %attr(755,root,root) %{_bindir}/migrate-system-profile %attr(755,root,root) %{_bindir}/spacewalk-api %attr(755,root,root) %{_bindir}/spacewalk-export %attr(755,root,root) %{_bindir}/spacewalk-export-channels %attr(755,root,root) %{_bindir}/spacewalk-final-archive %attr(755,root,root) %{_bindir}/spacewalk-manage-snapshots %attr(755,root,root) %{_bindir}/spacewalk-watch-channel-sync.sh %attr(755,root,root) %{_bindir}/sw-ldap-user-sync %attr(755,root,root) %{_bindir}/sw-system-snapshot %attr(755,root,root) %{_bindir}/taskotop %{python3_sitelib}/utils/migrateSystemProfile.py* %{python3_sitelib}/utils/__pycache__/migrateSystemProfile.* %config(noreplace) %{_sysconfdir}/rhn/sw-ldap-user-sync.conf %{_mandir}/man8/delete-old-systems-interactive.8%{?ext_man} %{_mandir}/man8/migrate-system-profile.8%{?ext_man} %{_mandir}/man8/spacewalk-api.8%{?ext_man} %{_mandir}/man8/spacewalk-export-channels.8%{?ext_man} %{_mandir}/man8/spacewalk-export.8%{?ext_man} %{_mandir}/man8/spacewalk-final-archive.8%{?ext_man} %{_mandir}/man8/spacewalk-manage-snapshots.8%{?ext_man} %{_mandir}/man8/sw-system-snapshot.8%{?ext_man} %{_mandir}/man8/taskotop.8%{?ext_man} %changelog