dummy-release/dummy-release.spec

72 lines
2.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package dummy-release (Version 11)
#
# Copyright (c) 2008 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/
#
# norootforbuild
Name: dummy-release
%define product SUSE_SLES
%define flavor DVD
%define real_version %{version}
%define ncc_target sle-11
License: BSD 3-Clause
Group: System/Fhs
Version: 11
Release: 3
Provides: distribution-release
Conflicts: openSUSE-release sled-release sles-release
AutoReqProv: on
Summary: SuSE release version files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains the files: /etc/SuSE-release, /etc/issue,
/etc/issue.net, and /etc/products.d/openSUSE.prod
Authors:
--------
ro@suse.de
%prep
%build
%install
mkdir -p $RPM_BUILD_ROOT/etc
echo -e "\nWelcome to Dummy Product - Kernel \\\r (\\\l).\n\n" > $RPM_BUILD_ROOT/etc/issue
echo -e "Welcome to Dummy Product (%{_target_cpu}) - Kernel %%r (%%t)." > $RPM_BUILD_ROOT/etc/issue.net
echo "Dummy Product (%{_target_cpu})" > $RPM_BUILD_ROOT/etc/SuSE-release
touch $RPM_BUILD_ROOT/etc/motd
%files
%defattr(644,root,root,755)
/etc/SuSE-release
%config(noreplace) /etc/motd
%config(noreplace) /etc/issue
%config(noreplace) /etc/issue.net
%changelog
* Thu Oct 30 2008 ro@suse.de
- provide distribution-release and conflict with the most common
other instances
* Tue Sep 30 2008 ro@suse.de
- drop buildreq for skelcd-control-SLES
* Fri Sep 19 2008 ro@suse.de
- dummy package containing /etc/SuSE-release