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 Name: adobe-mappings-cmap
Summary: CMap resources for Adobe's character collections Summary: CMap resources for Adobe's character collections
Version: 20190730 Version: 20190730
Release: 1%{?dist} Release: 2%{?dist}
License: BSD License: BSD
URL: https://www.adobe.com/ URL: https://www.adobe.com/
@ -11,6 +11,27 @@ BuildArch: noarch
BuildRequires: git BuildRequires: git
BuildRequires: make 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 %description
CMap (Character Map) resources are used to unidirectionally map character codes, CMap (Character Map) resources are used to unidirectionally map character codes,
such as Unicode encoding form, to CIDs (Character IDs -- meaning glyphs) of a 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 Summary: Deprecated CMap resources for Adobe's character collections
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Provides: cmap-resources-japan2-0 = %{crversion}-6.%{release}
Obsoletes: cmap-resources-japan2-0 < 2019.07.30-6
%description deprecated %description deprecated
This sub-package contains currently deprecated CMap resources that some This sub-package contains currently deprecated CMap resources that some
applications might still require to function properly. applications might still require to function properly.
@ -86,6 +110,9 @@ _EOF
# ============================================================================= # =============================================================================
%changelog %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 * Wed Oct 13 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 20190730-1
- Update to 20190730 (close RHBZ#2013684) - Update to 20190730 (close RHBZ#2013684)