Provide OpenType Bitmap fonts

Add ucs-miscfixed-opentype-fonts sub package
This commit is contained in:
Peng Wu 2020-02-06 15:13:28 +08:00
parent 899c91a73d
commit 5db760cfd8

View File

@ -1,9 +1,13 @@
%global fontname ucs-miscfixed %global fontname ucs-miscfixed
%global fontconf 66-%{fontname}.conf %global fontconf 66-%{fontname}.conf
%global common_desc \
The usc-fixed-fonts package provides bitmap fonts for\
locations such as terminals.
Name: %{fontname}-fonts Name: %{fontname}-fonts
Version: 0.3 Version: 0.3
Release: 21%{?dist} Release: 22%{?dist}
License: Public Domain License: Public Domain
URL: http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html URL: http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html
Source0: http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz Source0: http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz
@ -12,17 +16,29 @@ BuildArch: noarch
Summary: Selected set of bitmap fonts Summary: Selected set of bitmap fonts
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
BuildRequires: xorg-x11-font-utils BuildRequires: xorg-x11-font-utils
Conflicts: ucs-miscfixed-opentype-fonts
%description %description
The usc-fixed-fonts package provides bitmap fonts for %common_desc
locations such as terminals.
%package -n ucs-miscfixed-opentype-fonts
Summary: Selected set of bitmap fonts (opentype version)
License: Public Domain
Conflicts: ucs-miscfixed-fonts
%description -n ucs-miscfixed-opentype-fonts
%common_desc
This package contains the fonts in OpenType format.
%prep %prep
%setup -q -c %setup -q -c
rm helvR12.bdf rm helvR12.bdf
%build %build
for i in `ls *.bdf`;
do fonttosfnt -v -b -c -g 2 -m 2 -o ${i%%.bdf}.otb $i;
done
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -31,6 +47,8 @@ install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.bdf %{buildroot}%{_fontdir} install -m 0644 -p *.bdf %{buildroot}%{_fontdir}
install -m 0644 -p *.otb %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir} %{buildroot}%{_fontconfig_confdir}
@ -45,7 +63,15 @@ ln -s %{_fontconfig_templatedir}/%{fontconf} \
%doc README %doc README
%_font_pkg -n ucs-miscfixed-opentype-fonts -f %{fontconf} *.otb
%doc README
%changelog %changelog
* Thu Feb 6 2020 Peng Wu <pwu@redhat.com> - 0.3-22
- Provide OpenType Bitmap fonts
- Add ucs-miscfixed-opentype-fonts sub package
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-21 * Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild