Package Init

This commit is contained in:
qiegewala 2020-02-14 12:13:15 +08:00
parent a3da1ec2f4
commit edf1c86d8f
4 changed files with 95 additions and 0 deletions

BIN
lato-fonts-2.015.zip Normal file

Binary file not shown.

View File

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<match target="scan">
<test name="family">
<string>Lato</string>
</test>
<edit name="fontversion">
<int>12</int>
</edit>
</match>
<alias>
<family>sans-serif</family>
<default>
<family>Lato</family>
</default>
</alias>
<alias>
<family>Lato</family>
<default>
<family>sans-serif</family>
</default>
</alias>
</fontconfig>

48
lato-fonts.spec Normal file
View File

@ -0,0 +1,48 @@
Name: lato-fonts
Version: 2.015
Release: 8
Summary: A sanserif typeface family
License: OFL
URL: http://www.latofonts.com/
Source0: lato-fonts-2.015.zip
Source1: lato-fonts-fontconfig.conf
Source2: lato.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
Provides: google-lato-fonts = 2.015-7
Obsoletes: google-lato-fonts < 1.014-1
%description
Lato is a sanserif typeface family. It consists of nine weights and covers
2300+ glyphs per style and supports 100+ Latin-based languages, 50+
Cyrillic-based languages as well as Greek and IPA phonetics.
%prep
%setup -q -c
sed "s/\r//" Lato2OFL/OFL.txt > Lato2OFL/OFL.txt.new
touch -r Lato2OFL/OFL.txt Lato2OFL/OFL.txt.new
mv Lato2OFL/OFL.txt.new Lato2OFL/OFL.txt
chmod 0644 Lato2OFL/{OFL.txt,README.txt}
%build
%install
install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir}
install -m 0644 -p Lato2OFL/*.ttf $RPM_BUILD_ROOT%{_fontdir}
install -m 0755 -d $RPM_BUILD_ROOT%{_fontconfig_templatedir} $RPM_BUILD_ROOT%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/61-lato.conf
ln -s %{_fontconfig_templatedir}/61-lato.conf $RPM_BUILD_ROOT%{_fontconfig_confdir}/61-lato.conf
install -Dm 0644 -p %{SOURCE2} \
%{buildroot}%{_datadir}/appdata/lato.metainfo.xml
%_font_pkg -f 61-lato.conf *.ttf
%doc Lato2OFL/README.txt
%license Lato2OFL/OFL.txt
%{_datadir}/appdata/lato.metainfo.xml
%changelog
* Wed Jan 15 2020 lihao <lihao129@huawei.com> - 2.015-8
- Bump release number
* Tue Nov 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.015-7
- Package init

23
lato.metainfo.xml Normal file
View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
<component type="font">
<id>lato</id>
<metadata_license>CC0-1.0</metadata_license>
<name>Lato</name>
<summary>high-quality open-source font family</summary>
<description>
<p>
Lato is a sanserif type­face family designed in the Summer 2010 by
Warsaw-based designer Łukasz Dziedzic (“Lato” means “Sum­mer” in Polish).
In December 2010 the Lato family was published under the open-source Open
Font License by his foundry tyPoland, with support from Google.
In 20132014, the family was greatly extended to cover 3000+ glyphs per
style. The Lato 2.010 family now supports 100+ Latin-based languages,
50+ Cyrillic-based languages as well as Greek and IPA phonetics.
In the process, the metrics and kerning of the family have been revised
and four additional weights were created.
</p>
</description>
<url type="homepage">http://www.latofonts.com/</url>
</component>