File _service:product_converter:Uyuni-Proxy-release.spec of Package 000product

#
# spec file for package Uyuni-Proxy-release
#
# Copyright (c) 2019 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 http://bugs.opensuse.org/
#


Name:           Uyuni-Proxy-release
Summary:        Uyuni Proxy 
License:        GPL-2.0-or-later
Group:          System/Fhs
Version:        2024.05
Release:        0

# FATE#320199 : default patterns
Provides:       defaultpattern(uyuni_proxy)

Provides:       %name-%version
Provides:       product() = Uyuni-Proxy
Provides:       product(Uyuni-Proxy) = 2024.05-0
Provides:       product-label() = Uyuni%20Proxy
Provides:       product-cpeid() = cpe%3A%2Fo%3Aopensuse%3Auyuni%2Dproxy%3A2024.05
Provides:       product-url(bugtracker) = https%3A%2F%2Fgithub.com%2Fuyuni%2Dproject%2Fuyuni%2Fissues%2F
Provides:       product-url(repository) = https%3A%2F%2Fdownload.opensuse.org%2Frepositories%2Fsystemsmanagement%3A%2FUyuni%3A%2FStable%2Fimages%2Frepo%2FUyuni%2DProxy%2DPOOL%2D%{_target_cpu}%2DMedia1


%if !(0%{?rhel})
Requires:       product(Leap) >= 15.5

%endif

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Uyuni Proxies extend large and/or geographically
dispersed Uyuni environments to reduce load on the Uyuni
Server, lower bandwidth needs, and provide faster local
updates.



%prep

%build

%install

mkdir -p %{buildroot}%{_sysconfdir}/products.d
cat >%{buildroot}%{_sysconfdir}/products.d/Uyuni-Proxy.prod << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
  <vendor>openSUSE</vendor>
  <name>Uyuni-Proxy</name>
  <version>2024.05</version>
  <release>0</release>
  <arch>%{_target_cpu}</arch>
  <cpeid>cpe:/o:opensuse:uyuni-proxy:2024.05</cpeid>
  <productline>uyuni-proxy</productline>
  <register>
    <pool>
    </pool>
    <updates>
    </updates>
  </register>
  <repositories>
  </repositories>
  <summary>Uyuni Proxy</summary>
  <shortsummary>Uyuni Proxy</shortsummary>
  <description>Uyuni Proxies extend large and/or geographically
dispersed Uyuni environments to reduce load on the Uyuni
Server, lower bandwidth needs, and provide faster local
updates.</description>
  <urls>
    <url name="bugtracker">https://github.com/uyuni-project/uyuni/issues/</url>
    <url name="repository">https://download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Stable/images/repo/Uyuni-Proxy-POOL-%{_target_cpu}-Media1</url>
  </urls>
  <buildconfig>
    <producttheme>openSUSE</producttheme>
  </buildconfig>
  <installconfig>
    <defaultlang>en_US</defaultlang>
    <datadir>suse</datadir>
    <descriptiondir>suse/setup/descr</descriptiondir>
    <releasepackage name="Uyuni-Proxy-release" flag="EQ" version="%{version}" release="%{release}"/>
    <distribution>openSUSE</distribution>
  </installconfig>
  <runtimeconfig/>
  <productdependency relationship="requires" name="Leap" version="15.5" flag="GE"/>
</product>

EOF



%clean
rm -rf %buildroot

%files
%defattr(644,root,root,755)
%dir /etc/products.d
/etc/products.d/*

%changelog
openSUSE Build Service is sponsored by