[kalapi-fonts/f17] initial build for f17
Pravin Satpute
pravins at fedoraproject.org
Fri Jul 27 09:26:38 UTC 2012
commit cb8854428238a67a2a9642e31751c7c5d4b1ab99
Author: प्रविण सातपुते <psatpute at redhat.com>
Date: Fri Jul 27 14:56:14 2012 +0530
initial build for f17
.gitignore | 1 +
67-kalapi.conf | 32 ++++++++++++++++++++++++++++
Makefile | 2 +
font-name.patch | 41 ++++++++++++++++++++++++++++++++++++
kalapi-fonts.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
6 files changed, 137 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..12c29de 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/font-kalapi-0.1.tar.gz
diff --git a/67-kalapi.conf b/67-kalapi.conf
new file mode 100644
index 0000000..85796ea
--- /dev/null
+++ b/67-kalapi.conf
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<match>
+ <test name="lang" compare="contains">
+ <string>gu</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Kalapi</string>
+ </edit>
+</match>
+
+<match target="font">
+ <test name="family" compare="eq">
+ <string>Kalapi</string>
+ </test>
+ <edit name="autohint" mode="assign">
+ <bool>true</bool>
+ </edit>
+</match>
+
+<alias>
+ <family>Kalapi</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+</alias>
+</fontconfig>
+
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a069fd6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,2 @@
+default:
+ ./generate.pe *.sfd
diff --git a/font-name.patch b/font-name.patch
new file mode 100644
index 0000000..da5298d
--- /dev/null
+++ b/font-name.patch
@@ -0,0 +1,41 @@
+diff -rup font-kalapi/Kalapi.sfd font-kalapi-mod/Kalapi.sfd
+--- font-kalapi/Kalapi.sfd 2012-07-01 13:38:17.000000000 +0530
++++ font-kalapi-mod/Kalapi.sfd 2012-07-27 13:07:27.535252696 +0530
+@@ -1,7 +1,7 @@
+ SplineFontDB: 3.0
+-FontName: KalapiUnicode
+-FullName: KalapiUnicode
+-FamilyName: KalapiUnicode
++FontName: Kalapi
++FullName: Kalapi
++FamilyName: Kalapi
+ Weight: Book
+ Copyright: (C) 2009-2012, GujaratiLexicon.com <info at gujaratilexicon.com>
+ Version: 1.0
+@@ -20,7 +20,7 @@ OS2Version: 0
+ OS2_WeightWidthSlopeOnly: 0
+ OS2_UseTypoMetrics: 1
+ CreationTime: 1255645485
+-ModificationTime: 1340087359
++ModificationTime: 1343323552
+ PfmFamily: 81
+ TTFWeight: 400
+ TTFWidth: 5
+@@ -897,7 +897,7 @@ ShortTable: maxp 16
+ 0
+ 0
+ EndShort
+-LangName: 1033 "" "" "Regular" "Fontographer 4.7 KalapiUnicode" "" "Fontographer 4.7 10/15/09 FG4M+AK0A-0000004045"
++LangName: 1033 "" "" "Regular" "Fontographer 4.7 Kalapi" "" "Fontographer 4.7 10/15/09 FG4M+AK0A-0000004045"
+ Encoding: UnicodeBmp
+ UnicodeInterp: none
+ NameList: Adobe Glyph List
+@@ -2640,7 +2640,7 @@ EndChar
+
+ StartChar: hyphen
+ Encoding: 45 45 16
+-AltUni2: 0000ad.ffffffff.0 002212.ffffffff.0
++AltUni2: 002212.ffffffff.0 0000ad.ffffffff.0
+ Width: 452
+ GlyphClass: 2
+ Flags: W
diff --git a/kalapi-fonts.spec b/kalapi-fonts.spec
new file mode 100644
index 0000000..3bd980a
--- /dev/null
+++ b/kalapi-fonts.spec
@@ -0,0 +1,60 @@
+%global fontname kalapi
+%global fontconf 67-%{fontname}.conf
+
+Name: %{fontname}-fonts
+Version: 0.1
+Release: 2%{?dist}
+Summary: OpenType sanserif font for Gujarati script
+Group: User Interface/X
+License: OFL
+URL: https://github.com/gujaratilexicon
+Source0: https://github.com/downloads/gujaratilexicon/font-kalapi/font-kalapi-%{version}.tar.gz
+BuildArch: noarch
+BuildRequires: fontforge
+BuildRequires: fontpackages-devel
+Requires: fontpackages-filesystem
+Source1: 67-kalapi.conf
+Source2: Makefile
+Patch1: font-name.patch
+
+
+%description
+This package provides a free Gujarati script TrueType/OpenType font.
+
+
+%prep
+%setup -q -n font-kalapi
+mv KalapiUnicode.sfd Kalapi.sfd
+%patch1 -p1 -b .1-changing-font-name
+
+
+%build
+cp -p %{SOURCE1} %{SOURCE2} .
+make
+
+%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 %{fontconf} \
+ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
+ln -s %{_fontconfig_templatedir}/%{fontconf} \
+ %{buildroot}%{_fontconfig_confdir}/%{fontconf}
+
+
+%_font_pkg -f %{fontconf} *.ttf
+
+%doc COPYRIGHT OFL.txt README.md
+
+
+%changelog
+* Fri Jul 27 2012 Pravin Satpute <psatpute at redhat.com> - 0.1-2
+- Dropped foundry name
+- updated as per suggestions in package review
+- updated as per upstream
+* Mon Jul 16 2012 Pravin Satpute <psatpute at redhat.com> - 0.1-1
+- Initial release
diff --git a/sources b/sources
index e69de29..0c427eb 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8f0238213f8125cd1540184a10022b76 font-kalapi-0.1.tar.gz
More information about the scm-commits
mailing list