Blame fira-code-fonts.spec

39d7317
%global fontname fira-code
39d7317
%global fontconf 60-%{fontname}.conf
39d7317
39d7317
Name:           %{fontname}-fonts
9d36e69
Version:        6.2
af762cd
Release:        4%{?dist}
39d7317
Summary:        Monospaced font with programming ligatures
39d7317
39d7317
License:        OFL
39d7317
URL:            https://github.com/tonsky/FiraCode
aa1e2a5
Source0:        https://github.com/tonsky/FiraCode/releases/download/%{version}/Fira_Code_v%{version}.zip#/%{name}-%{version}.zip
39d7317
Source1:        %{name}-fontconfig.conf
39d7317
Source2:        %{fontname}.metainfo.xml
39d7317
39d7317
BuildArch:      noarch
39d7317
BuildRequires:  fontpackages-devel
39d7317
BuildRequires:  libappstream-glib
39d7317
39d7317
Requires:       fontpackages-filesystem
39d7317
39d7317
%description
39d7317
Fira Code is an extension of the Fira Mono font containing a set of ligatures
39d7317
for common programming multi-character combinations. This is just a font
39d7317
rendering feature: underlying code remains ASCII-compatible. This helps to
39d7317
read and understand code faster. For some frequent sequences like .. or //,
39d7317
ligatures allow us to correct spacing.
39d7317
39d7317
39d7317
%prep
39d7317
%autosetup -c
39d7317
39d7317
39d7317
%build
39d7317
39d7317
39d7317
%install
39d7317
install -m 0755 -d %{buildroot}%{_fontdir}
483ecf0
install -m 0644 -p ttf/*.ttf %{buildroot}%{_fontdir}
39d7317
39d7317
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
39d7317
                   %{buildroot}%{_fontconfig_confdir}
39d7317
39d7317
install -m 0644 -p %{SOURCE1} \
39d7317
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
39d7317
39d7317
ln -s %{_fontconfig_templatedir}/%{fontconf} \
39d7317
        %{buildroot}%{_fontconfig_confdir}/%{fontconf}
39d7317
39d7317
# Add AppStream metadata file
39d7317
install -Dm 0644 -p %{SOURCE2} \
39d7317
        %{buildroot}%{_datadir}/metainfo/%{fontname}.metainfo.xml
39d7317
39d7317
%check
39d7317
appstream-util validate-relax --nonet \
39d7317
        %{buildroot}%{_datadir}/metainfo/%{fontname}.metainfo.xml
39d7317
483ecf0
%_font_pkg -f %{fontconf} *.ttf
39d7317
%{_datadir}/metainfo/%{fontname}.metainfo.xml
39d7317
39d7317
%changelog
af762cd
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-4
af762cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
af762cd
1b5ff4d
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-3
1b5ff4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
1b5ff4d
25a5192
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-2
25a5192
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
25a5192
9d36e69
* Tue Dec 07 2021 Michael Kuhn <suraia@fedoraproject.org> - 6.2-1
9d36e69
- Update to 6.2
9d36e69
b7c820d
* Fri Dec 03 2021 Michael Kuhn <suraia@fedoraproject.org> - 6.1-1
b7c820d
- Update to 6.1
b7c820d
aa1e2a5
* Mon Nov 29 2021 Michael Kuhn <suraia@fedoraproject.org> - 6-1
aa1e2a5
- Update to 6
aa1e2a5
d882ab8
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-4
d882ab8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d882ab8
c666f59
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-3
c666f59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
c666f59
449281d
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-2
449281d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
449281d
e495a5c
* Fri Jun 12 2020 Michael Kuhn <suraia@fedoraproject.org> - 5.2-1
e495a5c
- Update to 5.2
e495a5c
1418ea3
* Thu Jun 11 2020 Michael Kuhn <suraia@fedoraproject.org> - 5.1-1
1418ea3
- Update to 5.1
1418ea3
8f5dd6a
* Mon Jun 08 2020 Michael Kuhn <suraia@fedoraproject.org> - 5-1
8f5dd6a
- Update to 5
483ecf0
- Switch to TTF, see https://github.com/tonsky/FiraCode/issues/939
8f5dd6a
2d883b8
* Mon May 18 2020 Michael Kuhn <suraia@fedoraproject.org> - 4-1
2d883b8
- Update to 4
2d883b8
06b161d
* Wed Apr 15 2020 Michael Kuhn <suraia@fedoraproject.org> - 3.1-1
06b161d
- Update to 3.1
06b161d
848a554
* Fri Apr 10 2020 Michael Kuhn <suraia@fedoraproject.org> - 3-1
848a554
- Update to 3
848a554
672a1ba
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2-2
672a1ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
672a1ba
39d7317
* Thu Dec 05 2019 Michael Kuhn <suraia@fedoraproject.org> - 2-1
39d7317
- Initial package