Add Provides/Obsoletes to support “cmap-resources” retirement

This commit is contained in:
Benjamin A. Beasley 2021-10-14 19:46:04 -04:00
parent 6207c7995b
commit 55896afba3

View File

@ -1,7 +1,7 @@
Name: adobe-mappings-cmap
Summary: CMap resources for Adobe's character collections
Version: 20190730
Release: 1%{?dist}
Release: 2%{?dist}
License: BSD
URL: https://www.adobe.com/
@ -11,6 +11,27 @@ BuildArch: noarch
BuildRequires: git
BuildRequires: make
# The cmap-resources package duplicated this one (albeit with different
# installation paths). It was retired for F36. Provide an upgrade path.
%global crversion %(echo '%{version}' | \
awk '{print substr($0,1,4)"."substr($0,5,2)"."substr($0,7)}')
Provides: cmap-resources = %{crversion}-6.%{release}
Obsoletes: cmap-resources < 2019.07.30-6
Provides: cmap-resources-cns1-6 = %{crversion}-6.%{release}
Obsoletes: cmap-resources-cns1-6 < 2019.07.30-6
Provides: cmap-resources-cns1-7 = %{crversion}-6.%{release}
Obsoletes: cmap-resources-cns1-7 < 2019.07.30-6
Provides: cmap-resources-gb1-5 = %{crversion}-6.%{release}
Obsoletes: cmap-resources-gb1-5 < 2019.07.30-6
Provides: cmap-resources-japan1-7 = %{crversion}-6.%{release}
Obsoletes: cmap-resources-japan1-7 < 2019.07.30-6
Provides: cmap-resources-korea1-2 = %{crversion}-6.%{release}
Obsoletes: cmap-resources-korea1-2 < 2019.07.30-6
Provides: cmap-resources-identity-0 = %{crversion}-6.%{release}
Obsoletes: cmap-resources-identity-0 < 2019.07.30-6
Provides: cmap-resources-kr-9 = %{crversion}-6.%{release}
Obsoletes: cmap-resources-kr-9 < 2019.07.30-6
%description
CMap (Character Map) resources are used to unidirectionally map character codes,
such as Unicode encoding form, to CIDs (Character IDs -- meaning glyphs) of a
@ -26,6 +47,9 @@ characters.
Summary: Deprecated CMap resources for Adobe's character collections
Requires: %{name} = %{version}-%{release}
Provides: cmap-resources-japan2-0 = %{crversion}-6.%{release}
Obsoletes: cmap-resources-japan2-0 < 2019.07.30-6
%description deprecated
This sub-package contains currently deprecated CMap resources that some
applications might still require to function properly.
@ -86,6 +110,9 @@ _EOF
# =============================================================================
%changelog
* Thu Oct 14 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 20190730-2
- Add Provides/Obsoletes to support “cmap-resources” retirement
* Wed Oct 13 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 20190730-1
- Update to 20190730 (close RHBZ#2013684)