[Fedora-i18n-bugs] [nafees-riqa-fonts/f16] initial import

Pravin Satpute pravins at fedoraproject.org
Wed Aug 24 08:23:25 UTC 2011


commit 4b2e152703eb37fae08b0de8b201bc5d49b9cfdc
Author: प्रविण सातपुते <psatpute at redhat.com>
Date:   Wed Aug 24 13:53:03 2011 +0530

    initial import

 .gitignore                             |    1 +
 67-nafees-riqa.conf                    |   22 +++++++++++
 nafees-riqa-fonts.spec                 |   63 ++++++++++++++++++++++++++++++++
 nafees-riqa-update-preferred-family.pe |   11 ++++++
 sources                                |    1 +
 5 files changed, 98 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3567b5f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Nafees_Riqa_v1.0.zip
diff --git a/67-nafees-riqa.conf b/67-nafees-riqa.conf
new file mode 100644
index 0000000..80c670d
--- /dev/null
+++ b/67-nafees-riqa.conf
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<match>
+  <test name="lang" compare="contains">
+    <string>ur</string>
+  </test>
+  <test name="family">
+    <string>serif</string>
+  </test>
+  <edit name="family" mode="prepend">
+    <string>Nafees Riqa</string>
+  </edit>
+</match>
+<alias>
+  <family>Nafees Riqa</family>
+  <default>
+    <family>serif</family>
+  </default>
+</alias>
+</fontconfig>
+
diff --git a/nafees-riqa-fonts.spec b/nafees-riqa-fonts.spec
new file mode 100644
index 0000000..3ababc1
--- /dev/null
+++ b/nafees-riqa-fonts.spec
@@ -0,0 +1,63 @@
+%global fontname        nafees-riqa
+%global fontconf        67-%{fontname}.conf
+%global archivename     Nafees_Riqa_v1.0
+
+Name:           %{fontname}-fonts
+Version:        1.0
+Release:        2%{?dist}
+Summary:        Nafees riqa font for writing Urdu in the Riqa script
+
+Group:          User Interface/X
+License:        Bitstream Vera
+URL:            http://www.crulp.org/index.htm
+
+Source0:        http://www.crulp.org/Downloads/localization/fonts/NafeesRiqa/%{archivename}.zip
+
+Source1:        %{fontname}-update-preferred-family.pe
+Source2:        %{fontconf}
+
+BuildArch:      noarch
+Requires:       fontpackages-filesystem
+BuildRequires:  fontpackages-devel
+BuildRequires:  fontforge
+
+%description
+Character based Nafees Riqa Open Type Font for writing Urdu in Riqa\
+script based on Unicode standard.
+
+
+%prep
+%setup -q -c
+
+%build
+# Fix RHBZ#490830 while not fixed upstream
+%{_bindir}/fontforge %{SOURCE1} Nafees\ Riqa\ v1.0.ttf
+rm  Nafees\ Riqa\ v1.0.ttf
+
+%install
+
+#fonts
+install -m 0755 -d %{buildroot}%{_fontdir}
+install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
+
+install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
+                %{buildroot}%{_fontconfig_confdir}
+
+install -m 0644 -p %{SOURCE2} \
+                %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
+
+ln -s %{_fontconfig_templatedir}/%{fontconf} \
+        %{buildroot}%{_fontconfig_confdir}/%{fontconf}
+
+
+%_font_pkg -f %{fontconf} *.ttf
+
+%doc  Nafees\ Riqa\ v1.00.pdf
+
+
+%changelog
+* Wed Aug 23 2011 Pravin Satpute <psatpute at redhat.com> 1.0-2
+- updated as per package review commnets
+
+* Wed Aug 10 2011 Pravin Satpute <psatpute at redhat.com> 1.0-1
+- Initial packaging
diff --git a/nafees-riqa-update-preferred-family.pe b/nafees-riqa-update-preferred-family.pe
new file mode 100644
index 0000000..690053e
--- /dev/null
+++ b/nafees-riqa-update-preferred-family.pe
@@ -0,0 +1,11 @@
+#!/usr/bin/fontforge 
+
+
+fontfile = $1
+Open(fontfile)
+
+SetTTFName(0x409, 16, 'Nafees Riqa')
+
+Generate('NafeesRiqa.ttf')
+Close()
+
diff --git a/sources b/sources
index e69de29..8835ecf 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+504c6ada41a408575a120daf2a110b6f  Nafees_Riqa_v1.0.zip


More information about the i18n-bugs mailing list