File skelcd-control-openSUSE-livecd-xfce.spec of Package skelcd-control-openSUSE-livecd-xfce
#
# spec file for package skelcd-control-openSUSE-livecd-xfce
#
# Copyright (c) 2019 SUSE LINUX 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/
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
######################################################################
#
# IMPORTANT: Please do not change the control file or this spec file
# in build service directly, use
# https://github.com/yast/skelcd-control-openSUSE-livecd-xfce repository
#
# See https://github.com/yast/skelcd-control-openSUSE-livecd-xfce/blob/master/CONTRIBUTING.md
# for more details.
#
######################################################################
%define skelcd_name openSUSE-livecd-xfce
%define skelcd_control_dir /usr/lib/skelcd/CD1
Name: skelcd-control-%{skelcd_name}
BuildRequires: libxslt-tools
# xmllint (for validation)
BuildRequires: libxml2-tools
# Added skelcd macros
BuildRequires: yast2-installation-control >= 4.1.5
# Original openSUSE control file (FHS compliant)
BuildRequires: diffutils
BuildRequires: skelcd-control-openSUSE
# ignore the skelcd-control-openSUSE dependencies, they are not needed for building
#!BuildIgnore: autoyast2 yast2-add-on yast2-fcoe-client yast2-firewall yast2-installation
#!BuildIgnore: yast2-iscsi-client yast2-kdump yast2-multipath yast2-network yast2-nfs-client
#!BuildIgnore: yast2-ntp-client yast2-proxy yast2-qt-branding-openSUSE yast2-services-manager
#!BuildIgnore: yast2-configuration-management yast2-slp yast2-theme yast2-trans-stats yast2-tune
#!BuildIgnore: yast2-update yast2-users yast2-vm yast2-x11 rubygem(%{rb_default_ruby_abi}:byebug)
# Use FHS compliant path
Requires: yast2 >= 4.1.41
#
######################################################################
Url: https://github.com/yast/skelcd-control-openSUSE-livecd-xfce
AutoReqProv: off
Version: 1.0.0
Release: 0
Summary: openSUSE-livecd-xfce control file needed for installation
License: MIT
Group: Metapackages
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: xfce-changecontrolxml.xsl
%description
openSUSE-livecd-xfce control file needed for installation
%prep
%build
# transform ("patch") the original openSUSE installation file
xsltproc %{SOURCE0} %{skelcd_control_dir}/control.xml > control.xml
diff -u %{skelcd_control_dir}/control.xml control.xml || :
%check
#
# Verify syntax
#
#xmllint --noout --relaxng /usr/share/YaST2/control/control.rng control.xml
%install
#
# Add installation file
#
mkdir -p $RPM_BUILD_ROOT/%{skelcd_control_dir}
install -m 644 control.xml $RPM_BUILD_ROOT/%{skelcd_control_dir}/%{skelcd_name}.xml
%files
%defattr(644,root,root,755)
%{skelcd_control_dir}
%changelog