ef13d7
%global fontname bitmap
ef13d7
%global fontconf 66-%{fontname}
ef13d7
%global common_desc \
ef13d7
The bitmap-fonts package provides a number of bitmap fonts selected\
ef13d7
from the xorg package designed for use locations such as\
ef13d7
terminals.
ef13d7
ef13d7
Name: bitmap-fonts
ef13d7
Version: 0.3
ef13d7
Release: 40%{?dist}
ef13d7
License: GPLv2 and MIT and Lucida
ef13d7
Source0: bitmap-fonts-%{version}.tar.bz2
ef13d7
Source1: fixfont-3.5.tar.bz2
ef13d7
Source2: LICENSE
ef13d7
Source3: 66-bitmap-console.conf
ef13d7
Source4: 66-bitmap-fangsongti.conf
ef13d7
Source5: 66-bitmap-fixed.conf
ef13d7
Source6: 66-bitmap-lucida-typewriter.conf
ef13d7
BuildArch: noarch
ef13d7
Summary: Selected set of bitmap fonts
ef13d7
BuildRequires: bdftopcf fonttosfnt
ef13d7
BuildRequires: fontpackages-devel
ef13d7
BuildRequires: python3
ef13d7
BuildRequires: /usr/bin/ftdump
ef13d7
BuildRequires: make
ef13d7
ef13d7
ef13d7
%description
ef13d7
%common_desc
ef13d7
ef13d7
%package -n %{fontname}-fonts-compat
ef13d7
Summary: Compatibility files of bitmap-font families
ef13d7
Provides: bitmap-fonts = %{version}-%{release}
ef13d7
Requires: %{fontname}-lucida-typewriter-fonts = %{version}-%{release}
ef13d7
Requires: %{fontname}-fangsongti-fonts = %{version}-%{release}
ef13d7
Requires: %{fontname}-console-fonts = %{version}-%{release}
ef13d7
Requires: %{fontname}-fixed-fonts = %{version}-%{release}
ef13d7
Requires: ucs-miscfixed-fonts
ef13d7
Obsoletes: bitmap-fonts < %{version}-%{release}
ef13d7
Conflicts: %{fontname}-opentype-fonts-compat
ef13d7
ef13d7
%description -n %{fontname}-fonts-compat
ef13d7
%common_desc
ef13d7
Meta-package for installing all font families of bitmap.
ef13d7
ef13d7
%files -n %{fontname}-fonts-compat
ef13d7
ef13d7
%package -n %{fontname}-opentype-fonts-compat
ef13d7
Summary:  Compatibility files of bitmap-font families (opentype version)
ef13d7
Requires: %{fontname}-lucida-typewriter-opentype-fonts = %{version}-%{release}
ef13d7
Requires: %{fontname}-fangsongti-opentype-fonts = %{version}-%{release}
ef13d7
Requires: %{fontname}-console-opentype-fonts = %{version}-%{release}
ef13d7
Requires: %{fontname}-fixed-opentype-fonts = %{version}-%{release}
ef13d7
Requires: ucs-miscfixed-opentype-fonts
ef13d7
Conflicts: %{fontname}-fonts-compat
ef13d7
ef13d7
%description -n %{fontname}-opentype-fonts-compat
ef13d7
%common_desc
ef13d7
Meta-package for installing all font families of opentype bitmap.
ef13d7
ef13d7
%files -n %{fontname}-opentype-fonts-compat
ef13d7
ef13d7
%package -n bitmap-lucida-typewriter-fonts
ef13d7
Summary: Selected CJK bitmap fonts for Anaconda
ef13d7
Requires: fontpackages-filesystem
ef13d7
Provides: %{name}-cjk = %{version}-%{release}
ef13d7
License: Lucida
ef13d7
Conflicts: bitmap-lucida-typewriter-opentype-fonts
ef13d7
ef13d7
%description -n bitmap-lucida-typewriter-fonts
ef13d7
%common_desc
ef13d7
ef13d7
%_font_pkg -n lucida-typewriter -f %{fontconf}-lucida-typewriter.conf lut*.pcf.gz
ef13d7
%doc LU_LEGALNOTICE
ef13d7
ef13d7
%package -n bitmap-lucida-typewriter-opentype-fonts
ef13d7
Summary: Selected CJK bitmap fonts for Anaconda (opentype version)
ef13d7
Requires: fontpackages-filesystem
ef13d7
License: Lucida
ef13d7
Conflicts: bitmap-lucida-typewriter-fonts
ef13d7
ef13d7
%description -n bitmap-lucida-typewriter-opentype-fonts
ef13d7
%common_desc
ef13d7
ef13d7
%_font_pkg -n lucida-typewriter-opentype -f %{fontconf}-lucida-typewriter.conf lut*.otb
ef13d7
%doc LU_LEGALNOTICE
ef13d7
ef13d7
%package -n bitmap-fangsongti-fonts
ef13d7
Summary: Selected CJK bitmap fonts for Anaconda
ef13d7
Requires: fontpackages-filesystem
ef13d7
Provides: %{name}-cjk = %{version}-%{release}
ef13d7
License: MIT
ef13d7
Conflicts: bitmap-fangsongti-opentype-fonts
ef13d7
ef13d7
%description -n %{fontname}-fangsongti-fonts
ef13d7
bitmap-fonts-cjk package contains bitmap fonts used by Anaconda. They are
ef13d7
selected from the xorg packages, and the font encoding are converted from 
ef13d7
native encoding to ISO10646. They are only intended to be used in Anaconda.
ef13d7
ef13d7
%_font_pkg -n fangsongti -f %{fontconf}-fangsongti.conf fangsongti*.pcf.gz
ef13d7
%doc LICENSE
ef13d7
ef13d7
%package -n bitmap-fangsongti-opentype-fonts
ef13d7
Summary: Selected CJK bitmap fonts for Anaconda (opentype version)
ef13d7
Requires: fontpackages-filesystem
ef13d7
License: MIT
ef13d7
Conflicts: bitmap-fangsongti-fonts
ef13d7
ef13d7
%description -n %{fontname}-fangsongti-opentype-fonts
ef13d7
%common_desc
ef13d7
ef13d7
%_font_pkg -n fangsongti-opentype -f %{fontconf}-fangsongti.conf fangsongti*.otb
ef13d7
%doc LICENSE
ef13d7
ef13d7
%package -n bitmap-console-fonts
ef13d7
Summary: Selected set of bitmap fonts
ef13d7
Requires: fontpackages-filesystem
ef13d7
License: GPLv2
ef13d7
Conflicts: bitmap-console-opentype-fonts
ef13d7
ef13d7
%description -n %{fontname}-console-fonts
ef13d7
%common_desc
ef13d7
ef13d7
%_font_pkg -n console -f %{fontconf}-console.conf console8x16*.pcf.gz
ef13d7
ef13d7
%package -n bitmap-console-opentype-fonts
ef13d7
Summary: Selected set of bitmap fonts (opentype version)
ef13d7
Requires: fontpackages-filesystem
ef13d7
License: GPLv2
ef13d7
Conflicts: bitmap-console-fonts
ef13d7
ef13d7
%description -n %{fontname}-console-opentype-fonts
ef13d7
%common_desc
ef13d7
ef13d7
%_font_pkg -n console-opentype -f %{fontconf}-console.conf console8x16*.otb
ef13d7
ef13d7
%package -n bitmap-fixed-fonts
ef13d7
Summary: Selected set of bitmap fonts
ef13d7
Requires: fontpackages-filesystem
ef13d7
License: GPLv2
ef13d7
Conflicts: bitmap-fixed-opentype-fonts
ef13d7
ef13d7
%description -n %{fontname}-fixed-fonts
ef13d7
%common_desc
ef13d7
ef13d7
%_font_pkg -n fixed -f %{fontconf}-fixed.conf  console9*.pcf.gz
ef13d7
ef13d7
%package -n bitmap-fixed-opentype-fonts
ef13d7
Summary: Selected set of bitmap fonts (opentype version)
ef13d7
Requires: fontpackages-filesystem
ef13d7
License: GPLv2
ef13d7
Conflicts: bitmap-fixed-fonts
ef13d7
ef13d7
%description -n %{fontname}-fixed-opentype-fonts
ef13d7
%common_desc
ef13d7
ef13d7
%_font_pkg -n fixed-opentype -f %{fontconf}-fixed.conf console9*.otb
ef13d7
ef13d7
ef13d7
%prep
ef13d7
%setup -q -a 1
ef13d7
cp %{SOURCE2} .
ef13d7
ef13d7
ef13d7
%build
ef13d7
%{nil}
ef13d7
ef13d7
%install
ef13d7
rm -rf $RPM_BUILD_ROOT
ef13d7
ef13d7
make install DESTDIR=$RPM_BUILD_ROOT
ef13d7
ef13d7
pushd fixfont-3.5
ef13d7
make install DESTDIR=$RPM_BUILD_ROOT
ef13d7
popd
ef13d7
ef13d7
mv $RPM_BUILD_ROOT/usr/share/fonts/bitmap-fonts %{buildroot}%{_fontdir}
ef13d7
ef13d7
rm %{buildroot}%{_fontdir}/[0-9]*.pcf
ef13d7
rm %{buildroot}%{_fontdir}/console8x8.pcf
ef13d7
rm README
ef13d7
ef13d7
# Convert to OpenType Bitmap Font
ef13d7
rm [0-9]*.bdf fixfont-3.5/[0-9]*.bdf
ef13d7
ef13d7
for bdf in `ls *.bdf`;
ef13d7
do fonttosfnt -b -c -g 2 -m 2 -o ${bdf%%bdf}otb  $bdf;
ef13d7
done
ef13d7
install -m 0644 -p *.otb %{buildroot}%{_fontdir}
ef13d7
ef13d7
pushd fixfont-3.5
ef13d7
for bdf in `ls *.bdf`;
ef13d7
do fonttosfnt -b -c -g 2 -m 2 -o ${bdf%%bdf}otb  $bdf;
ef13d7
done
ef13d7
# For console9x15.otb
ef13d7
fonttosfnt -b -c -g 2 -m 2 -o console9x15.otb console9x15.pcf
ef13d7
ef13d7
install -m 0644 -p *.otb %{buildroot}%{_fontdir}
ef13d7
popd
ef13d7
ef13d7
gzip %{buildroot}%{_fontdir}/*.pcf
ef13d7
ef13d7
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
ef13d7
                   %{buildroot}%{_fontconfig_confdir}
ef13d7
ef13d7
# Repeat for every font family
ef13d7
install -m 0644 -p %{SOURCE3} \
ef13d7
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-console.conf
ef13d7
ef13d7
install -m 0644 -p %{SOURCE4} \
ef13d7
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-fangsongti.conf
ef13d7
ef13d7
install -m 0644 -p %{SOURCE5} \
ef13d7
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-fixed.conf
ef13d7
ef13d7
install -m 0644 -p %{SOURCE6} \
ef13d7
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-lucida-typewriter.conf
ef13d7
ef13d7
ef13d7
for fconf in %{fontconf}-console.conf \
ef13d7
             %{fontconf}-fangsongti.conf \
ef13d7
             %{fontconf}-fixed.conf \
ef13d7
             %{fontconf}-lucida-typewriter.conf ; do
ef13d7
  ln -s %{_fontconfig_templatedir}/$fconf \
ef13d7
        %{buildroot}%{_fontconfig_confdir}/$fconf
ef13d7
done
ef13d7
ef13d7
ef13d7
%changelog
ef13d7
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.3-40
ef13d7
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
ef13d7
  Related: rhbz#1991688
ef13d7
ef13d7
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.3-39
ef13d7
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
ef13d7
ef13d7
* Tue Mar 02 2021 Parag Nemade <pnemade AT redhat DOT com> - 0.3-38
ef13d7
- Resolves: rhbz#1933563 - Don't BuildRequires xorg-x11-font-utils
ef13d7
ef13d7
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-37
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ef13d7
ef13d7
* Tue Dec 29 2020 Peng Wu <pwu@redhat.com> - 0.3-36
ef13d7
- Rebuilt with fonttosfnt 1.2.1
ef13d7
ef13d7
* Fri Sep  4 2020 Peng Wu <pwu@redhat.com> - 0.3-35
ef13d7
- Use BDF fonts for OpenType conversion
ef13d7
ef13d7
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-34
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ef13d7
ef13d7
* Thu Feb  6 2020 Peng Wu <pwu@redhat.com> - 0.3-33
ef13d7
- Provide OpenType Bitmap fonts
ef13d7
- Use bitmapfonts2otb.py to combine bitmap fonts
ef13d7
- Add bitmap-*-opentype-fonts sub packages
ef13d7
ef13d7
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-32
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
ef13d7
ef13d7
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-31
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ef13d7
ef13d7
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-30
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ef13d7
ef13d7
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-29
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ef13d7
ef13d7
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3-28
ef13d7
- Escape macros in %%changelog
ef13d7
ef13d7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-27
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ef13d7
ef13d7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-26
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ef13d7
ef13d7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-25
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ef13d7
ef13d7
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-24
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ef13d7
ef13d7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-23
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ef13d7
ef13d7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-22
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ef13d7
ef13d7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-21
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ef13d7
ef13d7
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-20
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ef13d7
ef13d7
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-19
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ef13d7
ef13d7
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-18
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ef13d7
ef13d7
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-17
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ef13d7
ef13d7
* Wed Mar 03 2010 Pravin Satpute <psatpute@redhat.com> - 0.3-16
ef13d7
- fixed lucida license
ef13d7
- added compat package for smooth upgradation
ef13d7
ef13d7
* Tue Mar 02 2010 Pravin Satpute <psatpute@redhat.com> - 0.3-15
ef13d7
- updated as per merge review comments
ef13d7
- bug 225617
ef13d7
ef13d7
* Wed Nov 18 2009 Pravin Satpute <psatpute@redhat.com> - 0.3-14
ef13d7
- removed console8x8.pcf from console sub-package
ef13d7
ef13d7
* Fri Oct 09 2009 Pravin Satpute <psatpute@redhat.com> - 0.3-13
ef13d7
- added lucida-typewriter and fixed subpackage
ef13d7
- removed common subpackage
ef13d7
- added conf file for each subpackage
ef13d7
ef13d7
* Fri Oct 09 2009 Pravin Satpute <psatpute@redhat.com> - 0.3-12
ef13d7
- updates license for each subpackage
ef13d7
ef13d7
* Thu Sep 17 2009 Pravin Satpute <psatpute@redhat.com> - 0.3-11
ef13d7
- second update as per merge review comment, bug 225617
ef13d7
ef13d7
* Thu Sep 17 2009 Pravin Satpute <psatpute@redhat.com> - 0.3-10
ef13d7
- updating as per merge review comment
ef13d7
ef13d7
* Thu Sep 17 2009 Pravin Satpute <psatpute@redhat.com> - 0.3-9
ef13d7
- updating as per new packaging guidelines
ef13d7
ef13d7
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-8
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ef13d7
ef13d7
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-7
ef13d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ef13d7
ef13d7
* Mon Jul 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.3-6
ef13d7
- fix license tag
ef13d7
ef13d7
* Tue Feb 12 2008 Rahul Bhalerao <rbhalera@redhat.com> - 0.3-5.2
ef13d7
- Rebuild for gcc4.3.
ef13d7
ef13d7
* Tue Feb 27 2007 Mayank Jain <majain@redhat.com> - 0.3-5.1.2
ef13d7
- Changed BuildRoot to %%{_tmppath}/%%{name}-%%{version}-%%{release}-root-%%(%%{__id_u} -n)
ef13d7
- Changed Prereq tag to Requires(pre)
ef13d7
- In the "cjk" subpackage summary, CJK is now spelt with capital letters.
ef13d7
- Added %%{?dist} to the Release tag
ef13d7
ef13d7
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.3-5.1.1
ef13d7
- rebuild
ef13d7
ef13d7
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
ef13d7
- rebuilt
ef13d7
ef13d7
* Wed Nov 09 2004 Caolan McNamara <caolanm@redhat.com> - 0.3-5
ef13d7
- build fixfont .pcfs from source .bdfs
ef13d7
ef13d7
* Wed Sep 22 2004 Owen Taylor <otaylor@redhat.com> - 0.3-4
ef13d7
- Update BuildRequires to xorg-x11-font-utils (#118428, Mike Harris)
ef13d7
ef13d7
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
ef13d7
- rebuilt
ef13d7
ef13d7
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
ef13d7
- rebuilt
ef13d7
ef13d7
* Tue Jan 21 2003 Owen Taylor <otaylor@redhat.com>
ef13d7
- Version 0.3 adding misc-fixed fonts from ucs-fonts
ef13d7
- Adjust %%post, %%postun
ef13d7
ef13d7
* Mon Jan 13 2003 Owen Taylor <otaylor@redhat.com>
ef13d7
- Patch from Anthony Fok, to fix problem where fangsongti16.bdf
ef13d7
  wasn't considered to cover english because it didn't have
ef13d7
  e-diaresis. (Causing bad font choice in Anaconda)
ef13d7
ef13d7
* Wed Dec 18 2002 Than Ngo <than@redhat.com> 0.2-4
ef13d7
- add some bitmap fonts
ef13d7
ef13d7
* Thu Oct 31 2002 Owen Taylor <otaylor@redhat.com> 0.2-3
ef13d7
- Own the bitmap-fonts directory (Enrico Scholz, #73940)
ef13d7
- Add %%post, %%postun for cjk subpackage
ef13d7
ef13d7
* Fri Aug 30 2002 Alexander Larsson <alexl@redhat.com> 0.2-2
ef13d7
- Call fc-cache from post
ef13d7
ef13d7
* Wed Aug 28 2002 Owen Taylor <otaylor@redhat.com>
ef13d7
- Augment fangsongti fonts with characters from 8x16, 12x24
ef13d7
ef13d7
* Tue Jul 31 2002 Yu Shao <yshao@redhat.com>
ef13d7
- add fangsong*.bdf converted from gb16fs.bdf and gb24st.bdf
ef13d7
ef13d7
* Mon Nov 13 2000 Owen Taylor <otaylor@redhat.com>
ef13d7
- Initial package
ef13d7