# Conditional build:
%bcond_without viewer # build unifont-viewer package (requires perl-Wx)
-%include /usr/lib/rpm/macros.perl
Summary: GNU Unifont - Unicode bitmap font
Summary(pl.UTF-8): GNU Unifont - font bitmapowy Unicode
Name: unifont
-Version: 9.0.03
+Version: 13.0.02
Release: 1
License: GPL v2+ with GNU font embedding exception
Group: Fonts
-Source0: http://ftp.gnu.org/gnu/unifont/%{name}-%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 5eb81b47ca521cb27cf1c1ef9d64a49e
+Source0: https://ftp.gnu.org/gnu/unifont/%{name}-%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 1523ab453136c82db6dec2717c8f0e57
URL: http://czyborra.com/unifont/
BuildRequires: fontforge
BuildRequires: rpm-perlprov
+BuildRequires: rpmbuild(macros) >= 1.745
BuildRequires: xorg-app-bdftopcf
Requires(post,postun): fontpostinst
Requires: %{_fontsdir}/misc
PCFDEST=$RPM_BUILD_ROOT%{_fontsdir}/misc \
TTFDEST=$RPM_BUILD_ROOT%{_fontsdir}/TTF
-# docs packaged as %doc
-%{__rm} $RPM_BUILD_ROOT%{_datadir}/unifont/{ChangeLog,INSTALL,NEWS,README,unifont.info,unifont.txt}.gz
-
# sample covering plane 0
%{__rm} $RPM_BUILD_ROOT%{_fontsdir}/{misc/unifont_sample.pcf.gz,TTF/unifont_sample.ttf}
%files source
%defattr(644,root,root,755)
%dir %{_datadir}/unifont
-%{_datadir}/unifont/bmp-combining.txt
-%{_datadir}/unifont/unifont.bmp
+%{_datadir}/unifont/plane00-combining.txt
+%{_datadir}/unifont/unifont.bmp.gz
%{_datadir}/unifont/unifont.hex
%{_datadir}/unifont/wchardata.c
%attr(755,root,root) %{_bindir}/johab2ucs2
%attr(755,root,root) %{_bindir}/unibdf2hex
%attr(755,root,root) %{_bindir}/unibmp2hex
+%attr(755,root,root) %{_bindir}/unibmpbump
%attr(755,root,root) %{_bindir}/unicoverage
%attr(755,root,root) %{_bindir}/unidup
+%attr(755,root,root) %{_bindir}/unifont1per
%attr(755,root,root) %{_bindir}/unifontchojung
%attr(755,root,root) %{_bindir}/unifontksx
%attr(755,root,root) %{_bindir}/unifontpic
%attr(755,root,root) %{_bindir}/unihex2png
%attr(755,root,root) %{_bindir}/unihexfill
%attr(755,root,root) %{_bindir}/unihexgen
+%attr(755,root,root) %{_bindir}/unihexrotate
%attr(755,root,root) %{_bindir}/unipagecount
%attr(755,root,root) %{_bindir}/unipng2hex
%{_mandir}/man1/bdfimplode.1*
%{_mandir}/man1/johab2ucs2.1*
%{_mandir}/man1/unibdf2hex.1*
%{_mandir}/man1/unibmp2hex.1*
+%{_mandir}/man1/unibmpbump.1*
%{_mandir}/man1/unicoverage.1*
%{_mandir}/man1/unidup.1*
+%{_mandir}/man1/unifont1per.1*
%{_mandir}/man1/unifontchojung.1*
%{_mandir}/man1/unifontksx.1*
%{_mandir}/man1/unifontpic.1*
%{_mandir}/man1/unihex2png.1*
%{_mandir}/man1/unihexfill.1*
%{_mandir}/man1/unihexgen.1*
+%{_mandir}/man1/unihexrotate.1*
%{_mandir}/man1/unipagecount.1*
%{_mandir}/man1/unipng2hex.1*