package init

This commit is contained in:
ultra_planet 2020-02-14 11:05:42 +08:00
parent 727cb104d3
commit eb5bf0a0a3
4 changed files with 86 additions and 0 deletions

BIN
3.0.3.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>Overpass</family>
<prefer>
<family>sans-serif</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<default>
<family>Overpass</family>
</default>
</alias>
</fontconfig>

54
overpass-fonts.spec Normal file
View File

@ -0,0 +1,54 @@
%global fontname overpass
Name: %{fontname}-fonts
Version: 3.0.3
Release: 4
Summary: Overpass fonts
License: OFL or LGPLv2+
URL: https://github.com/RedHatBrand/overpass/
Source0: https://github.com/RedHatBrand/Overpass/archive/%{version}.tar.gz
Source1: %{name}-fontconfig.conf
Source2: overpass-mono-fonts-fontconfig.conf
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%description
This package provides free and open source overpass fonts.It is based on the U.S.
interstate highway road signage type system.
%package -n overpass-mono-fonts
Summary: Monospace overpass fonts
%description -n overpass-mono-fonts
This package provides free and open source overpass fonts.It is based on the U.S.
interstate highway road signage type system.It is monospace font.
%prep
%setup -q -n Overpass-%{version}
%build
%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p desktop-fonts/overpass*/*.otf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_confdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir}
install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/60-overpass-mono.conf
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/60-overpass.conf
ln -s %{_fontconfig_templatedir}/60-overpass-mono.conf %{buildroot}%{_fontconfig_confdir}/60-overpass-mono.conf
ln -s %{_fontconfig_templatedir}/60-overpass.conf %{buildroot}%{_fontconfig_confdir}/60-overpass.conf
%_font_pkg -f 60-overpass.conf overpass-bold*.otf overpass-extra*.otf overpass-heavy*.otf overpass-italic*.otf overpass-light*.otf overpass-regular*.otf overpass-semibold*.otf overpass-thin*.otf
%doc overpass-specimen.pdf README.md
%license LICENSE.md
%_font_pkg -n overpass-mono -f 60-overpass-mono.conf overpass-mono-*.otf
%doc overpass-mono-specimen.pdf README.md
%license LICENSE.md
%changelog
* Fri Feb 14 2020 lingsheng <lingsheng@huawei.com> - 3.0.3-4
- Package init

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>Overpass Mono</family>
<prefer>
<family>monospace</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<default>
<family>Overpass Mono</family>
</default>
</alias>
</fontconfig>