代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/fontawesome-fonts 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global fontname fontawesome
%global fontconf 60-%{fontname}.conf
%define major_ver %(echo %version | cut -d. -f1)
Summary: Iconic font set
Name: %{fontname}-fonts
Version: 4.7.0
Release: 7%{?dist}
License: OFL
URL: http://fontawesome.io
%if %{major_ver} < 5
Source0: %{url}/assets/font-awesome-%{version}.zip
%else
Source0: https://github.com/FortAwesome/Font-Awesome/archive/%{version}/Font-Awesome-%{version}.tar.gz
%endif
Source1: %{name}-fontconfig.conf
Source2: README-Trademarks.txt
BuildRequires: fontpackages-devel ttembed
Requires: fontpackages-filesystem
BuildArch: noarch
%description
Font Awesome gives you scalable vector icons that can instantly be customized — size, color, drop shadow,
and anything that can be done with the power of CSS.
This package contains OpenType and TrueType font files which are typically used locally.
%package web
License: OFL and MIT
Requires: %{fontname}-fonts = %{version}-%{release}
Summary: Iconic font set, web files
%description web
Font Awesome gives you scalable vector icons that can instantly be customized — size, color, drop shadow,
and anything that can be done with the power of CSS.
This package contains CSS, SCSS and LESS style files as well as Web Open Font Format versions 1 and 2,
Embedded OpenType and SVG font files which are typically used on the web.
%prep
%if %{major_ver} < 5
%autosetup -n font-awesome-%{version} -p1
%else
%autosetup -n Font-Awesome-%{version} -p1
%endif
cp -p %{SOURCE2} .
%build
ttembed fonts/*.ttf fonts/*.otf
%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p fonts/*.ttf fonts/*.otf fonts/*.woff fonts/*.svg fonts/*.woff2 fonts/*.eot %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_confdir}
install -Dm 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
install -m 0755 -d %{buildroot}%{_datadir}/font-awesome-web/
cp -a css less scss %{buildroot}%{_datadir}/font-awesome-web/
%files
%doc README-Trademarks.txt
%{_fontconfig_templatedir}/%{fontconf}
%{_fontconfig_confdir}/%{fontconf}
%{_fontbasedir}/%{fontname}/*.ttf
%{_fontbasedir}/%{fontname}/*.otf
%exclude %{_datadir}/fonts/fontawesome/fontawesome-webfont.svg
%exclude %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff
%exclude %{_datadir}/fonts/fontawesome/fontawesome-webfont.woff2
%exclude %{_datadir}/fonts/fontawesome/fontawesome-webfont.eot
%files web
%{_datadir}/font-awesome-web/
%{_datadir}/fonts/fontawesome/fontawesome-webfont.svg
%{_datadir}/fonts/fontawesome/fontawesome-webfont.woff
%{_datadir}/fonts/fontawesome/fontawesome-webfont.woff2
%{_datadir}/fonts/fontawesome/fontawesome-webfont.eot
%changelog
* Mon Aug 19 2024 rockerzhu <rockerzhu@tencent.com> - 4.7.0-7
- Refresh source url for auto upgrade to new versions.
* Fri Aug 16 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.7.0-6
- Rebuilt for loongarch release
* Wed Sep 13 2023 rockerzhu <rockerzhu@tencent.com> - 4.7.0-5
- Rebuilt for fontconfig to privode font(:lang=)
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.7.0-4
- Rebuilt for OpenCloudOS Stream 23.09
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.7.0-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.7.0-2
- Rebuilt for OpenCloudOS Stream 23
* Thu Dec 1 2022 Shuo Wang <abushwang@tencent.com> - 4.7.0-1
- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。