File patterns-lp.spec of Package patterns-lp

#
# spec file for package patterns-lp
#
# Copyright (c) 2014 SUSE LINUX Products 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:           patterns-lp
BuildRequires:  package-translations
BuildRequires:  patterns-rpm-macros
BuildRequires:  perl(URI::Escape)
Summary:        Patterns for SLE Live Patching
License:        MIT
Group:          Metapackages
Version:        15.1.0
Release:        0
Url:            http://en.opensuse.org/Patterns
Source0:        %{name}-rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Conflicts:      patterns-openSUSE-dvd5 patterns-openSUSE-dvd9 patterns-openSUSE-cd patterns-openSUSE-addon-non-oss patterns-openSUSE-GNOME-cd patterns-openSUSE-KDE-cd

%description
This is an internal package that is used to create the patterns as part
of the installation source setup.  Installation of this package does
not make sense.

%{expand:%(perl /usr/share/package-translations/create_macros)}

%package lp_sles
%pattern_primaryfunctions
Summary:        Live Patching
Group:          Metapackages
Provides:       pattern() = lp_sles
Provides:       pattern-icon() = pattern-kernel-devel
Provides:       pattern-order() = 3000
Provides:       pattern-visible()
Requires:       kernel-livepatch-tools
Requires:       sle-module-live-patching-release
Recommends:     kernel-livepatch-manual_en
Recommends:	sles-kernel_livepatch_en-pdf

%description lp_sles
Provide tools and patches to fix kernel at runtime.

%prep

%build

%install
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/%name/
echo 'This file marks the pattern lp_sles to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/%name/lp_sles.txt

%files

%files lp_sles
%defattr(-,root,root)
%dir /usr/share/doc/packages/%name
/usr/share/doc/packages/%name/lp_sles.txt

%changelog
openSUSE Build Service is sponsored by