commit 9f0d1a32fc27b434e9f0ee21932c30f4af991425 Author: Toshaan Bharvani Date: Wed Oct 12 10:05:00 2022 +0200 initial package creation Signed-off-by: Toshaan Bharvani diff --git a/SOURCES/65-rbanffy-3270-fonts.conf b/SOURCES/65-rbanffy-3270-fonts.conf new file mode 100644 index 0000000..20fed2d --- /dev/null +++ b/SOURCES/65-rbanffy-3270-fonts.conf @@ -0,0 +1,65 @@ + + + + + + + IBM 3270 + + + 2 + + + + + IBM 3270 Condensed + + + IBM 3270 + + + IBM 3270 Condensed + + + 1 + + + + IBM 3270 Condensed + + IBM 3270 + + + + + IBM 3270 Semi-Condensed + + + IBM 3270 + + + IBM 3270 SemiCondensed + + + 1 + + + + IBM 3270 Semi-Condensed + + IBM 3270 + + + + monospace + + IBM 3270 + + + + IBM 3270 + + monospace + + + diff --git a/SPECS/fonts-3270.spec b/SPECS/fonts-3270.spec new file mode 100644 index 0000000..69eafa4 --- /dev/null +++ b/SPECS/fonts-3270.spec @@ -0,0 +1,51 @@ +%global srcname 3270font +%global foundry rbanffy +%global fontlicense BSD and OFL +%global fontlicenses LICENSE.txt +%global fontdocs README.md CHANGELOG.md + +%global fontfamily 3270 +%global fontsummary Monospaced font based on IBM 3270 terminals +%global fonts build/*.otf +%global fontconfs %{SOURCE10} + +Name: fonts-3270 +Version: 3.0.0 +Release: 1%{?dist} +URL: https://github.com/rbanffy/3270font +Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz +Source10: 65-rbanffy-3270-fonts.conf +BuildRequires: fontforge +BuildRequires: make + + +%description +This font is derived from the x3270 font, which, in turn, was translated from +the one in Georgia Tech's 3270tool, which was itself hand-copied from a 3270 +terminal. + + +%prep +%autosetup -n %{srcname}-%{version} + + +%build +%{__make} font +%fontbuild + + +%install +%fontinstall + + +%check +for f in %{fonts}; do + # https://github.com/rbanffy/3270font/issues/110 + fontlint -i 98 -i 2 -i 5 -i 3 $f +done + + +%files + + +%changelog