i8ce
changed/i9/libre-baskerville-fonts-1.0-3.el9
commit
03dbbba948
@ -0,0 +1 @@
|
|||||||
|
SOURCES/libre-baskerville-fonts-1.0.tar.xz
|
@ -0,0 +1 @@
|
|||||||
|
832304923e85f2cb95a1f302dc1e4a062da53ed1 SOURCES/libre-baskerville-fonts-1.0.tar.xz
|
@ -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"
|
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
|
||||||
|
<alias>
|
||||||
|
<family>Libre Baskerville</family>
|
||||||
|
<default>
|
||||||
|
<family>serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<alias>
|
||||||
|
<family>serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Libre Baskerville</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
|
||||||
|
</fontconfig>
|
@ -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 <dawid.zych@yandex.com> 1.0-3
|
||||||
|
- Download font from Google Fonts (@paul)
|
||||||
|
|
||||||
|
* Wed Jan 11 2017 Dawid Zych <dawid.zych@yandex.com> 1.0-2
|
||||||
|
- Update fontconfig and it's priority.
|
||||||
|
|
||||||
|
* Thu Jan 05 2017 Dawid Zych <dawid.zych@yandex.com> 1.0-1
|
||||||
|
- Initial packaging.
|
Loading…
Reference in new issue