[paratype-pt-serif-fonts] Initial import (#1165299)

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


commit 04337ad918904dd76a27d1186422596a07e221db
Author: Rajeesh K Nambiar <rajeeshknambiar at gmail.com>
Date:   Mon Nov 24 15:35:26 2014 +0100

    Initial import (#1165299)

 .gitignore                                      |    1 +
 paratype-pt-serif-caption.metainfo.xml          |    8 ++
 paratype-pt-serif-fonts-caption-fontconfig.conf |   16 ++++
 paratype-pt-serif-fonts-fontconfig.conf         |   22 +++++
 paratype-pt-serif-fonts.spec                    |  101 +++++++++++++++++++++++
 paratype-pt-serif.metainfo.xml                  |   28 ++++++
 sources                                         |    1 +
 7 files changed, 177 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..248cf23 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/PTSerifOFL.zip
diff --git a/paratype-pt-serif-caption.metainfo.xml b/paratype-pt-serif-caption.metainfo.xml
new file mode 100644
index 0000000..0d1b672
--- /dev/null
+++ b/paratype-pt-serif-caption.metainfo.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Rajeesh K V <rajeesh AT inflow DOT ws> -->
+<component type="font">
+  <id>paratype-pt-serif-caption</id>
+  <metadata_license>CC-BY-3.0</metadata_license>
+  <extends>paratype-pt-serif</extends>
+</component>
+
diff --git a/paratype-pt-serif-fonts-caption-fontconfig.conf b/paratype-pt-serif-fonts-caption-fontconfig.conf
new file mode 100644
index 0000000..641c737
--- /dev/null
+++ b/paratype-pt-serif-fonts-caption-fontconfig.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+  <alias>
+    <family>PT Serif Caption</family>
+    <default>
+      <family>serif</family>
+    </default>
+  </alias>
+  <alias binding="same">
+    <family>PT Serif</family>
+    <accept>
+      <family>PT Serif Caption</family>
+    </accept>
+  </alias>
+</fontconfig>
diff --git a/paratype-pt-serif-fonts-fontconfig.conf b/paratype-pt-serif-fonts-fontconfig.conf
new file mode 100644
index 0000000..2b93e50
--- /dev/null
+++ b/paratype-pt-serif-fonts-fontconfig.conf
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+  <alias>
+    <family>serif</family>
+    <prefer>
+      <family>PT Serif</family>
+    </prefer>
+  </alias>
+  <alias>
+    <family>PT Serif</family>
+    <default>
+      <family>serif</family>
+    </default>
+  </alias>
+  <alias binding="same">
+    <family>PT Serif Caption</family>
+    <accept>
+      <family>PT Serif</family>
+    </accept>
+  </alias>
+</fontconfig>
diff --git a/paratype-pt-serif-fonts.spec b/paratype-pt-serif-fonts.spec
new file mode 100644
index 0000000..52e4a76
--- /dev/null
+++ b/paratype-pt-serif-fonts.spec
@@ -0,0 +1,101 @@
+%global fontname paratype-pt-serif
+%global fontconf 57-%{fontname}
+
+%global common_desc \
+The PT Serif family was developed as a second part of the project \
+“Public Types of Russian Federation”. This project aims at enabling \
+The project is dedicated to the 300-year anniversary of the Russian civil \
+type invented by Peter the Great from 1708 to 1710, and was realized \
+with financial support from the Russian Federal Agency for Press and \
+Mass Communications. \
+\
+PT Serif is a transitional serif face with humanistic terminals designed \
+for use together with PT Sans and harmonized with PT Sans on metrics, \
+proportions, weights and design. PT Serif consists of six styles: regular \
+and bold weights with corresponding italics form a standard computer font \
+family for basic text setting; two caption styles (regular and italic) \
+are for texts of small point sizes. \
+\
+PT Serif was designed by Alexandra Korolkova with participation \
+of Olga Umpeleva and under supervision of Vladimir Yefimov. \
+
+Name:           %{fontname}-fonts
+Version:        20141121
+Release:        1%{?dist}
+Summary:        A pan-Cyrillic typeface
+
+License:        OFL
+URL:            http://www.paratype.com/public/
+Source0:        http://www.fontstock.com/public/PTSerifOFL.zip
+Source10:       %{name}-fontconfig.conf
+Source11:       %{name}-caption-fontconfig.conf
+Source12:       %{fontname}.metainfo.xml
+Source13:       %{fontname}-caption.metainfo.xml
+
+BuildArch:      noarch
+Requires:       fontpackages-filesystem
+BuildRequires:  fontpackages-devel
+
+%description
+%common_desc
+
+This package includes regular, bold and their italic styles.
+
+%_font_pkg -f %{fontconf}.conf PTF*.ttf
+%doc *.txt
+%{_datadir}/appdata/%{fontname}.metainfo.xml
+
+
+%package -n %{fontname}-caption-fonts
+Summary:        A pan-Cyrillic typeface (caption forms for small text)
+BuildRequires:  fontpackages-devel
+
+%description -n %{fontname}-caption-fonts
+%common_desc
+
+This package includes 2 captions styles for small text sizes.
+
+%_font_pkg -n caption -f %{fontconf}-caption.conf PTZ*.ttf
+%doc *.txt
+%{_datadir}/appdata/%{fontname}-caption.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
+install -m 0644 -p %{SOURCE11} \
+        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-caption.conf
+
+for fconf in %{fontconf}.conf \
+             %{fontconf}-caption.conf ; do
+  ln -s %{_fontconfig_templatedir}/$fconf \
+        %{buildroot}%{_fontconfig_confdir}/$fconf
+done
+
+# Add AppStream metadata
+install -Dm 0644 -p %{SOURCE12} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
+install -Dm 0644 -p %{SOURCE13} \
+        %{buildroot}%{_datadir}/appdata/%{fontname}-caption.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> - 20103012-1
+- Initial packaging
diff --git a/paratype-pt-serif.metainfo.xml b/paratype-pt-serif.metainfo.xml
new file mode 100644
index 0000000..8185425
--- /dev/null
+++ b/paratype-pt-serif.metainfo.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Rajeesh K V <rajeesh AT inflo DOT ws> -->
+<component type="font">
+  <id>paratype-pt-serif</id>
+  <metadata_license>CC-BY-3.0</metadata_license>
+  <name>PT Serif</name>
+  <summary>A pan-Cyrillic serif typeface</summary>
+  <description>
+    <p>
+    PT Serif™ family was developed as a second part of the project 
+	“Public Type of Russian Federation”. PT Serif has got open user license
+	and can be freely distributed. The project is dedicated to 300-year 
+	anniversary of the civil type invented by Peter the Great in 1708–1710
+	years and was realized with financial support from Federal Agency
+	for Press and Mass Communications.
+
+	PT Serif is a transitional serif face with humanistic terminals designed
+	for use together with PT Sans and harmonized with PT Sans on metrics, 
+	proportions, weights and design. PT Serif consists of six styles: regular 
+	and bold weights with corresponding italics form a standard computer font 
+	family for basic text setting; two caption styles (regular and italic) 
+	are for texts of small point sizes.
+	</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..ae74d13 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4dd07baa86fd30977cdfabd82bf2ad1d  PTSerifOFL.zip


More information about the scm-commits mailing list