Package Init
This commit is contained in:
parent
a3da1ec2f4
commit
edf1c86d8f
BIN
lato-fonts-2.015.zip
Normal file
BIN
lato-fonts-2.015.zip
Normal file
Binary file not shown.
24
lato-fonts-fontconfig.conf
Normal file
24
lato-fonts-fontconfig.conf
Normal 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
48
lato-fonts.spec
Normal 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
23
lato.metainfo.xml
Normal 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 typeface family designed in the Summer 2010 by
|
||||||
|
Warsaw-based designer Łukasz Dziedzic (“Lato” means “Summer” 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 2013 – 2014, 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>
|
||||||
Loading…
x
Reference in New Issue
Block a user