Files
desktop/hack-fonts/hack-fonts.spec
2026-03-11 16:49:18 +08:00

56 lines
1.5 KiB
RPMSpec

%define realname Hack
%define extraver -ttf
%define srcext zip
# Common info
Name: hack-fonts
Version: 3.003
Release: 0
Summary: A typeface designed for source code
License: Bitstream-Vera AND MIT
# rpmlint has not been updated yet to reflect the new license names already present on
# format specfile https://github.com/rpm-software-management/rpmlint/pull/982
URL: http://sourcefoundry.org/hack/
Source: https://github.com/source-foundry/Hack/releases/download/v%{version}/%{realname}-v%{version}%{?extraver}.%{srcext}
Source1: README.md
Source2: LICENSE.md
BuildRequires: fontpackages-devel
BuildRequires: unzip
%reconfigure_fonts_prereq
Provides: %{realname} = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A typeface designed for source code
Hack includes monospaced regular, bold, oblique, and bold oblique sets to cover
all of your syntax highlighting needs.
Over 1500 glyphs that include lovingly tuned expanded Latin, modern Greek, and
Cyrillic character sets.
Powerline glyphs are included in the regular set. Patching is not necessary.
Install and go.
%prep
%setup -q -n %{realname}-%{version}%{?extraver} -c
%build
%install
mkdir -p %{buildroot}%{_ttfontsdir}
install -m644 ttf/*.ttf %{buildroot}%{_ttfontsdir}
install -d %{buildroot}%{_docdir}/%{name}
install -m644 %{S:1} %{S:2} %{buildroot}%{_docdir}/%{name}
%reconfigure_fonts_scriptlets
%files
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%{_ttfontsdir}
%changelog