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