File patterns-sle.spec of Package patterns-sle

#
# spec file for package patterns-sle
#
# 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-sle
BuildRequires:  perl(URI::Escape)
Summary:        Patterns for SLE
License:        GPL-2.0+
Group:          Metapackages
Version:        12
Release:        0
Url:            http://en.opensuse.org/Patterns
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  package-translations
Source0:        %name-rpmlintrc
Source2:        create_32bit-patterns_file.pl
Source3:        pre_checkin.sh
# the following files are used by include macros, and listed here to get them into the srpm.
Source10:       gnome.txt
# created by create_32bit-patterns_file.pl, contains the 32bit patterns
Source30:       pattern-definition-32bit.txt

%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)}

#BEGIN1
%package gnome-basic
%pattern_graphicalenvironments
Summary:        GNOME Desktop Environment
Group:          Metapackages
Provides:       pattern() = gnome-basic
Provides:       pattern-icon() = pattern-gnome
Provides:       pattern-order() = 2010
Provides:       pattern-visible()
Requires:       pattern() = basesystem
Requires:       pattern() = x11
%include %_sourcedir/gnome.txt

%description gnome-basic
The GNOME desktop environment is an intuitive and attractive desktop for users.

#END1

%prep
# empty on purpose

%install

#BEGIN2
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/patterns-sle/
echo 'This file marks the pattern gnome-basic to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns-sle/gnome-basic.txt
#END2

#BEGIN3
%files gnome-basic
%defattr(-,root,root)
%dir /usr/share/doc/packages/patterns-sle
/usr/share/doc/packages/patterns-sle/gnome-basic.txt

#END3
#BEGIN4
#
# This file is created at check-in time. Sorry for the inconsistent workflow :(
#
%include %_sourcedir/pattern-definition-32bit.txt
#END4

%changelog
openSUSE Build Service is sponsored by