diff --git a/sazanami-fonts.spec b/sazanami-fonts.spec index b410715..840fd65 100644 --- a/sazanami-fonts.spec +++ b/sazanami-fonts.spec @@ -1,7 +1,5 @@ -%define fontver 20061016 %define priority 66 %define fontname sazanami -%define archivename %{fontname}-%{fontver} %define fontconf %{priority}-%{fontname} %define catalogue %{_sysconfdir}/X11/fontpath.d %define common_desc \ @@ -10,22 +8,22 @@ They also contains some embedded Japanese bitmap fonts. Name: %{fontname}-fonts Version: 0.20040629 -Release: 8.%{fontver}%{?dist} +Release: 9%{?dist} BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: ttmkfdir >= 3.0.6 BuildRequires: mkfontdir BuildRequires: fontpackages-devel +BuildRequires: fonttools URL: http://efont.sourceforge.jp/ -# original is http://prdownloads.sourceforge.jp/efont/10087/sazanami-20040629.tar.bz2 -# due to Bug#196433, ttf has been modified and the tarball repacked -Source0: sazanami-%{fontver}.tar.bz2 +Source0: http://globalbase.dl.sourceforge.jp/efont/10087/sazanami-20040629.tar.bz2 Source1: fonts.alias.sazanami-gothic Source2: fonts.alias.sazanami-mincho Source3: %{fontname}-gothic-fontconfig.conf Source4: %{fontname}-mincho-fontconfig.conf - +Patch1: uni7E6B-gothic.patch +Patch2: uni7E6B-mincho.patch Summary: Sazanami Japanese TrueType fonts License: BSD @@ -73,9 +71,23 @@ Requires: %{name}-common = %{version}-%{release} This package contains Japanese TrueType font for Mincho type face. %prep -%setup -q -n sazanami-%{fontver} +%setup -q -n sazanami-20040629 %build +#rhbz#196433: modify the ttfs to change the glyph for 0x7E6B +ttx -i -a -e sazanami-gothic.ttf +patch -b -z .uni7E6B sazanami-gothic.ttx %{PATCH1} +touch -r sazanami-gothic.ttf sazanami-gothic.ttx +rm sazanami-gothic.ttf +ttx -b sazanami-gothic.ttx +touch -r sazanami-gothic.ttx sazanami-gothic.ttf + +ttx -i -a -e sazanami-mincho.ttf +patch -b -z .uni7E6B sazanami-mincho.ttx %{PATCH2} +touch -r sazanami-mincho.ttf sazanami-mincho.ttx +rm sazanami-mincho.ttf +ttx -b sazanami-mincho.ttx +touch -r sazanami-mincho.ttx sazanami-mincho.ttf %install rm -rf $RPM_BUILD_ROOT @@ -133,6 +145,13 @@ rm -rf $RPM_BUILD_ROOT %dir %{_fontdir} %changelog +* Tue Oct 6 2009 Akira TAGOH - 0.20040629-9 +- keeps the original timestamps for TTFs. + +* Mon Oct 05 2009 Caolán McNamara +- use ttx and rebuild the font by merging the original .ttfs with the + custom replacement uni7E6B glyphs + * Sun Jul 26 2009 Fedora Release Engineering - 0.20040629-8.20061016 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild diff --git a/uni7E6B-gothic.patch b/uni7E6B-gothic.patch new file mode 100644 index 0000000..54d8cbe --- /dev/null +++ b/uni7E6B-gothic.patch @@ -0,0 +1,347 @@ +--- sazanami-gothic.ttx.orig 2009-09-30 09:12:32.000000000 +0100 ++++ sazanami-gothic.ttx 2009-09-30 09:15:28.000000000 +0100 +@@ -851447,168 +851447,199 @@ + + + +- ++ + +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ ++ ++ ++ + + + +- +- + ++ ++ + + + +- +- + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +- +- + ++ ++ + + + +- +- + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ + + + diff --git a/uni7E6B-mincho.patch b/uni7E6B-mincho.patch new file mode 100644 index 0000000..f13ba37 --- /dev/null +++ b/uni7E6B-mincho.patch @@ -0,0 +1,416 @@ +--- sazanami-mincho.ttx.orig 2009-09-30 15:56:13.000000000 +0100 ++++ sazanami-mincho.ttx 2009-10-01 10:47:28.000000000 +0100 +@@ -1429085,15 +1429085,149 @@ + + + +- ++ + +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +@@ -1429135,144 +1429269,11 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + + + +- + + + +@@ -1429303,16 +1429304,16 @@ + + + +- ++ + + + + +- ++ + + + +- ++ + + + +@@ -1429331,7 +1429332,7 @@ + + + +- ++ + + + +@@ -1429340,7 +1429341,7 @@ + + + +- ++ + + + +@@ -1429349,7 +1429350,7 @@ + + + +- ++ + + + +@@ -1429358,7 +1429359,7 @@ + + + +- ++ + + + +@@ -1429371,6 +1429372,54 @@ + + + ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + +