|
Brian Stinson |
c92cef |
Name: centos-obsolete-packages
|
|
Brian Stinson |
c92cef |
# Please keep the version equal to the targeted CentOS release
|
|
Brian Stinson |
c92cef |
Version: 8
|
|
Brian Stinson |
c92cef |
Release: 1
|
|
Brian Stinson |
c92cef |
Summary: A package to obsolete retired packages
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
# This package has no actual content; there is nothing to license.
|
|
Brian Stinson |
c92cef |
License: Public Domain
|
|
Brian Stinson |
c92cef |
URL: https://www.centos.org/
|
|
Brian Stinson |
c92cef |
BuildArch: noarch
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
Source0: README
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
# ===============================================================================
|
|
Brian Stinson |
c92cef |
# Skip down below these convenience macros
|
|
Brian Stinson |
c92cef |
%define obsolete_ticket() %{lua:
|
|
Brian Stinson |
c92cef |
local ticket = rpm.expand('%1')
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
-- May need to declare the master structure
|
|
Brian Stinson |
c92cef |
if type(obs) == 'nil' then
|
|
Brian Stinson |
c92cef |
obs = {}
|
|
Brian Stinson |
c92cef |
end
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
if ticket == '%1' then
|
|
Brian Stinson |
c92cef |
rpm.expand('%{error:No ticket provided to obsolete_ticket}')
|
|
Brian Stinson |
c92cef |
end
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
if ticket == 'Ishouldfileaticket' then
|
|
Brian Stinson |
c92cef |
ticket = nil
|
|
Brian Stinson |
c92cef |
end
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
-- Declare a new set of obsoletes
|
|
Brian Stinson |
c92cef |
local index = #obs+1
|
|
Brian Stinson |
c92cef |
obs[index] = {}
|
|
Brian Stinson |
c92cef |
obs[index].ticket = ticket
|
|
Brian Stinson |
c92cef |
obs[index].list = {}
|
|
Brian Stinson |
c92cef |
}
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
%define obsolete() %{lua:
|
|
Brian Stinson |
c92cef |
local pkg = rpm.expand('%1')
|
|
Brian Stinson |
c92cef |
local ver = rpm.expand('%2')
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
if pkg == '%1' then
|
|
Brian Stinson |
c92cef |
rpm.expand('%{error:No package name provided to obsolete}')
|
|
Brian Stinson |
c92cef |
end
|
|
Brian Stinson |
c92cef |
if ver == '%2' then
|
|
Brian Stinson |
c92cef |
rpm.expand('%{error:No version provided to obsolete}')
|
|
Brian Stinson |
c92cef |
end
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
if not string.find(ver, '-') then
|
|
Brian Stinson |
c92cef |
rpm.expand('%{error:You must provide a version-release, not just a version.}')
|
|
Brian Stinson |
c92cef |
end
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
local o = pkg .. ' < ' .. ver
|
|
Brian Stinson |
c92cef |
print('Obsoletes: ' .. o)
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
-- Append this obsolete to the last set of obsoletes in the list
|
|
Brian Stinson |
c92cef |
local list = obs[#obs].list
|
|
Brian Stinson |
c92cef |
list[#list+1] = o
|
|
Brian Stinson |
c92cef |
}
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
%define list_obsoletes %{lua:
|
|
Brian Stinson |
c92cef |
local i
|
|
Brian Stinson |
c92cef |
local j
|
|
Brian Stinson |
c92cef |
for i = 1,#obs do
|
|
Brian Stinson |
c92cef |
for j = 1,#obs[i].list do
|
|
Brian Stinson |
c92cef |
print(' ' .. obs[i].list[j] .. '\\n')
|
|
Brian Stinson |
c92cef |
end
|
|
Brian Stinson |
c92cef |
if obs[i].ticket == nil then
|
|
Brian Stinson |
c92cef |
print(' (No ticket was provided!)\\n\\n')
|
|
Brian Stinson |
c92cef |
else
|
|
Brian Stinson |
c92cef |
print(' (See ' .. obs[i].ticket .. ')\\n\\n')
|
|
Brian Stinson |
c92cef |
end
|
|
Brian Stinson |
c92cef |
end
|
|
Brian Stinson |
c92cef |
}
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
# ========================================
|
|
Brian Stinson |
c92cef |
# Please place non-python2 Obsoletes: here
|
|
Brian Stinson |
c92cef |
# ========================================
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
# Erroneously added in 8.0
|
|
Brian Stinson |
c92cef |
%obsolete_ticket https://wiki.centos.org/Manuals/ReleaseNotes/CentOS8.1911
|
|
Brian Stinson |
c92cef |
%obsolete rpm 4.14.2-11.el8_0
|
|
Brian Stinson |
c92cef |
%obsolete binutils 2.30-58
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
# This package won't be installed, but will obsolete other packages
|
|
Brian Stinson |
c92cef |
Provides: libsolv-self-destruct-pkg()
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
%description
|
|
Brian Stinson |
c92cef |
This package exists only to obsolete other packages which need to be removed
|
|
Brian Stinson |
c92cef |
from the distribution for some reason.
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
Currently obsoleted packages:
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
%list_obsoletes
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
%prep
|
|
Brian Stinson |
c92cef |
%autosetup -c -T
|
|
Brian Stinson |
c92cef |
cp %SOURCE0 .
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
%files
|
|
Brian Stinson |
c92cef |
%doc README
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
|
|
Brian Stinson |
c92cef |
%changelog
|
|
Brian Stinson |
c92cef |
* Thu Jan 0 2020 Pablo Greco <pgreco@centosproroject.org> - 8-1
|
|
Brian Stinson |
c92cef |
- Obsolete packages with erroneous i686 in x86_64
|