overpass-fonts/overpass-fonts.spec
cherry530 16f49a909b License compliance rectification
Signed-off-by: cherry530 <707078654@qq.com>
(cherry picked from commit 358c9ebbe62fa823ab656b5a6c1e6836e03d2037)
2024-11-18 17:13:06 +08:00

64 lines
2.2 KiB
RPMSpec

%global fontname overpass
Name: %{fontname}-fonts
Version: 3.0.5
Release: 2
Summary: Overpass fonts
License: OFL-1.1 or LGPLv2+
URL: https://github.com/RedHatBrand/overpass/
Source0: https://github.com/RedHatOfficial/Overpass/releases/download/v%{version}/overpass-%{version}.zip
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
* Tue Jul 30 2024 xu_ping <707078654@qq.com> - 3.0.5-2
- License compliance rectification
* Thu Oct 12 2023 liyanan <thistleslyn@163.com> - 3.0.5-1
- Update to 3.0.5
* Thu Jun 16 2022 SimpleUpdate Robot <tc@openeuler.org> - 3.0.4-1
- Upgrade to version 3.0.4
* Fri Feb 14 2020 lingsheng <lingsheng@huawei.com> - 3.0.3-4
- Package init