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