add obsoletes for hanunno, linearb and meeteimayek renames

This commit is contained in:
Jens Petersen 2014-12-15 14:45:52 +09:00
parent 0677610459
commit 5dd1ba090e

View File

@ -10,7 +10,7 @@ in Unicode.\
Name: %{fontname}-fonts Name: %{fontname}-fonts
Version: 20141117 Version: 20141117
Release: 3%{?dist} Release: 4%{?dist}
Summary: Hinted and Non Hinted OpenType fonts for Unicode scripts Summary: Hinted and Non Hinted OpenType fonts for Unicode scripts
Group: User Interface/X Group: User Interface/X
License: ASL 2.0 License: ASL 2.0
@ -150,10 +150,11 @@ Summary: Common files for Noto fonts
%description common %description common
Common files for Google Noto fonts. Common files for Google Noto fonts.
# notopkg [-c] [-a AltFontName] Font Name # notopkg [-c] [-a AltFontName] [-o old-name] Font Name
# -c is for *.*tc fonts instead of *.*tf # -c is for *.*tc fonts instead of *.*tf
# -a overrides the FontName # -a overrides the FontName
%define notopkg(ca:)\ # -o adds an obsoletes for an older package name
%define notopkg(ca:o:)\
%define pname %(echo %{*} | tr "A-Z " "a-z-")\ %define pname %(echo %{*} | tr "A-Z " "a-z-")\
%define fname %(echo %{*} | sed -e "s/ //g")\ %define fname %(echo %{*} | sed -e "s/ //g")\
%define subpkg %{fontname}-%{pname}\ %define subpkg %{fontname}-%{pname}\
@ -161,6 +162,7 @@ Common files for Google Noto fonts.
Summary: %{*} font\ Summary: %{*} font\
Requires: fontpackages-filesystem\ Requires: fontpackages-filesystem\
Requires: %{name}-common = %{version}-%{release}\ Requires: %{name}-common = %{version}-%{release}\
%{?-o:Obsoletes: %{fontname}-%{-o*}-fonts < %{version}-%{release}}\
\ \
%description -n %{subpkg}-fonts\ %description -n %{subpkg}-fonts\
%common_desc\ %common_desc\
@ -220,7 +222,7 @@ fi\
%notopkg Sans Gujarati UI %notopkg Sans Gujarati UI
%notopkg Sans Gurmukhi %notopkg Sans Gurmukhi
%notopkg Sans Gurmukhi UI %notopkg Sans Gurmukhi UI
%notopkg Sans Hanuno %notopkg -o sans-hanunno Sans Hanuno
%notopkg Sans Hebrew %notopkg Sans Hebrew
%notopkg Sans Imperial Aramaic %notopkg Sans Imperial Aramaic
%notopkg Sans Inscriptional Pahlavi %notopkg Sans Inscriptional Pahlavi
@ -239,14 +241,14 @@ fi\
%notopkg Sans Lao UI %notopkg Sans Lao UI
%notopkg Sans Lepcha %notopkg Sans Lepcha
%notopkg Sans Limbu %notopkg Sans Limbu
%notopkg Sans Linear B %notopkg -o sans-linearb Sans Linear B
%notopkg Sans Lisu %notopkg Sans Lisu
%notopkg Sans Lycian %notopkg Sans Lycian
%notopkg Sans Lydian %notopkg Sans Lydian
%notopkg Sans Malayalam %notopkg Sans Malayalam
%notopkg Sans Malayalam UI %notopkg Sans Malayalam UI
%notopkg Sans Mandaic %notopkg Sans Mandaic
%notopkg Sans Meetei Mayek %notopkg -o sans-meeteimayek Sans Meetei Mayek
%notopkg Sans Mongolian %notopkg Sans Mongolian
%notopkg Sans Myanmar %notopkg Sans Myanmar
%notopkg Sans Myanmar UI %notopkg Sans Myanmar UI
@ -379,6 +381,10 @@ done
%changelog %changelog
* Mon Dec 15 2014 Jens Petersen <petersen@redhat.com> - 20141117-4
- add obsoletes to cover the change of package names for Hanuno, Linear B,
and Meetei Mayek
* Tue Dec 2 2014 Jens Petersen <petersen@redhat.com> - 20141117-3 * Tue Dec 2 2014 Jens Petersen <petersen@redhat.com> - 20141117-3
- create the fonts subpackages with a macro - create the fonts subpackages with a macro