[packages/fonts-TTF-RedHat-liberation-narrow] - LiberationSansNarrow fonts released separately

qboosh qboosh at pld-linux.org
Sun Dec 30 10:14:23 CET 2018


commit d8f87a8b39141412072b66e9238c29100c51880a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 30 10:19:02 2018 +0100

    - LiberationSansNarrow fonts released separately

 fonts-TTF-RedHat-liberation-narrow.spec | 68 +++++++++++++++++++++++++++++++++
 liberation-fonts-narrow.conf            | 16 ++++++++
 2 files changed, 84 insertions(+)
---
diff --git a/fonts-TTF-RedHat-liberation-narrow.spec b/fonts-TTF-RedHat-liberation-narrow.spec
new file mode 100644
index 0000000..a4304bb
--- /dev/null
+++ b/fonts-TTF-RedHat-liberation-narrow.spec
@@ -0,0 +1,68 @@
+Summary:	Fonts to replace commonly used Microsoft Windows Arial narrow fonts
+Summary(pl.UTF-8):	Fonty zastępujące popularny zestaw Arial narrow z Microsoft Windows
+Name:		fonts-TTF-RedHat-liberation-narrow
+Version:	1.07.6
+Release:	1
+License:	GPL v2 + exceptions
+Group:		Fonts
+#Source0Download: https://github.com/liberationfonts/liberation-sans-narrow/releases
+Source0:	https://github.com/liberationfonts/liberation-sans-narrow/files/2579430/liberation-narrow-fonts-%{version}.tar.gz
+# Source0-md5:	9a968114b222d6a03430a750504a7b15
+Source1:	liberation-fonts-narrow.conf
+URL:		https://github.com/liberationfonts/liberation-sans-narrow
+BuildRequires:	fontforge >= 20090923
+Requires(post,postun):	fontpostinst
+Requires:	%{_fontsdir}/TTF
+Obsoletes:	liberation-fonts-ttf
+Conflicts:	fonts-TTF-RedHat-liberation < 2
+Conflicts:	fonts-TTF-RedHat-liberation1 < 1.07.5
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_ttffontsdir	%{_fontsdir}/TTF
+
+%description
+The Liberation Fonts are intended to be replacements for the three
+most commonly used fonts on Microsoft systems.
+
+This package includes Sans Narrow (a substitute for Arial narrow).
+
+%description -l pl.UTF-8
+Fonty Liberation mają być zamiennikami trzech najczęściej używanych
+fontów z systemów Microsoftu.
+
+Ten pakiet zawiera Sans Narrow (zamiennik dla Arial narrow).
+
+%prep
+%setup -q -n liberation-narrow-fonts-%{version}
+
+%build
+%{__make}
+
+%{__mv} liberation-narrow-fonts-ttf-%{version}/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/conf.d,%{_datadir}/fontconfig/conf.avail}
+
+cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
+
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/59-liberation-narrow.conf
+
+ln -s %{_datadir}/fontconfig/conf.avail/59-liberation-narrow.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+fontpostinst TTF
+
+%postun
+fontpostinst TTF
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog License.txt README.rst TODO
+%{_ttffontsdir}/LiberationSansNarrow-*.ttf
+%{_datadir}/fontconfig/conf.avail/59-liberation-narrow.conf
+%{_sysconfdir}/fonts/conf.d/59-liberation-narrow.conf
diff --git a/liberation-fonts-narrow.conf b/liberation-fonts-narrow.conf
new file mode 100644
index 0000000..fdbe20d
--- /dev/null
+++ b/liberation-fonts-narrow.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+  <alias>
+    <family>sans-serif</family>
+    <prefer>
+      <family>Liberation Sans Narrow</family>
+    </prefer>
+  </alias>
+  <alias>
+    <family>Liberation Sans Narrow</family>
+    <default>
+      <family>sans-serif</family>
+    </default>
+  </alias>
+</fontconfig>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fonts-TTF-RedHat-liberation-narrow.git/commitdiff/d8f87a8b39141412072b66e9238c29100c51880a



More information about the pld-cvs-commit mailing list