Browse Source

initial package creation

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 2 years ago
commit
9f0d1a32fc
  1. 65
      SOURCES/65-rbanffy-3270-fonts.conf
  2. 51
      SPECS/fonts-3270.spec

65
SOURCES/65-rbanffy-3270-fonts.conf

@ -0,0 +1,65 @@ @@ -0,0 +1,65 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- SPDX-License-Identifier: MIT -->
<fontconfig>
<match target="scan">
<test name="family">
<string>IBM 3270</string>
</test>
<edit name="fontversion">
<int>2</int>
</edit>
</match>
<match target="scan">
<test name="family">
<string>IBM 3270 Condensed</string>
</test>
<edit name="family">
<string>IBM 3270</string>
</edit>
<edit name="fullname">
<string>IBM 3270 Condensed</string>
</edit>
<edit name="fontversion">
<int>1</int>
</edit>
</match>
<alias binding="same">
<family>IBM 3270 Condensed</family>
<accept>
<family>IBM 3270</family>
</accept>
</alias>
<match target="scan">
<test name="family">
<string>IBM 3270 Semi-Condensed</string>
</test>
<edit name="family">
<string>IBM 3270</string>
</edit>
<edit name="fullname">
<string>IBM 3270 SemiCondensed</string>
</edit>
<edit name="fontversion">
<int>1</int>
</edit>
</match>
<alias binding="same">
<family>IBM 3270 Semi-Condensed</family>
<accept>
<family>IBM 3270</family>
</accept>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>IBM 3270</family>
</prefer>
</alias>
<alias>
<family>IBM 3270</family>
<default>
<family>monospace</family>
</default>
</alias>
</fontconfig>

51
SPECS/fonts-3270.spec

@ -0,0 +1,51 @@ @@ -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
Loading…
Cancel
Save