[paratype-pt-mono-fonts] Initial import (#1165300)

Rajeesh K Nambiar rajeeshknambiar at fedoraproject.org
Mon Nov 24 14:48:39 UTC 2014


commit 41812dd6623241d3daac9af00eccce1cc5c8e661
Author: Rajeesh K Nambiar <rajeeshknambiar at gmail.com>
Date:   Mon Nov 24 15:47:57 2014 +0100

    Initial import (#1165300)

 .gitignore                             |    1 +
 paratype-pt-mono-fonts-fontconfig.conf |   16 +++++++
 paratype-pt-mono-fonts.spec            |   78 ++++++++++++++++++++++++++++++++
 paratype-pt-mono.metainfo.xml          |   27 +++++++++++
 sources                                |    1 +
 5 files changed, 123 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3f6ea78 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/PTMonoOFL.zip
diff --git a/paratype-pt-mono-fonts-fontconfig.conf b/paratype-pt-mono-fonts-fontconfig.conf
new file mode 100644
index 0000000..d150b46
--- /dev/null
+++ b/paratype-pt-mono-fonts-fontconfig.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+  <alias>
+    <family>monospace</family>
+    <prefer>
+      <family>PT Mono</family>
+    </prefer>
+  </alias>
+  <alias>
+    <family>PT Mono</family>
+    <default>
+      <family>monospace</family>
+    </default>
+  </alias>
+</fontconfig>
diff --git a/paratype-pt-mono-fonts.spec b/paratype-pt-mono-fonts.spec
new file mode 100644
index 0000000..91e9afe
--- /dev/null
+++ b/paratype-pt-mono-fonts.spec
@@ -0,0 +1,78 @@
+%global fontname paratype-pt-mono
+%global fontconf 57-%{fontname}
+
+%global common_desc \
+Font PT Mono™ is the last addition to the pan-Cyrillic font superfamily \
+including PT Sans and PT Serif developed for the project “Public Types \
+of Russian Federation”. \
+\
+PT Mono was developed for the special needs — for use in forms, tables, \
+work sheets etc. Equal widths of characters are very helpful in setting \
+complex documents, with such font you may easily calculate size of entry \
+fields, column widths in tables and so on. One of the most important area \
+of use is Web sites of “electronic governments” where visitors have to fill \
+different request forms. PT Mono consists of Regular and Bold styles. \
+\
+PT Mono was designed by Alexandra Korolkova with participation of \
+Isabella Chaeva and with financial support of Google.\
+
+
+Name:           %{fontname}-fonts
+Version:        20141121
+Release:        1%{?dist}
+Summary:        A pan-Cyrillic monospace typeface
+
+License:        OFL
+URL:            http://www.paratype.com/public/
+Source0:        http://www.fontstock.com/public/PTMonoOFL.zip
+Source10:       %{name}-fontconfig.conf
+Source11:       %{fontname}.metainfo.xml
+
+BuildArch:      noarch
+Requires:       fontpackages-filesystem
+BuildRequires:  fontpackages-devel
+
+%description
+%common_desc
+
+This package consists of Regular and Bold styles.
+
+%_font_pkg -f %{fontconf}.conf PTM*.ttf
+%doc *.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
+
+
+%prep
+%setup -q -c
+sed -i "s|\r||g" *.txt
+
+%build
+echo "Nothing to build"
+
+%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 %{SOURCE10} \
+        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
+
+for fconf in %{fontconf}.conf ; do
+  ln -s %{_fontconfig_templatedir}/$fconf \
+        %{buildroot}%{_fontconfig_confdir}/$fconf
+done
+
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE11} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+
+
+%changelog
+* Fri Nov 21 2014 Rajeesh K V <rajeesh AT inflo DOT ws> - 20141121-1
+- Changed version to today in YYYYMMDD format
+- Fixed wrong end of line encoding in license text
+
+* Mon Nov 17 2014 Rajeesh K V <rajeesh AT inflo DOT ws> - 20113012-1
+- Initial packaging
diff --git a/paratype-pt-mono.metainfo.xml b/paratype-pt-mono.metainfo.xml
new file mode 100644
index 0000000..d229202
--- /dev/null
+++ b/paratype-pt-mono.metainfo.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Rajeesh K V <rajeesh AT inflo DOT ws> -->
+<component type="font">
+  <id>paratype-pt-mono</id>
+  <metadata_license>CC-BY-3.0</metadata_license>
+  <name>PT Mono</name>
+  <summary>A pan-Cyrillic monospace typeface</summary>
+  <description>
+    <p>
+    Font PT Mono™ — the last addition to the pan-Cyrillic font superfamily 
+	PT Sans – PT Serif developed for the project “Public Types of Russian Federation”.
+
+	PT Mono was developed for the special needs — for use in forms, tables,
+	work sheets etc. Equal widths of characters are very helpful in setting
+	complex documents, with such font you may easily calculate size of entry 
+	fields, column widths in tables and so on. One of the most important area 
+	of use is Web sites of «electronic governments» where visitors have to fill 
+	different request forms. Currently PT Mono consists of just one Regular style.
+
+	PT Mono was designed by Alexandra Korolkova with participation of 
+	Isabella Chaeva and with financial support of Google.
+	</p>
+  </description>
+  <updatecontact>rajeesh_at_inflo_dot_ws</updatecontact>
+  <url type="homepage">http://www.paratype.com/public/</url>
+</component>
+
diff --git a/sources b/sources
index e69de29..1235ef6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1c6d5c30fca24130b2888b9427a75134  PTMonoOFL.zip


More information about the scm-commits mailing list