* Wed Mar 27 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-4.sme

- removing yum_repositories related elements [SME: 12558]
master 11_0_0-4_el8_sme
Jean-Philippe Pialasse 2 months ago
parent 9ea30d9612
commit d65a356023

@ -1,26 +0,0 @@
{
my @add = split(/[,; ]+/, 'CENTOS_EXCLUDES');
my %remove = map { $_ => 1 } split(/[,; ]+/, 'CENTOS_REMOVE');
for my $name ( qw(base updates) )
{
my $repo = $DB->get($name) or next;
my @exclude = split(/,/, $repo->prop('Exclude') || '');
push @exclude, @add;
@exclude = grep(!defined $remove{$_} && !/^CENTOS_/, @exclude);
# remove duplicates
undef %saw;
@exclude = grep(!$saw{$_}++, @exclude);
if ($#exclude >= 0)
{
$repo->set_prop('Exclude', join(',', @exclude));
}
else
{
$repo->delete('Exclude');
}
}
}

@ -4,15 +4,7 @@ Summary: SME Server module to display support and licensing information
%define name smeserver-support
Name: %{name}
%define version 11.0.0
%define release 3
# These packages come from CentOS, but we need to use care when
# updating them - either we've patched them, or we need to do something
# prior to taking the update
# TODO: check mkinitrd,mdadm to see if needed
%define centos_excludes initscripts,libgsf
%define centos_remove kernel,kernel-smp,kernel-xenU,mkinitrd,mdadm,openssl,samba,samba-client,samba-client-libs,samba-common,samba-common-libs,samba-common-tools,samba-libs,samba*,libsmbclient,libwbclient,libtevent,python-tevent
%define release 4
Version: %{version}
Release: %{release}%{?dist}
@ -96,6 +88,9 @@ Requires: mc
Requires: psacct
%changelog
* Wed Mar 27 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-4.sme
- removing yum_repositories related elements [SME: 12558]
* Sat Mar 23 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-3.sme
- drop dmraid support [SME: 12522]
- drop prelink support [SME: 12523]
@ -952,14 +947,6 @@ perl createlinks
ln -s initial.cgi root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/index.cgi
find root/ -type f | xargs grep -l ____COPYYEARS____ | xargs sed -i -e 's/____COPYYEARS____/%{copykooz}/g'
YUM_REPOS=root/etc/e-smith/db/yum_repositories/
for dir in base updates
do
mkdir -p $YUM_REPOS/defaults/$dir
echo %{centos_excludes} > $YUM_REPOS/defaults/$dir/Exclude
done
sed -i 's/CENTOS_EXCLUDES/%{centos_excludes}/' $YUM_REPOS/migrate/25CentOSExcludes
sed -i 's/CENTOS_REMOVE/%{centos_remove}/' $YUM_REPOS/migrate/25CentOSExcludes
%install
rm -rf $RPM_BUILD_ROOT

Loading…
Cancel
Save