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