File package-lists-openSUSE.spec of Package package-lists-openSUSE
#
# spec file for package package-lists-openSUSE
#
# Copyright (c) 2011 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/
#
Url: http://en.opensuse.org/Patterns
Name: package-lists-openSUSE
License: BSD3c
Group: Metapackages
AutoReqProv: on
Summary: Patterns for Installation (full ftp tree)
Version: 11.4
Release: 14.<RELEASE6>
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# ~coolo/Export/Paketlisten/filelists.tar.bz2
Source: filelists.tar.bz2
Source1: list-requires
Source2: package-lists-openSUSE-rpmlintrc
%define __find_requires perl %{S:1}
%define _use_internal_dependency_generator 0
ExclusiveArch: %ix86 x86_64
%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.
%package GNOME-cd
License: BSD3c
Summary: Patterns for Installation (GNOME CD)
Group: Metapackages
%description GNOME-cd
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.
%package KDE-cd
License: BSD3c
Summary: Patterns for Installation (KDE CD)
Group: Metapackages
%description KDE-cd
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.
%package X11-cd
License: BSD3c
Summary: Patterns for Installation (full ftp tree)
Group: Metapackages
%description X11-cd
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.
%package images
License: BSD3c
Summary: Patterns for Installation (KDE CD)
Group: Metapackages
%description images
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.
%package all
License: BSD3c
Summary: Package with all package lists
Group: Metapackages
AutoReq: off
%description all
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.
%prep
%setup -c
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr/share/suse/packages
# useful defaults for strange archs :)
echo "gnome-session" > $RPM_BUILD_ROOT/usr/share/suse/packages/gnome_cd.%{_target_cpu}.list
echo "kde4-kpat" > $RPM_BUILD_ROOT/usr/share/suse/packages/kde4_cd.%{_target_cpu}.list
touch dvd-all.%{_target_cpu}.list
touch kde4_cd-default.%{_target_cpu}.list
for i in output/opensuse/*.%{_target_cpu}.list; do
install -m 644 $i $RPM_BUILD_ROOT/usr/share/suse/packages
done
%files GNOME-cd
%defattr(-,root,root)
%dir /usr/share/suse
%dir /usr/share/suse/packages
/usr/share/suse/packages/gnome_cd.*.list
/usr/share/suse/packages/x11_cd-initrd.*.list
%exclude /usr/share/suse/packages/*-default*.list
%files KDE-cd
%defattr(-,root,root)
%dir /usr/share/suse
%dir /usr/share/suse/packages
/usr/share/suse/packages/kde4_cd.*.list
/usr/share/suse/packages/x11_cd-initrd.*.list
%exclude /usr/share/suse/packages/*-default*.list
%files X11-cd
%defattr(-,root,root)
%dir /usr/share/suse
%dir /usr/share/suse/packages
/usr/share/suse/packages/x11_cd.*.list
/usr/share/suse/packages/x11_cd-initrd.*.list
%exclude /usr/share/suse/packages/*-default*.list
%files images
%defattr(-,root,root)
%dir /usr/share/suse
%dir /usr/share/suse/packages
/usr/share/suse/packages/*-default*.list
%files all
%defattr(-,root,root)
/usr/share/suse/packages
%changelog