File sle-module-packagehub-subpackages-release.spec of Package 000release-packages

# spec file for package sle-module-packagehub-subpackages-release (Version 15)
# Copyright (c) 2018 SUSE.
# 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

Name:           sle-module-packagehub-subpackages-release
%define         product sle-module-packagehub-subpackages
Summary:        Module to ship some SLE subpackages by PackageHub
Version:        15
Release:        0
License:        BSD-3-Clause
Group:          System/Fhs

Provides:       %name-%version
Provides:       product() = sle-module-packagehub-subpackages
Provides:       product(sle-module-packagehub-subpackages) = 15-0
Provides:       product-label() = PackageHub%2DSubpackages%2DModule
Provides:       product-cpeid() = cpe%3A%2Fo%3Asuse%3Asle%2Dmodule%2Dpackagehub%2Dsubpackages%3A15
Provides:       product-url(bugtracker) =
Provides:       product-endoflife()

Requires:       product(SUSE_SLE) >= 15
Requires:       product(sle-module-basesystem) >= 15

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

  This module is used to allow import of some subpackages from SLE in PackageHub



mkdir -p $RPM_BUILD_ROOT/etc/products.d
cat >$RPM_BUILD_ROOT/etc/products.d/ << EOF
<?xml version="1.0" encoding="UTF-8"?>
<product schemeversion="0">
  <summary>Module to ship some SLE subpackages by PackageHub</summary>
  This module is used to allow import of some subpackages from SLE in PackageHub
    <url name="bugtracker"></url>
    <releasepackage name="%{name}" flag="EQ" version="%{version}" release="%{release}"/>
  <productdependency relationship="requires" name="SUSE_SLE" baseversion="15" patchlevel="0" flag="GE"/>
  <productdependency relationship="requires" name="sle-module-basesystem" baseversion="15" patchlevel="0" flag="GE"/>


rm -rf %buildroot

%dir /etc/products.d

openSUSE Build Service is sponsored by