1 Star 0 Fork 5

rockerzhu/fontawesome-fonts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fontawesome-fonts.spec 3.56 KB
一键复制 编辑 原始数据 按行查看 历史
%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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rockerzhu/fontawesome-fonts.git
git@gitee.com:rockerzhu/fontawesome-fonts.git
rockerzhu
fontawesome-fonts
fontawesome-fonts
master

搜索帮助