Репозиторий Sisyphus
Последнее обновление: 2 декабря 2022 | Пакетов: 17956 | Посещений: 25449731
en ru br
Репозитории ALT
5.1: 1.04-alt1
4.1: 1.04-alt0.M41.1
4.0: 1.04-alt0.M40.1

Группа :: Система/Шрифты/True type
Пакет: fonts-ttf-liberation

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define priority 60
%define fontname liberation
%define fontconf %{priority}-%{fontname}
%define oldname liberation-fonts

Name: fonts-ttf-%fontname
Version: 2.00.4
Release: alt2

Summary: Fonts to replace commonly used Microsoft Windows Fonts

License: SIL Open Font License Version 1.1
Group: System/Fonts/True type
Url: https://github.com/liberationfonts/liberation-fonts

Packager: Vitaly Lipatov <lav at altlinux.ru>

# Source-url: https://github.com/liberationfonts/liberation-fonts/archive/%version.tar.gz

Source: %name-%version.tar
Source2:          %{oldname}-mono.conf
Source3:          %{oldname}-sans.conf
Source4:          %{oldname}-serif.conf

BuildArch: noarch

Provides: fonts-ttf-core

# TODO: split into subpackages

Provides: fonts-ttf-liberation-mono = %version
Provides: fonts-ttf-liberation-sans = %version
Provides: fonts-ttf-liberation-serif = %version

# Additional font which used to be in this package (until 2.00.1-alt1); useful

# as a replacement for the popular Arial Narrow (found in many official forms).
Requires: %name-narrow

# To satisfy requirements of official Google Chrome RPM package

Provides: liberation-fonts

BuildRequires: rpm-build-fonts rpm-macros-fontpackages
BuildRequires: python3-module-fonttools fontforge fontpackages-devel

The Liberation Fonts are intended to be replacements for the three
most commonly used fonts on Microsoft systems: Times New Roman,
Arial, and Courier New.



# Fedora fix for https://bugzilla.redhat.com/show_bug.cgi?id=1526510

sed -i 's/OS2_UseTypoMetrics: 1/OS2_UseTypoMetrics: 0/g' src/*.sfd

mv liberation-fonts-ttf-%version/*.ttf ./

%ttf_fonts_install %fontname

mkdir -p %{buildroot}%{_fontconfig_templatedir}/ %{buildroot}%{_fontconfig_confdir}/
# Repeat for every font family
install -m 0644 -p %{SOURCE2} \
install -m 0644 -p %{SOURCE3} \
install -m 0644 -p %{SOURCE4} \

for fconf in %{fontconf}-mono.conf \
            %{fontconf}-sans.conf \
            %{fontconf}-serif.conf; do
 ln -s %{_fontconfig_templatedir}/$fconf \

%files -f %fontname.files
%config(noreplace) %{_fontconfig_confdir}/*-%{fontname}-*.conf


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin