Blame SPECS/baekmuk-ttf-fonts.spec

9d8070
%global priority    65-2
9d8070
%global fontname    baekmuk-ttf
9d8070
%define archivename %{fontname}-%{version}
9d8070
%define common_desc \
9d8070
This package provides the free Korean TrueType fonts.
9d8070
9d8070
%define gsdir          %{_datadir}/ghostscript/conf.d
9d8070
%define catalogue      %{_sysconfdir}/X11/fontpath.d
9d8070
9d8070
Name:           %{fontname}-fonts
9d8070
Version:        2.2
3ea95d
Release:        36%{?dist}
9d8070
Summary:        Free Korean TrueType fonts
9d8070
9d8070
Group:          User Interface/X
9d8070
License:        Baekmuk
9d8070
URL:            http://kldp.net/projects/baekmuk/
9d8070
Source0:        http://kldp.net/frs/download.php/1429/%{archivename}.tar.gz
9d8070
Source1:        FAPIcidfmap.ko
9d8070
Source2:        cidfmap.ko
9d8070
Source3:        baekmuk-ttf-batang.conf
9d8070
Source4:        baekmuk-ttf-dotum.conf
9d8070
Source5:        baekmuk-ttf-gulim.conf
9d8070
Source6:        baekmuk-ttf-hline.conf
9d8070
9d8070
Obsoletes:      fonts-korean <= 2.2-23
9d8070
Provides:       fonts-korean = %{version}-%{release}
9d8070
9d8070
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9d8070
BuildArch:      noarch
9d8070
BuildRequires:  fontpackages-devel >= 1.13 , xorg-x11-font-utils
9d8070
BuildRequires:  ttmkfdir >= 3.0.6
9d8070
9d8070
%description
9d8070
%common_desc
9d8070
9d8070
%package -n %{fontname}-batang-fonts
9d8070
Summary:        Korean Baekmuk TrueType Batang typeface
9d8070
Group:          User Interface/X
9d8070
Obsoletes:      %{name}-batang < 2.2-13
9d8070
Provides:       %{name}-batang = %{version}-%{release}
9d8070
Requires:       %{fontname}-fonts-common = %{version}-%{release}
9d8070
9d8070
%description -n %{fontname}-batang-fonts
9d8070
%common_desc
9d8070
9d8070
Batang is Korean TrueType font in Serif typeface.
9d8070
9d8070
%_font_pkg -n batang -f *-%{fontname}-batang*.conf batang.ttf
9d8070
9d8070
%package -n %{fontname}-dotum-fonts
9d8070
Summary:        Korean Baekmuk TrueType Dotum typeface
9d8070
Group:          User Interface/X
9d8070
Obsoletes:      %{name}-dotum < 2.2-13 
9d8070
Provides:       %{name}-dotum = %{version}-%{release}
9d8070
Requires:       %{fontname}-fonts-common = %{version}-%{release}
9d8070
9d8070
%description -n %{fontname}-dotum-fonts
9d8070
%common_desc
9d8070
9d8070
Dotum is Korean TrueType font in San-serif typeface.
9d8070
9d8070
%_font_pkg -n dotum -f *-%{fontname}-dotum*.conf dotum.ttf
9d8070
9d8070
%package -n %{fontname}-gulim-fonts
9d8070
Summary:        Korean Baekmuk TrueType Gulim typeface
9d8070
Group:          User Interface/X
9d8070
Obsoletes:      %{name}-gulim < 2.2-13
9d8070
Provides:       %{name}-gulim = %{version}-%{release}
9d8070
Requires:       %{fontname}-fonts-common = %{version}-%{release}
9d8070
9d8070
%description -n %{fontname}-gulim-fonts
9d8070
%common_desc
9d8070
9d8070
Gulim is Korean TrueType font in Monospace typeface.
9d8070
9d8070
%_font_pkg -n gulim -f *-%{fontname}-gulim*.conf gulim.ttf
9d8070
9d8070
%package -n %{fontname}-hline-fonts
9d8070
Summary:        Korean Baekmuk TrueType Headline typeface
9d8070
Group:          User Interface/X
9d8070
Obsoletes:      %{name}-hline < 2.2-13
9d8070
Provides:       %{name}-hline = %{version}-%{release}
9d8070
Requires:       %{fontname}-fonts-common = %{version}-%{release}
9d8070
9d8070
%description -n %{fontname}-hline-fonts
9d8070
%common_desc
9d8070
9d8070
Headline is Korean TrueType font in Black face.
9d8070
9d8070
%_font_pkg -n hline -f *-%{fontname}-hline*.conf hline.ttf
9d8070
9d8070
%package -n %{fontname}-fonts-ghostscript
9d8070
Summary:        Ghostscript files for Korean Baekmuk TrueType fonts
9d8070
Group:          User Interface/X
9d8070
Requires:       ghostscript >= 8.63-4
9d8070
Requires:       %{fontname}-batang-fonts = %{version}-%{release} 
9d8070
Requires:       %{fontname}-dotum-fonts = %{version}-%{release} 
9d8070
Requires:       %{fontname}-gulim-fonts = %{version}-%{release} 
9d8070
Requires:       %{fontname}-hline-fonts = %{version}-%{release} 
9d8070
9d8070
%description -n %{fontname}-fonts-ghostscript
9d8070
%common_desc
9d8070
9d8070
This is ghostscript files for Baekmuk Korean TrueType fonts.
9d8070
9d8070
%files -n %{fontname}-fonts-ghostscript
9d8070
%defattr(-,root,root,-)
9d8070
%{gsdir}/cidfmap.ko
9d8070
%{gsdir}/FAPIcidfmap.ko
9d8070
9d8070
%package -n %{fontname}-fonts-common
9d8070
Summary:        Common files for Korean Baekmuk TrueType fonts
9d8070
Group:          User Interface/X
9d8070
Obsoletes:      ttfonts-ko < 1.0.11-33, fonts-korean < 2.2-5
9d8070
Obsoletes:      baekmuk-ttf-common-fonts < 2.2-17
9d8070
Provides:       baekmuk-ttf-common-fonts = %{version}-%{release}
9d8070
Provides:       fonts-korean = %{version}-%{release}
9d8070
Provides:       ttfonts-ko = %{version}-%{release}
9d8070
Requires:       fontpackages-filesystem >= 1.13
9d8070
BuildRequires:  fontpackages-filesystem >= 1.13
9d8070
9d8070
%description -n %{fontname}-fonts-common
9d8070
%common_desc
9d8070
9d8070
This is common files for Baekmuk Korean TrueType fonts.
9d8070
9d8070
%files -n %{fontname}-fonts-common
9d8070
%doc COPYRIGHT COPYRIGHT.ko README
9d8070
%dir %{_fontdir}
9d8070
%verify(not md5 size mtime) %{_fontdir}/fonts.dir
9d8070
%verify(not md5 size mtime) %{_fontdir}/fonts.scale
9d8070
%verify(not md5 size mtime) %{catalogue}/%{fontname}
9d8070
9d8070
%prep
9d8070
%setup -q -n %{archivename}
9d8070
9d8070
%build
9d8070
%{nil}
9d8070
9d8070
%install
9d8070
# font
9d8070
%__install -d -m 0755 %{buildroot}%{_fontdir}
9d8070
for i in batang dotum gulim hline; do
9d8070
  %__install -p -m 0644 ttf/$i.ttf %{buildroot}%{_fontdir}
9d8070
done
9d8070
9d8070
# fontconfig conf
9d8070
%__install -m 0755 -d %{buildroot}%{_fontconfig_templatedir}
9d8070
%__install -m 0755 -d %{buildroot}%{_fontconfig_confdir}
9d8070
cd ../
9d8070
for fconf in %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6}
9d8070
do
9d8070
    %__install -m 0644 $fconf %{buildroot}%{_fontconfig_templatedir}/%{priority}-$(basename $fconf)
9d8070
    %__ln_s %{_fontconfig_templatedir}/%{priority}-$(basename $fconf) \
9d8070
        %{buildroot}%{_fontconfig_confdir}/%{priority}-$(basename $fconf)
9d8070
done
9d8070
cd -
9d8070
9d8070
# fonts.{scale,dir}
9d8070
%{_bindir}/ttmkfdir -d %{buildroot}%{_fontdir} \
9d8070
  -o %{buildroot}%{_fontdir}/fonts.scale
9d8070
%{_bindir}/mkfontdir %{buildroot}%{_fontdir}
9d8070
9d8070
# ghostscript
9d8070
%__install -d -m 0755 %{buildroot}%{gsdir}
9d8070
%__install -p -m 0644 %{SOURCE1} %{buildroot}%{gsdir}/
9d8070
%__install -p -m 0644 %{SOURCE2} %{buildroot}%{gsdir}/
9d8070
9d8070
# catalogue
9d8070
%__install -d -m 0755 %{buildroot}%{catalogue}
9d8070
%__ln_s %{_fontdir} %{buildroot}%{catalogue}/%{fontname}
9d8070
9d8070
# convert Korean copyright file to utf8
9d8070
%{_bindir}/iconv -f EUC-KR -t UTF-8 COPYRIGHT.ks > COPYRIGHT.ko
9d8070
9d8070
%changelog
3ea95d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.2-36
3ea95d
- Mass rebuild 2013-12-27
3ea95d
9d8070
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-35
9d8070
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9d8070
9d8070
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-34
9d8070
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9d8070
9d8070
* Wed Jul  4 2012 Daiki Ueno <dueno@redhat.com> - 2.2-33
9d8070
- fix <test> usage in fontconfig files (Closes: #837526)
9d8070
9d8070
* Mon Feb  6 2012 Daiki Ueno <dueno@redhat.com> - 2.2-32
9d8070
- Update the priority.
9d8070
  nhn-nanum-fonts -> 65-0, un-core-fonts -> 65-1, baekmuk-ttf-fonts -> 65-2
9d8070
- Drop buildroot cleanup.
9d8070
- Drop %%defattr(0644,root,root,0755) from %%files.
9d8070
9d8070
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-31
9d8070
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9d8070
9d8070
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-30
9d8070
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9d8070
9d8070
* Wed May 26 2010 Akira TAGOH <tagoh@redhat.com> - 2.2-29
9d8070
- Improve the fontconfig config file to match ko-kr as well. (#586306)
9d8070
- sync NVR and fixes from RHEL-6.
9d8070
- Update the priority.
9d8070
9d8070
* Wed Apr 21 2010 Caius 'kaio' Chance <k at kaio.me> - 2.2-25
9d8070
- Resolves: rhbz#578017 (Remove binding="same" from conf files.)
9d8070
9d8070
* Wed Jan 13 2010 Caius 'kaio' Chance <k at kaio.me> - 2.2-24.el6
9d8070
- Fixed rpmlint errors.
9d8070
- Synchronized version number with another tree.
9d8070
9d8070
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-22
9d8070
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9d8070
9d8070
* Wed Apr 08 2009 Caius 'kaio' Chance <cchance@redhat.com> - 2.2-21.fc11
9d8070
- Resolves: rhbz#483327 (Fixed unowned directories.)
9d8070
9d8070
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-20
9d8070
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9d8070
9d8070
* Tue Feb 03 2009 Caius Chance <cchance@redhat.com> - 2.2-19.fc11
9d8070
- Resolves: rhbz#483327
9d8070
- Reowned font directory by subpackage -common.
9d8070
- Splited ghostscript files to subpackage -ghostscript.
9d8070
- Updated paths in ghostscript files.
9d8070
9d8070
* Mon Feb 02 2009 Caius Chance <cchance@redhat.com> - 2.2-18.fc11
9d8070
- Updated fontconfig .conf files based on fontpackages templates.
9d8070
9d8070
* Tue Jan 27 2009 Caius Chance <cchance@redhat.com> - 2.2-17.fc11
9d8070
- Resolves: rhbz#477332
9d8070
- Fixed obsoletion of baekmuk-ttf-common-fonts.
9d8070
9d8070
* Thu Jan 22 2009 Caius Chance <cchance@redhat.com> - 2.2-16.fc11
9d8070
- Resolves: rhbz#477332
9d8070
- Refined dependencies.
9d8070
9d8070
* Tue Jan 20 2009 Matthias Clasen <mclasen@redhat.com> - 2.2-15.fc11
9d8070
- Fix busted inter-subpackage dependencies
9d8070
9d8070
* Tue Jan 20 2009 Caius Chance <cchance@redhat.com> - 2.2-14.fc11
9d8070
- Resolves: rhbz#477332
9d8070
- Refined according to Mailhot's comments (477410) on liberaton fonts.
9d8070
9d8070
* Mon Jan 19 2009 Caius Chance <cchance@redhat.com> - 2.2-13.fc11
9d8070
- Resolves: rhbz#477332
9d8070
- Package renaming for post-1.13 fontpackages.
9d8070
9d8070
* Fri Jan 16 2009 Caius Chance <cchance@redhat.com> - 2.2-12.fc11
9d8070
- Resolves: rhbz#477332 (Repatched buildsys error.)
9d8070
9d8070
* Fri Jan 16 2009 Caius Chance <cchance@redhat.com> - 2.2-11.fc11
9d8070
- Resolves: rhbz#477332 (Included macro _font_pkg and created fontconfig .conf files.)
9d8070
9d8070
* Fri Jan 09 2009 Caius Chance <cchance@redhat.com> - 2.2-10.fc11
9d8070
- Resolves: rhbz#477332 (Converted to new font packaging guidelines.)
9d8070
9d8070
* Mon Jun 30 2008 Caius Chance <cchance@redhat.com> - 2.2-9.fc10
9d8070
- Refine obsoletes tag version-release specific.
9d8070
9d8070
* Mon Jun 30 2008 Caius Chance <cchance@redhat.com> - 2.2-8.fc10
9d8070
- Resolves: rhbz#453080 (fonts-korean is deprecated and should be removed.)
9d8070
9d8070
* Wed Nov 14 2007 Jens Petersen <petersen@redhat.com> - 2.2-7
9d8070
- better url
9d8070
- use fontname and fontdir macros
9d8070
9d8070
* Mon Sep 24 2007 Jens Petersen <petersen@redhat.com> - 2.2-6
9d8070
- convert Korean copyright file to utf8 (Mamoru Tasaka, #300651)
9d8070
9d8070
* Mon Sep 24 2007 Jens Petersen <petersen@redhat.com> - 2.2-5
9d8070
- more fixes from Mamoru Tasaka, #300651:
9d8070
- make common subpackage own ghostscript conf.d
9d8070
- conflict with previous fonts-korean
9d8070
- update CID font maps
9d8070
9d8070
* Mon Sep 24 2007 Jens Petersen <petersen@redhat.com> - 2.2-4
9d8070
- preserve timestamps of installed files (Mamoru Tasaka, #300651)
9d8070
- add a common subpackage for shared files (Mamoru Tasaka, #300651)
9d8070
9d8070
* Mon Sep 24 2007 Jens Petersen <petersen@redhat.com> - 2.2-3
9d8070
- do not provide ttfonts-ko in subpackages (Mamoru Tasaka, #300651)
9d8070
9d8070
* Sat Sep 22 2007 Jens Petersen <petersen@redhat.com> - 2.2-2
9d8070
- license is now designated Baekmuk
9d8070
9d8070
* Sat Sep 22 2007 Jens Petersen <petersen@redhat.com> - 2.2-1
9d8070
- new package separated from fonts-korean (#253155)