File branding-example.spec of Package branding-example

Name:           branding-example
Version:        11.0
Release:        0
License:        X11/MIT
Group:          System/Fhs
Source:         %{name}-COPYING
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Summary:        Example Brand File

%description
This package contains the file /etc/SuSE-brand, and its name is used as
a trigger for installation of correct vendor brand packages.

%prep
%setup -q -T -c
cp -a %{S:0} COPYING

%build
cat >SuSE-brand <<EOF
example
VERSION = %{version}
CO-BRANDS = upstream openSUSE
EOF

%install
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
cp SuSE-brand $RPM_BUILD_ROOT%{_sysconfdir}/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING
%{_sysconfdir}/SuSE-brand
openSUSE Build Service is sponsored by