[Fedora-i18n-bugs] [thai-arundina-fonts] Initial import.

Daiki Ueno ueno at fedoraproject.org
Fri Apr 1 01:30:44 UTC 2011


commit f64c728b6a14e223a168c3b13218b77ba9bbb711
Author: Daiki Ueno <ueno at unixuser.org>
Date:   Fri Apr 1 10:30:24 2011 +0900

    Initial import.

 .gitignore                                    |    1 +
 sources                                       |    1 +
 thai-arundina-fonts-sans-fontconfig.conf      |   21 +++++
 thai-arundina-fonts-sans-mono-fontconfig.conf |   21 +++++
 thai-arundina-fonts-serif-fontconfig.conf     |   21 +++++
 thai-arundina-fonts.spec                      |  121 +++++++++++++++++++++++++
 6 files changed, 186 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3894a54 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/thaifonts-arundina-0.1.2.tar.gz
diff --git a/sources b/sources
index e69de29..8344265 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+27f2ba1021823b7f885d327e7fc99c03  thaifonts-arundina-0.1.2.tar.gz
diff --git a/thai-arundina-fonts-sans-fontconfig.conf b/thai-arundina-fonts-sans-fontconfig.conf
new file mode 100644
index 0000000..35b8ddc
--- /dev/null
+++ b/thai-arundina-fonts-sans-fontconfig.conf
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+  <match>
+    <test name="lang">
+      <string>th</string>
+    </test>
+    <test name="family">
+      <string>sans-serif</string>
+    </test>
+    <edit name="family" mode="prepend">
+      <string>Arundina Sans</string>
+    </edit>
+  </match>
+  <alias>
+    <family>Arundina Sans</family>
+    <default>
+      <family>sans-serif</family>
+    </default>
+  </alias>
+</fontconfig>
diff --git a/thai-arundina-fonts-sans-mono-fontconfig.conf b/thai-arundina-fonts-sans-mono-fontconfig.conf
new file mode 100644
index 0000000..75fe1ea
--- /dev/null
+++ b/thai-arundina-fonts-sans-mono-fontconfig.conf
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+  <match>
+    <test name="lang">
+      <string>th</string>
+    </test>
+    <test name="family">
+      <string>monospace</string>
+    </test>
+    <edit name="family" mode="prepend">
+      <string>Arundina Sans Mono</string>
+    </edit>
+  </match>
+  <alias>
+    <family>Arundina Sans Mono</family>
+    <default>
+      <family>monospace</family>
+    </default>
+  </alias>
+</fontconfig>
diff --git a/thai-arundina-fonts-serif-fontconfig.conf b/thai-arundina-fonts-serif-fontconfig.conf
new file mode 100644
index 0000000..9abab29
--- /dev/null
+++ b/thai-arundina-fonts-serif-fontconfig.conf
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+  <match>
+    <test name="lang">
+      <string>th</string>
+    </test>
+    <test name="family">
+      <string>serif</string>
+    </test>
+    <edit name="family" mode="prepend">
+      <string>Arundina Serif</string>
+    </edit>
+  </match>
+  <alias>
+    <family>Arundina Serif</family>
+    <default>
+      <family>serif</family>
+    </default>
+  </alias>
+</fontconfig>
diff --git a/thai-arundina-fonts.spec b/thai-arundina-fonts.spec
new file mode 100644
index 0000000..89f7ebc
--- /dev/null
+++ b/thai-arundina-fonts.spec
@@ -0,0 +1,121 @@
+%global fontname thai-arundina
+%global fontconf 67-%{fontname}
+%global archivename thaifonts-arundina-%{version}
+
+%global common_desc \
+Arundina fonts were created aiming at Bitstream Vera / Dejavu \
+compatibility, under SIPA's initiation.  They were then further \
+modified by TLWG for certain aspects, such as Latin glyph size \
+compatibility and OpenType conformance.
+
+Name:		%{fontname}-fonts
+Version:	0.1.2
+Release:	2%{?dist}
+Summary:	Thai Arundina fonts
+
+Group:		User Interface/X
+License:	Bitstream Vera
+URL:		http://linux.thai.net/projects/thaifonts-arundina
+Source0:	http://linux.thai.net/pub/thailinux/software/thaifonts-arundina/%{archivename}.tar.gz
+Source1:	%{name}-sans-fontconfig.conf
+Source2:	%{name}-serif-fontconfig.conf
+Source3:	%{name}-sans-mono-fontconfig.conf
+
+BuildArch:	noarch
+BuildRequires:	fontforge
+BuildRequires:	fontpackages-devel
+
+%description
+%common_desc
+
+
+%package common
+Summary:	Common files of the Thai Arundina font set
+Requires:	fontpackages-filesystem
+
+%description common
+%common_desc
+
+
+%package -n %{fontname}-sans-fonts
+Summary:	Variable-width sans-serif Thai Arundina fonts
+Requires:	%{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-sans-fonts
+%common_desc
+
+This package consists of the Thai Arundina sans-serif variable-width
+font faces.
+
+%_font_pkg -n sans -f %{fontconf}-sans.conf ArundinaSans.ttf ArundinaSans-Bold.ttf ArundinaSans-Oblique.ttf ArundinaSans-BoldOblique.ttf
+
+
+%package -n %{fontname}-serif-fonts
+Summary:	Variable-width serif Thai Arundina fonts
+Requires:	%{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-serif-fonts
+%common_desc
+
+This package consists of the Thai Arundina serif variable-width
+font faces.
+
+%_font_pkg -n serif -f %{fontconf}-serif.conf ArundinaSerif.ttf ArundinaSerif-Bold.ttf
+
+
+%package -n %{fontname}-sans-mono-fonts
+Summary:	Monospace sans-serif Thai Arundina fonts
+Requires:	%{name}-common = %{version}-%{release}
+
+%description -n %{fontname}-sans-mono-fonts
+%common_desc
+
+This package consists of the Thai Arundina sans-serif monospace font
+faces.
+
+%_font_pkg -n sans-mono -f %{fontconf}-sans-mono.conf ArundinaSansMono.ttf ArundinaSansMono-Bold.ttf ArundinaSansMono-Oblique.ttf ArundinaSansMono-BoldOblique.ttf
+
+
+%prep
+%setup -q -n %{archivename}
+
+
+%build
+%configure
+make
+
+
+%install
+install -m 0755 -d %{buildroot}%{_fontdir}
+install -m 0644 -p arundina/*.ttf %{buildroot}%{_fontdir}
+
+install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
+		   %{buildroot}%{_fontconfig_confdir}
+
+install -m 0644 -p %{SOURCE1} \
+	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sans.conf
+install -m 0644 -p %{SOURCE2} \
+	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-serif.conf
+install -m 0644 -p %{SOURCE3} \
+	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sans-mono.conf
+
+for fconf in %{fontconf}-sans.conf \
+    %{fontconf}-serif.conf \
+    %{fontconf}-sans-mono.conf ; do
+  ln -s %{_fontconfig_templatedir}/$fconf \
+     %{buildroot}%{_fontconfig_confdir}/$fconf
+done
+
+
+%files common
+%defattr(-,root,root,-)
+%doc README AUTHORS COPYING NEWS
+
+
+%changelog
+* Thu Mar 31 2011 Daiki Ueno <dueno at redhat.com> - 0.1.2-2
+- add fontconfig files
+- remove buildroot cleanup in %%install
+
+* Mon Mar 28 2011 Daiki Ueno <dueno at redhat.com> - 0.1.2-1
+- initial packaging for Fedora


More information about the i18n-bugs mailing list