[sil-padauk-fonts] Package Padauk Book family font in separate subpackage

paragn paragn at fedoraproject.org
Fri Nov 30 06:41:54 UTC 2012


commit fed02b0168ba212e1af44443215e3616da84197e
Author: Parag <paragn at fedoraproject.org>
Date:   Fri Nov 30 12:13:28 2012 +0530

    Package Padauk Book family font in separate subpackage

 sil-padauk-fonts-book-fontconfig.conf |   16 +++++++++++
 sil-padauk-fonts.spec                 |   46 +++++++++++++++++++++++---------
 2 files changed, 49 insertions(+), 13 deletions(-)
---
diff --git a/sil-padauk-fonts-book-fontconfig.conf b/sil-padauk-fonts-book-fontconfig.conf
new file mode 100644
index 0000000..90dcd07
--- /dev/null
+++ b/sil-padauk-fonts-book-fontconfig.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+  <alias>
+    <family>Padauk Book</family>
+    <default>
+      <family>sans-serif</family>
+    </default>
+  </alias>
+  <alias>
+    <family>sans-serif</family>
+    <prefer>
+      <family>Padauk Book</family>
+    </prefer>
+  </alias>
+</fontconfig>
diff --git a/sil-padauk-fonts.spec b/sil-padauk-fonts.spec
index 1d59325..f0b9cab 100644
--- a/sil-padauk-fonts.spec
+++ b/sil-padauk-fonts.spec
@@ -1,10 +1,16 @@
 %global fontname sil-padauk
-%global fontconf 65-%{fontname}.conf
+%global fontconf 65-%{fontname}
 %global archivename padauk-2.8
 
+%global common_desc \
+Padauk is a Myanmar font covering all currently used characters \
+in the Myanmar block. The font aims to cover all minority language needs. \
+At the moment, these do not extend to stylistic variation needs. \
+The font is a smart font using a Graphite description.
+
 Name:    %{fontname}-fonts
 Version: 2.8
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: A font for Burmese and the Myanmar script
 
 Group:   User Interface/X
@@ -13,17 +19,28 @@ URL:     http://scripts.sil.org/Padauk
 # The source link is a redirect and is not directly accessible
 Source0: %{archivename}.zip
 Source1: %{name}-fontconfig.conf
+Source2: %{name}-book-fontconfig.conf
 
 BuildArch: noarch
 BuildRequires: fontpackages-devel
 Requires:      fontpackages-filesystem
 
 %description
-Padauk is a Myanmar font covering all currently used characters
-in the Myanmar block. The font aims to cover all minority language needs.
-At the moment, these do not extend to stylistic variation needs.
-The font is a smart font using a Graphite description.
+%common_desc
+
+%_font_pkg -f %{fontconf}.conf Padauk.ttf Padauk-bold.ttf
+%doc *.txt
+
+%package -n %{fontname}-book-fonts
+Summary:  A font for Burmese and the Myanmar script
+
+%description -n %{fontname}-book-fonts
+Padauk Book family font.
 
+%common_desc
+
+%_font_pkg -n book -f %{fontconf}-book.conf Padauk-book*.ttf
+%doc *.txt
 
 %prep
 %setup -q -n padauk-2.80
@@ -41,18 +58,21 @@ install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
                    %{buildroot}%{_fontconfig_confdir}
 
 install -m 0644 -p %{SOURCE1} \
-        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
-
-ln -s %{_fontconfig_templatedir}/%{fontconf} \
-      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
+        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
+install -m 0644 -p %{SOURCE2} \
+        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-book.conf
 
-%_font_pkg -f %{fontconf} *.ttf
-
-%doc *.txt
+ln -s %{_fontconfig_templatedir}/%{fontconf}.conf \
+      %{buildroot}%{_fontconfig_confdir}/%{fontconf}.conf
 
+ln -s %{_fontconfig_templatedir}/%{fontconf}-book.conf \
+      %{buildroot}%{_fontconfig_confdir}/%{fontconf}-book.conf
 
 
 %changelog
+* Fri Nov 30 2012 Parag <paragn AT fedoraproject DOT org> - 2.8-2
+- Package Padauk Book family font in separate subpackage
+
 * Thu Nov 29 2012 Parag <paragn AT fedoraproject DOT org> - 2.8-1
 - Resolves:rh#880012 - upstream new release available 2.8
 


More information about the fonts-bugs mailing list