# # spec file for package uyuni-setup-reportdb # # Copyright (c) 2024 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/ # Name: uyuni-setup-reportdb Version: 5.0.3 Release: 1.git.16581.a20152c Summary: Tools to setup PostgreSQL database as reporting DB for Uyuni and SUSE Manager License: GPL-2.0-only Group: Applications/System URL: https://github.com/uyuni-project/uyuni Source0: uyuni-setup-reportdb-git-16581.b451cf8.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %if 0%{?suse_version} # Actual version set by prjconf, default is 14 %{!?postgresql_version_min: %global postgresql_version_min 14} %{!?postgresql_version_max: %global postgresql_version_max 15} Requires: postgresql-contrib-implementation >= %{postgresql_version_min} Requires: postgresql-server-implementation >= %{postgresql_version_min} Conflicts: postgresql-contrib-implementation > %{postgresql_version_max} Conflicts: postgresql-server-implementation > %{postgresql_version_max} %else Requires: postgresql-contrib >= 12 Requires: postgresql-server > 12 %endif Requires: lsof Requires: susemanager-schema-utility Requires: uyuni-reportdb-schema %description Script, which will setup PostgreSQL database as reporting DB for Uyuni and SUSE Manager Server %prep %setup -q -n uyuni-setup-reportdb-git-16581.b451cf8 %build %install install -d -m 755 %{buildroot}/%{_bindir} install -m 0755 bin/* %{buildroot}/%{_bindir} %files %defattr(-,root,root,-) %license LICENSE %attr(755,root,root) %{_bindir}/uyuni-setup-reportdb %attr(755,root,root) %{_bindir}/uyuni-setup-reportdb-user %attr(755,root,root) %{_bindir}/uyuni-sort-pg_hba #%{_mandir}/man1/* %changelog