From 7698143819255a742cc50258415f6a4fc8f76d65 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Oct 09 2014 07:06:00 +0000 Subject: Update to 1.001 --- diff --git a/.gitignore b/.gitignore index 346ec8f..dffd0c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /SourceHanSansCN-1.000.zip +/SourceHanSansCN-1.001.zip diff --git a/adobe-source-han-sans-cn-fonts-fontconfig.conf b/adobe-source-han-sans-cn-fonts-fontconfig.conf index 8a26ff9..1a28ef2 100644 --- a/adobe-source-han-sans-cn-fonts-fontconfig.conf +++ b/adobe-source-han-sans-cn-fonts-fontconfig.conf @@ -10,7 +10,7 @@ Source Han Sans CN - Source Han Sans TWHK + Source Han Sans TW DejaVu Sans Mono @@ -25,7 +25,7 @@ Source Han Sans CN - Source Han Sans TWHK + Source Han Sans TW DejaVu Sans Mono @@ -48,7 +48,7 @@ Source Han Sans CN - Source Han Sans TWHK + Source Han Sans TW @@ -60,7 +60,7 @@ Source Han Sans CN - Source Han Sans TWHK + Source Han Sans TW @@ -80,7 +80,7 @@ Source Han Sans CN - Source Han Sans TWHK + Source Han Sans TW @@ -92,7 +92,7 @@ Source Han Sans CN - Source Han Sans TWHK + Source Han Sans TW diff --git a/adobe-source-han-sans-cn-fonts.spec b/adobe-source-han-sans-cn-fonts.spec index 2c44d5a..26a040c 100644 --- a/adobe-source-han-sans-cn-fonts.spec +++ b/adobe-source-han-sans-cn-fonts.spec @@ -4,15 +4,18 @@ %global archivename SourceHanSansCN-%{version} Name: adobe-source-han-sans-cn-fonts -Version: 1.000 -Release: 4%{?dist} +Version: 1.001 +Release: 1%{?dist} Summary: Adobe OpenType Pan-CJK font family for Simplified Chinese License: ASL 2.0 -URL: http://sourceforge.net/adobe/source-han-sans/wiki/Home/ -Source0: http://downloads.sourceforge.net/source-han-sans.adobe/%{archivename}.zip +URL: https://github.com/adobe-fonts/source-han-sans/ +# the original upstream tar ball is too large, use the download script instead +Source0: %{archivename}.zip Source1: %{name}-fontconfig.conf Source2: http://downloads.sourceforge.net/source-han-sans.adobe/LICENSE.txt +# the script to download fonts +Source3: fetchcnfont.sh BuildArch: noarch BuildRequires: fontpackages-devel @@ -60,6 +63,9 @@ ln -s %{_fontconfig_templatedir}/%{fontconf} \ %changelog +* Wed Oct 8 2014 Peng Wu - 1.001-1 +- Update to 1.001 + * Tue Sep 9 2014 Peng Wu - 1.000-4 - Work around monospace English characters issue diff --git a/fetchcnfont.sh b/fetchcnfont.sh new file mode 100644 index 0000000..2be5120 --- /dev/null +++ b/fetchcnfont.sh @@ -0,0 +1,26 @@ +#!/bin/bash +#Try to get upstream latest files + +LANG="CN" +PREFIX="SourceHanSans$LANG" +VERSION="1.001" +ARCHIVE="$PREFIX-$VERSION" +TMPDIR=$(mktemp -d --tmpdir=/var/tmp fetchcnfont-XXXXXXXXXX) +[ $? != 0 ] && exit 1 +umask 022 +pushd "$TMPDIR" + +URLPREFIX="https://github.com/adobe-fonts/source-han-sans/raw/release/SubsetOTF" +VARIANTS="Bold ExtraLight Heavy Light Medium Normal Regular" + +for i in $(echo $VARIANTS | tr " " "\n") +do wget "$URLPREFIX/$LANG/$PREFIX-$i.otf" +done + +mkdir "$ARCHIVE" +mv $PREFIX-*.otf "$ARCHIVE" +chmod -x $ARCHIVE/*.otf +zip "$ARCHIVE.zip" $ARCHIVE/*.otf +popd +mv "$TMPDIR/$ARCHIVE.zip" . +rm -fr "$TMPDIR" diff --git a/sources b/sources index 8d09e1a..352a67a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -146465b5e0efa1709433bed888622b06 SourceHanSansCN-1.000.zip +0d793d415b680bae4f84d3e6dbbbe154 SourceHanSansCN-1.001.zip