2020-01-28 13:05:30 +01:00
|
|
|
#
|
2020-01-28 13:40:36 +01:00
|
|
|
# spec file for package xterm-console
|
2020-01-28 13:05:30 +01:00
|
|
|
#
|
2020-01-28 13:40:36 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2020-01-28 13:05:30 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-01-28 13:40:36 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-01-28 13:05:30 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define vttest_version 20120506
|
|
|
|
%define splitbin 0%{?suse_version} >= 1300
|
|
|
|
Name: xterm-console
|
|
|
|
Version: 1.0
|
|
|
|
Release: 0
|
|
|
|
Summary: A Linux vt console look-alike xterm wrapper
|
|
|
|
License: MIT
|
|
|
|
Group: System/X11/Utilities
|
2020-01-28 13:40:36 +01:00
|
|
|
URL: https://github.com/os-autoinst/xterm-console
|
2020-01-28 13:05:30 +01:00
|
|
|
Source: xterm-console
|
|
|
|
Source1: psf2bdf.pl
|
2020-01-28 13:40:36 +01:00
|
|
|
BuildRequires: bdftopcf
|
|
|
|
BuildRequires: fontpackages-devel
|
2020-01-28 13:05:30 +01:00
|
|
|
#BuildRequires: perl
|
|
|
|
# the original consolefonts:
|
|
|
|
BuildRequires: kbd
|
2020-01-28 13:40:36 +01:00
|
|
|
Requires: fonts-config
|
|
|
|
# svirt, eg. s390x, xen
|
|
|
|
Supplements: os-autoinst
|
|
|
|
%reconfigure_fonts_prereq
|
2020-01-28 13:05:30 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the basic X.Org terminal program.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
2020-01-28 13:40:36 +01:00
|
|
|
%setup -q -c -T
|
|
|
|
cp %{SOURCE1} .
|
|
|
|
|
2020-01-28 13:05:30 +01:00
|
|
|
%build
|
|
|
|
# suse 10.x uses older X11 directory structure
|
|
|
|
%if 0%{?suse_version} < 1100
|
|
|
|
%define xappdefs %{_prefix}/X11R6/lib/X11/app-defaults
|
|
|
|
%define xfontsd %{_prefix}/X11R6/lib/X11/fonts
|
|
|
|
%else
|
|
|
|
%define xappdefs %{_datadir}/X11/app-defaults
|
|
|
|
%define xfontsd %{_datadir}/fonts
|
|
|
|
%endif
|
|
|
|
|
|
|
|
if ! which bdftopcf &> /dev/null; then exit 1; fi
|
|
|
|
|
|
|
|
chmod +x ./psf2bdf.pl
|
2020-01-28 13:40:36 +01:00
|
|
|
for font in %{_datadir}/kbd/consolefonts/*.psfu.gz
|
2020-01-28 13:05:30 +01:00
|
|
|
do
|
|
|
|
fontname="${font##*/}"
|
|
|
|
fontname="${fontname%.psfu.gz}"
|
|
|
|
gunzip -c $font | ./psf2bdf.pl | sed -e "s,FONT \+-psf-,FONT ${fontname}," > "$fontname".bdf
|
|
|
|
done
|
|
|
|
|
|
|
|
for i in *.bdf
|
|
|
|
do
|
|
|
|
bdftopcf "$i" | gzip -9 >"${i%.bdf}.pcf.gz"
|
|
|
|
done
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
2020-01-28 13:40:36 +01:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -m 755 %{SOURCE0} %{buildroot}%{_bindir}
|
2020-01-28 13:05:30 +01:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{xfontsd}/misc/
|
|
|
|
install -m 644 *.pcf.gz %{buildroot}%{xfontsd}/misc/
|
|
|
|
|
2020-01-28 13:40:36 +01:00
|
|
|
%reconfigure_fonts_scriptlets
|
2020-01-28 13:05:30 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/xterm-console
|
|
|
|
%dir %{xfontsd}/misc
|
|
|
|
%{xfontsd}/misc/*.pcf.gz
|
|
|
|
|
|
|
|
%changelog
|