packages: fonts-TTF-vlgothic/fonts-TTF-vlgothic.spec (NEW), fonts-TTF-vlgot...
glen
glen at pld-linux.org
Tue Feb 8 21:58:11 CET 2011
Author: glen Date: Tue Feb 8 20:58:11 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new, based on fedora vlgothic-fonts package
---- Files affected:
packages/fonts-TTF-vlgothic:
fonts-TTF-vlgothic.spec (NONE -> 1.1) (NEW), vlgothic-fontconfig-gothic.conf (NONE -> 1.1) (NEW), vlgothic-fontconfig-pgothic.conf (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/fonts-TTF-vlgothic/fonts-TTF-vlgothic.spec
diff -u /dev/null packages/fonts-TTF-vlgothic/fonts-TTF-vlgothic.spec:1.1
--- /dev/null Tue Feb 8 21:58:11 2011
+++ packages/fonts-TTF-vlgothic/fonts-TTF-vlgothic.spec Tue Feb 8 21:58:06 2011
@@ -0,0 +1,66 @@
+# $Revision$, $Date$
+%define priority 65-1
+%define ppriority 65-0
+%define fontname vlgothic
+%define archivename VLGothic-%{version}
+%define fontconf %{priority}-%{fontname}-gothic
+%define pfontconf %{ppriority}-%{fontname}-pgothic
+
+Summary: Japanese TrueType font
+Name: fonts-TTF-vlgothic
+Version: 20101218
+Release: 1
+License: mplus and BSD
+Group: Fonts
+URL: http://dicey.org/vlgothic
+Source0: http://osdn.dl.sourceforge.jp/vlgothic/50227/%{archivename}.tar.bz2
+# Source0-md5: 26bfe3ee8b71828194a589616f397202
+Source1: %{fontname}-fontconfig-pgothic.conf
+Source2: %{fontname}-fontconfig-gothic.conf
+Provides: %{fontname}-p-fonts = %{version}-%{release}
+Provides: VLGothic-fonts = %{version}-%{release}
+Provides: VLGothic-fonts-proportional = %{version}-%{release}
+Obsoletes: %{fontname}-p-fonts < 20101218-1
+Obsoletes: VLGothic-fonts < 20090204-1
+Obsoletes: VLGothic-fonts-proportional < 20090204-1
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _ttffontsdir %{_fontsdir}/TTF
+
+%description
+VLGothic provides Japanese TrueType fonts from the Vine Linux project.
+Most of the glyphs are taken from the M+ and Sazanami Gothic fonts,
+but some have also been improved by the project.
+
+%prep
+%setup -q -n VLGothic
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/fonts/{conf.avail,conf.d},%{_ttffontsdir}}
+cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
+install -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/%{pfontconf}.conf
+install -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/%{fontconf}.conf
+ln -s ../conf.avail/%{pfontconf}.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
+ln -s ../conf.avail/%{fontconf}.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README* LICENSE*
+%{_sysconfdir}/fonts/conf.avail/*.conf
+%{_sysconfdir}/fonts/conf.d/*.conf
+%{_fontsdir}/TTF/VL-Gothic-Regular.ttf
+%{_fontsdir}/TTF/VL-PGothic-Regular.ttf
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/02/08 20:58:06 glen
+- new, based on fedora vlgothic-fonts package
================================================================
Index: packages/fonts-TTF-vlgothic/vlgothic-fontconfig-gothic.conf
diff -u /dev/null packages/fonts-TTF-vlgothic/vlgothic-fontconfig-gothic.conf:1.1
--- /dev/null Tue Feb 8 21:58:11 2011
+++ packages/fonts-TTF-vlgothic/vlgothic-fontconfig-gothic.conf Tue Feb 8 21:58:06 2011
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <!-- Generic names rule -->
+ <alias>
+ <family>VL Gothic</family>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+ <!-- NOTE: just for fallback - ideally better installing vlgothic-p-fonts -->
+ <alias>
+ <family>VL Gothic</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+ <!-- Locale-specific overrides rule -->
+ <match>
+ <test name="lang">
+ <string>ja-jp</string>
+ <string>ja</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>VL Gothic</string>
+ </edit>
+ </match>
+ <!-- NOTE: just for fallback - ideally better installing vlgothic-p-fonts -->
+ <match>
+ <test name="lang">
+ <string>ja-jp</string>
+ <string>ja</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>VL Gothic</string>
+ </edit>
+ </match>
+ <!-- disabling hinting rule -->
+ <match target="font">
+ <test name="family">
+ <string>VL Gothic</string>
+ </test>
+ <edit name="hinting" mode="assign">
+ <bool>false</bool>
+ </edit>
+ </match>
+</fontconfig>
================================================================
Index: packages/fonts-TTF-vlgothic/vlgothic-fontconfig-pgothic.conf
diff -u /dev/null packages/fonts-TTF-vlgothic/vlgothic-fontconfig-pgothic.conf:1.1
--- /dev/null Tue Feb 8 21:58:11 2011
+++ packages/fonts-TTF-vlgothic/vlgothic-fontconfig-pgothic.conf Tue Feb 8 21:58:06 2011
@@ -0,0 +1,33 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <!-- Generic names rule -->
+ <alias>
+ <family>VL PGothic</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+ <!-- Locale-specific overrides rule -->
+ <match>
+ <test name="lang">
+ <string>ja-jp</string>
+ <string>ja</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>VL PGothic</string>
+ </edit>
+ </match>
+ <!-- disabling hinting rule -->
+ <match target="font">
+ <test name="family">
+ <string>VL PGothic</string>
+ </test>
+ <edit name="hinting" mode="assign">
+ <bool>false</bool>
+ </edit>
+ </match>
+</fontconfig>
================================================================
More information about the pld-cvs-commit
mailing list