From b8deb3d4f29b3858c0238917fd52c3828a2f72d0 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 8 Mar 2019 17:12:33 +0100 Subject: [PATCH] Package bdf2psf as well Include the utility, it is useful. Debian also packages it. --- console-setup.spec | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/console-setup.spec b/console-setup.spec index 3a9c7ce..09737b7 100644 --- a/console-setup.spec +++ b/console-setup.spec @@ -31,6 +31,19 @@ supports several languages that would be otherwise unsupported on the console (such as Armenian, Georgian, Lao and Thai). +%package -n bdf2psf +Summary: Generate console fonts from BDF source fonts + +%description -n bdf2psf +This package provides a command-line converter that can be used in scripts +to build console fonts from BDF sources automatically. The converter comes +with a collection of font encodings that cover many of the world's +languages. The output font can use a different character encoding from the +input. When the source font does not define a glyph for a particular +symbol in the encoding table, that glyph position in the console font is +not wasted but used for another symbol. + + %prep %setup -q -n %{name}-%{version} %patch0 -p1 -b .paths @@ -50,6 +63,16 @@ make prefix=$RPM_BUILD_ROOT install-linux # or maybe have these from tarball it in optional subpackage? rm -rf $RPM_BUILD_ROOT/etc/console-setup +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 +install -pm644 man/bdf2psf.1 $RPM_BUILD_ROOT%{_mandir}/man1/ + +mkdir -p $RPM_BUILD_ROOT%{_bindir} +install -p Fonts/bdf2psf $RPM_BUILD_ROOT%{_bindir} + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/bdf2psf +cp -a Fonts/fontsets Fonts/*.equivalents Fonts/*.set \ + $RPM_BUILD_ROOT%{_datadir}/bdf2psf/ + %files %doc README COPYRIGHT CHANGES copyright.fonts copyright.xkb Fonts/copyright @@ -62,7 +85,17 @@ rm -rf $RPM_BUILD_ROOT/etc/console-setup %{_mandir}/*/* +%files -n bdf2psf +%{_bindir}/bdf2psf +%{_mandir}/man1/bdf2psf.1* +%{_datadir}/bdf2psf +%license GPL-2 + + %changelog +* Fri Mar 08 2019 Lubomir Rintel - 1.189-2 +- Package bdf2psf as well + * Tue Feb 12 2019 Vitezslav Crhonek - 1.189-1 - Update to latest upstream version Resolves: #1674091