commit 03dbbba948c3560ba0746cfdd0b08c214ce45056 Author: tigro Date: Mon Jun 26 10:38:03 2023 +0300 import changed/i9/libre-baskerville-fonts-1.0-3.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ccde3b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libre-baskerville-fonts-1.0.tar.xz diff --git a/.libre-baskerville-fonts.metadata b/.libre-baskerville-fonts.metadata new file mode 100644 index 0000000..82a852c --- /dev/null +++ b/.libre-baskerville-fonts.metadata @@ -0,0 +1 @@ +832304923e85f2cb95a1f302dc1e4a062da53ed1 SOURCES/libre-baskerville-fonts-1.0.tar.xz diff --git a/SOURCES/get-libre-baskerville.sh b/SOURCES/get-libre-baskerville.sh new file mode 100755 index 0000000..1369333 --- /dev/null +++ b/SOURCES/get-libre-baskerville.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# Get upstream zip and make source tar.gz + +ARCHIVE="libre-baskerville-fonts-1.0" +TMPDIR=$(mktemp -d --tmpdir=/var/tmp getlibrebaskerville-XXXXXXXXXX) +[ $? != 0 ] && exit 1 +umask 022 +pushd "$TMPDIR" + +wget -N -O $ARCHIVE.zip https://fonts.google.com/download?family=Libre%20Baskerville +unzip $ARCHIVE.zip -d $ARCHIVE +tar -cvJf "$ARCHIVE.tar.xz" $ARCHIVE + +popd +mv "$TMPDIR/$ARCHIVE.tar.xz" . +rm -fr "$TMPDIR" diff --git a/SOURCES/libre-baskerville-fontconfig.conf b/SOURCES/libre-baskerville-fontconfig.conf new file mode 100644 index 0000000..197423c --- /dev/null +++ b/SOURCES/libre-baskerville-fontconfig.conf @@ -0,0 +1,18 @@ + + + + + + Libre Baskerville + + serif + + + + serif + + Libre Baskerville + + + + diff --git a/SPECS/libre-baskerville-fonts.spec b/SPECS/libre-baskerville-fonts.spec new file mode 100644 index 0000000..fa95f8e --- /dev/null +++ b/SPECS/libre-baskerville-fonts.spec @@ -0,0 +1,57 @@ +%global fontname libre-baskerville +%global fontconf 63-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 1.0 +Release: 3%{?dist} +Summary: Libre Baskerville font designed by Pablo Impallari +Group: User Interface/X +License: OFL +URL: https://fonts.google.com/specimen/Libre+Baskerville +Source0: %{name}-%{version}.tar.xz +Source1: %{fontname}-fontconfig.conf +Source2: get-libre-baskerville.sh + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Libre Baskerville is a web font optimized for body text (typically 16px.) +It is based on the American Type Founder's Baskerville from 1941, but it +has a taller x-height, wider counters and a little less contrast, that +allow it to work well for reading on-screen. + + +%prep +%setup -q + +%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 %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +mv OFL.txt LICENSE +sed -i 's/\r$//' LICENSE + +%_font_pkg -f %{fontconf} *.ttf +%license LICENSE + +%changelog +* Fri Oct 30 2020 Dawid Zych 1.0-3 +- Download font from Google Fonts (@paul) + +* Wed Jan 11 2017 Dawid Zych 1.0-2 +- Update fontconfig and it's priority. + +* Thu Jan 05 2017 Dawid Zych 1.0-1 +- Initial packaging.