Package bdf2psf as well

Include the utility, it is useful. Debian also packages it.
This commit is contained in:
Lubomir Rintel 2019-03-08 17:12:33 +01:00
parent 85fcdbe458
commit b8deb3d4f2

View File

@ -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 <lkundrak@v3.sk> - 1.189-2
- Package bdf2psf as well
* Tue Feb 12 2019 Vitezslav Crhonek <vcrhonek@redhat.com> - 1.189-1
- Update to latest upstream version
Resolves: #1674091