diff --git a/.gitignore b/.gitignore index e69de29..5d47936 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/otf-hermit-1.21.tar.gz diff --git a/pcaro-hermit-fonts-fontconfig.conf b/pcaro-hermit-fonts-fontconfig.conf new file mode 100644 index 0000000..798cec8 --- /dev/null +++ b/pcaro-hermit-fonts-fontconfig.conf @@ -0,0 +1,17 @@ + + + + + monospace + + Hermit + + + + Hermit + + monospace + + + + diff --git a/pcaro-hermit-fonts.spec b/pcaro-hermit-fonts.spec new file mode 100644 index 0000000..4251f6f --- /dev/null +++ b/pcaro-hermit-fonts.spec @@ -0,0 +1,69 @@ +%global fontname pcaro-hermit +%global fontconf 69-%{fontname}.conf + +Name: %{fontname}-fonts +Version: 1.21 +Release: 4%{?dist} +Summary: Hermit monospace fonts + +License: OFL +URL: https://pcaro.es/p/hermit +Source0: https://pcaro.es/d/otf-hermit-%{version}.tar.gz +Source1: %{name}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + + +%description +Hermit is a monospace font designed to be clear, pragmatic and very readable. +Its creation has been focused on programming. Every glyph was carefully planned +and calculated, according to defined principles and rules. For this reason, +Hermit is coherent and regular. + + +%prep +%setup -cq + + +%build + + +%install +sed -i "s|\r||g" LICENSE # remove windows encoding of LICENSE file + +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p *.otf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + + +%_font_pkg -f %{fontconf} *.otf + + +%doc LICENSE + + +%changelog +* Thu Jul 31 2014 Ryan Brown - 1.21-4 +- Respond to Parag An's review bz#1124070 +- Change the way DOS line endings are removed + +* Thu Jul 31 2014 Ryan Brown - 1.21-3 +- Respond to Parag An's review bz#1124070 +- Add empty %%build section to satisfy rpmlint +- Remove optional Group tag + +* Mon Jul 28 2014 Ryan Brown - 1.21-2 +- Fix rpmlint encoding and spelling errors + +* Mon Jul 28 2014 Ryan Brown - 1.21-1 +- Created package +- Pulled 1.21 source from upstream diff --git a/sources b/sources index e69de29..8230f87 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +95e44bd81eb96f04e129ee019726db9a otf-hermit-1.21.tar.gz