[pagul-fonts] Initial import (#699587)
pnemade
pnemade at fedoraproject.org
Tue May 3 04:08:40 UTC 2011
commit 97583189f6cc62fb938862507ea1abec00374865
Author: Parag Nemade <pnemade at redhat.com>
Date: Tue May 3 09:38:07 2011 +0530
Initial import (#699587)
.gitignore | 1 +
pagul-fonts-fontconfig.conf | 24 ++++++++++++++
pagul-fonts.spec | 71 +++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 97 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1adf41e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Pagul_v1.0.zip
diff --git a/pagul-fonts-fontconfig.conf b/pagul-fonts-fontconfig.conf
new file mode 100644
index 0000000..f53d8f1
--- /dev/null
+++ b/pagul-fonts-fontconfig.conf
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+<match>
+ <test name="lang" compare="contains">
+ <string>saz</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Pagul</string>
+ </edit>
+</match>
+
+<alias>
+ <family>Pagul</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+</alias>
+</fontconfig>
+
+
diff --git a/pagul-fonts.spec b/pagul-fonts.spec
new file mode 100644
index 0000000..7234c65
--- /dev/null
+++ b/pagul-fonts.spec
@@ -0,0 +1,71 @@
+%global fontname pagul
+%global fontconf 66-%{fontname}.conf
+
+%global archivename Pagul_v1.0.zip
+
+Name: %{fontname}-fonts
+Version: 1.0
+Release: 2%{?dist}
+Summary: Font for Saurashtra script
+
+Group: User Interface/X
+License: GPLv3+ with exceptions
+URL: http://sourceforge.net/projects/pagul/
+Source0: http://download.sourceforge.net/project/pagul/%{archivename}
+Source1: %{name}-fontconfig.conf
+
+BuildArch: noarch
+BuildRequires: fontforge fontpackages-devel
+Requires: fontpackages-filesystem
+
+%description
+A TrueType Font, which allows you to read and write in Saurashtra Script.
+
+%prep
+%setup -q -c T
+for file in License.txt; do
+ sed "s|\r||g" $file > $file.new && \
+ touch -r $file $file.new && \
+ mv $file.new $file
+done
+
+%build
+fontforge -lang=ff -script "-" Pagul.sfd <<_EOF
+i = 1
+while ( i < \$argc )
+ Open (\$argv[i], 1)
+ Generate (\$fontname + ".ttf")
+ PrintSetup (5)
+ PrintFont (0, 0, "", \$fontname + "-sample.pdf")
+ Close()
+ i++
+endloop
+_EOF
+
+%install
+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 %{SOURCE1} \
+ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
+ln -s %{_fontconfig_templatedir}/%{fontconf} \
+ %{buildroot}%{_fontconfig_confdir}/%{fontconf}
+
+
+
+%_font_pkg -f %{fontconf} *.ttf
+
+%doc License.txt
+
+
+%changelog
+* Wed Apr 27 2011 Parag Nemade <pnemade AT redhat DOT com> - 1.0-2
+- Added missing %%setup
+- Removed hl as a foundry from font package name
+
+* Mon Apr 25 2011 Parag Nemade <pnemade AT redhat DOT com> - 1.0-1
+- Initial Fedora release.
+
diff --git a/sources b/sources
index e69de29..ac3bbfe 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e37f7bf8c70dce476bbddac5dd4da583 Pagul_v1.0.zip
More information about the fonts-bugs
mailing list