[google-noto-fonts] add obsoletes for hanunno, linearb and meeteimayek renames
Jens Petersen
petersen at fedoraproject.org
Mon Dec 15 05:45:39 UTC 2014
commit 5dd1ba090e708c44e8a4ac6cd0233d0d815c6d0b
Author: Jens Petersen <petersen at redhat.com>
Date: Mon Dec 15 14:45:52 2014 +0900
add obsoletes for hanunno, linearb and meeteimayek renames
google-noto-fonts.spec | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/google-noto-fonts.spec b/google-noto-fonts.spec
index 26f1f58..29ae0cb 100644
--- a/google-noto-fonts.spec
+++ b/google-noto-fonts.spec
@@ -10,7 +10,7 @@ in Unicode.\
Name: %{fontname}-fonts
Version: 20141117
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Hinted and Non Hinted OpenType fonts for Unicode scripts
Group: User Interface/X
License: ASL 2.0
@@ -150,10 +150,11 @@ Summary: Common files for Noto fonts
%description common
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
# -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 fname %(echo %{*} | sed -e "s/ //g")\
%define subpkg %{fontname}-%{pname}\
@@ -161,6 +162,7 @@ Common files for Google Noto fonts.
Summary: %{*} font\
Requires: fontpackages-filesystem\
Requires: %{name}-common = %{version}-%{release}\
+%{?-o:Obsoletes: %{fontname}-%{-o*}-fonts < %{version}-%{release}}\
\
%description -n %{subpkg}-fonts\
%common_desc\
@@ -220,7 +222,7 @@ fi\
%notopkg Sans Gujarati UI
%notopkg Sans Gurmukhi
%notopkg Sans Gurmukhi UI
-%notopkg Sans Hanuno
+%notopkg -o sans-hanunno Sans Hanuno
%notopkg Sans Hebrew
%notopkg Sans Imperial Aramaic
%notopkg Sans Inscriptional Pahlavi
@@ -239,14 +241,14 @@ fi\
%notopkg Sans Lao UI
%notopkg Sans Lepcha
%notopkg Sans Limbu
-%notopkg Sans Linear B
+%notopkg -o sans-linearb Sans Linear B
%notopkg Sans Lisu
%notopkg Sans Lycian
%notopkg Sans Lydian
%notopkg Sans Malayalam
%notopkg Sans Malayalam UI
%notopkg Sans Mandaic
-%notopkg Sans Meetei Mayek
+%notopkg -o sans-meeteimayek Sans Meetei Mayek
%notopkg Sans Mongolian
%notopkg Sans Myanmar
%notopkg Sans Myanmar UI
@@ -379,6 +381,10 @@ done
%changelog
+* Mon Dec 15 2014 Jens Petersen <petersen at 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 at redhat.com> - 20141117-3
- create the fonts subpackages with a macro
More information about the fonts-bugs
mailing list