File texlive-cjk-latex-extras.spec of Package texlive-cjk-latex-extras

# spec file for package texlive-cjk-latex-extras (Version 20070515)
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           texlive-cjk-latex-extras
BuildRequires:  freetype-tools
License:        GPL v2 or later
Group:          Productivity/Publishing/TeX/Base
PreReq:         /bin/mkdir /bin/rm /usr/bin/touch
Requires:       texlive-cjk, texlive-latex, freetype-tools
Obsoletes:      cjk-latex
Obsoletes:      cjk-latex-han-300
Obsoletes:      cjk-latex-han-600
Obsoletes:      cjk-latex-han-tfmvf
Obsoletes:      cjk-latex-han1-300
Obsoletes:      cjk-latex-han1-600
Obsoletes:      cjk-latex-han1-tfmvf
Obsoletes:      cjk-latex-hbf-cns40-1
Obsoletes:      cjk-latex-hbf-cns40-2
Obsoletes:      cjk-latex-hbf-cns40-3
Obsoletes:      cjk-latex-hbf-cns40-4
Obsoletes:      cjk-latex-hbf-cns40-5
Obsoletes:      cjk-latex-hbf-cns40-6
Obsoletes:      cjk-latex-hbf-cns40-7
Obsoletes:      cjk-latex-hbf-cns40-b5
Obsoletes:      cjk-latex-hbf-hanja65
Obsoletes:      cjk-latex-hbf-jfs56
Obsoletes:      cjk-latex-hbf-jisksp40
Obsoletes:      cjk-latex-hbf-kanji48
Obsoletes:      cjk-latex-wadalab-gothic
Obsoletes:      cjk-latex-wadalab-maru
Obsoletes:      cjk-latex-wadalab-maru2
Obsoletes:      cjk-latex-wadalab-mincho
Obsoletes:      cjk-latex-wadalab-mincho2
Obsoletes:      cjk-latex-tfm-kochi-mincho, cjk-latex-tfm-kochi-gothic
Obsoletes:      cjk-latex-tfm-arphic-gkai00mp, cjk-latex-tfm-arphic-gbsn00lp
Obsoletes:      cjk-latex-tfm-arphic-bkai00mp, cjk-latex-tfm-arphic-bsmi00lp
Obsoletes:      cjk-latex-tfm-baekmuk, cjk-latex-tfm-xtt-fonts
Obsoletes:      cjk-latex-tfm-bitstream-cyberbit, cjk-latex-tfm-microsoft-japanese
AutoReqProv:    on
Provides:       locale(texlive-cjk:ja;ko;zh)
Version:        20070515
Release:        168
Source0:        texlive-cjk-latex-extras-%{version}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Extra fonts and scripts for CJK LaTeX

This package contains some extra font setup files and scripts to
automatically generate fonts and setup files to use with CJK LaTeX.

    Mike FABIAN <>

find . -name CVS -type d | xargs rm -rf


mkdir -p $RPM_BUILD_ROOT/usr/share/texmf/tex/latex
cp -a ./texinput $RPM_BUILD_ROOT/usr/share/texmf/tex/latex/CJK
# install the scripts to generate tfm files and Type1 fonts from TrueType fonts:
mkdir -p $RPM_BUILD_ROOT/sbin/conf.d
mkdir -p $RPM_BUILD_ROOT/usr/sbin
install -p -m 755 SuSEconfig.cjk-latex $RPM_BUILD_ROOT/sbin/conf.d/SuSEconfig.cjk-latex
install -p -m 755 cjk-latex-config     $RPM_BUILD_ROOT/usr/sbin/
install -p -m 755 cjk-latex-t1mapgen   $RPM_BUILD_ROOT/usr/sbin/
install -p -m 755 sfd2map              $RPM_BUILD_ROOT/usr/sbin/

mkdir -p var/adm/SuSEconfig ; touch var/adm/SuSEconfig/run-texhash
test -x usr/bin/texhash && usr/bin/texhash
exit 0

mkdir -p var/adm/SuSEconfig ; touch var/adm/SuSEconfig/run-texhash
test -x usr/bin/texhash && usr/bin/texhash
exit 0

%defattr(-, root, root)
%doc examples/
%dir /usr/share/texmf/tex/
%dir /usr/share/texmf/tex/latex/

* Tue May 15 2007
- package renamed to texlive-cjk-latex-extras:
  The "texlive-cjk" package already contains most of the former
  "cjk-latex" package now. This new package contains the font
  setup files and automatic setup scripts from the former
  "cjk-latex" package which are not in the "texlive-cjk" package.
- remove symlinks from /usr/share/texmf/fonts/truetype to the
  .ttf font before recreating them in order to get the right
  symlinks after the move from  /usr/X11R6/lib/X11/fonts/truetype
  to /usr/share/fonts/truetype.
* Mon Nov 27 2006
- /usr/X11R6/lib/X11/fonts/truetype -> /usr/share/fonts/truetype
* Tue Feb 28 2006
- add "Provides: locale(te_latex:ja;ko;zh)".
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006
- Don't strip binaries.
* Wed Mar 02 2005
- add latest patch from upstream.
* Mon Feb 28 2005
- add missing '-print0' to find in cjk-latex-t1mapgen.
* Fri Feb 25 2005
- add new .fd files to support the IPA fonts. Add examples.
* Thu Feb 24 2005
- improve /usr/sbin/cjk-latex-t1mapgen (do recursive remove
  securely, add call to texhash, exit when creating temporary file
  fails). Thanks to Werner Fink <>
- remove in %%postun.
* Wed Feb 23 2005
- adapt directories in SuSEconfig.cjk-latex and cjk-latex-t1mapgen
  for tetex-3.0.
* Wed Feb 23 2005
- moved dvips config files for tetex-3.0
* Thu Oct 14 2004
- add new .fd files to support the Novell-ricoh-fonts. Add
* Fri Oct 01 2004
- Add new .fd files to support the Sazanami fonts (which replaced
  the dropped Kochi fonts). Add some examples and update
* Mon Apr 26 2004
- Bugzilla #39459: add new .fd files to support the Chinese
  "Founder" fonts. Add some examples and update README.SuSE
* Thu Aug 28 2003
- remove ttf fonts from neededforbuild.
* Tue Aug 26 2003
- add new option to explicitly enable smoothing of outlines to
  cjk-latex-config when generating Type1 fonts. Apparently too
  many fonts are broken and cause problems when smoothing is
  enabled. Therefore disable it by default and enable it only
  on specific request.
* Sun Aug 24 2003
- add new .fd files and examples for the Mika-Chan fonts.
* Thu Aug 21 2003
- make cjk-latex-t1mapgen 5 times faster by using one call to awk
  where a combination of grep and perl was used before.
* Mon Jun 16 2003
- update to 4.5.2.
- fix "directory now owned by any package".
* Fri May 16 2003
- fix file list.
* Tue Feb 18 2003
- update to 4.5.2rc
- remove hunk patching c42goth.fd (included upstream)
- delete only files, not the whole directory structure below
  /var/cache/fonts/pk/ at the end of cjk-latex-t1mapgen
- add a few more .fd files for the Arphic fonts in Bg5 and GB
  using the same font names as the already existing one in
  UTF8 do.
* Fri Sep 27 2002
- add new fd files for
  which use Kochi Mincho for medium and Kochi Gothic for bold.
- add "freetype-tools" to "Requires:". It is not absolutely
  necessary, there are some fonts which can be used with
  cjk-latex without freetype-tools, but almost all users will
  want to use TrueType fonts and I received a few bug reports
  from people who didn't read README.SuSE and didn't install
  "freetype-tools". It is probably better to require
* Thu Aug 01 2002
- add /bin/mkdir /bin/rm /usr/bin/touch to Prereq:
- fix directory where the autogenerated .tfm files are in
* Mon May 27 2002
- make the helper programs live in a ANSI world where sizeof(int) !=
  sizeof(pointer), where prototypes matter and varargs are true monsters.
* Wed Apr 24 2002
- delete $map_file when create_or_update_type1 fails
* Tue Feb 26 2002
- disable smoothing of outlines in cjk-latex-config for broken
  fonts (like kochi-gothic.ttf) to prevent segfault in ttf2pt1
  when processing such fonts.
* Tue Feb 26 2002
- skip watanabe-mincho.ttf and wadalab-gothic.ttf when generating
  Type1 fonts, these fonts don't seem to work with ttf2pt1
- make /var/lib/texmf/dvips/config/ an empty file if
  /usr/share/texmf/fonts/type1/cjk-latex doesn't exist.
* Mon Feb 25 2002
- fix sfd2map to make Type1 fonts work for UTF-8 as well.
* Mon Feb 25 2002
- add support for generation of Type1 fonts via ttf2pt1
  to cjk-latex-config
- add 'sfd2map' and 'cjk-latex-t1mapgen'
- call 'texhash' at the end of cjk-latex-config only when
  real work was done
- improve check method for out of date .tfm and .pfb files
* Mon Feb 04 2002
- add a call to 'texhash' to the start of cjk-latex-config to make
  sure ttf2tfm finds the .sfd files
- rename /usr/share/texmf/fonts/tfm/SuSEconfig.cjk-latex
  -> /usr/share/texmf/fonts/tfm/cjk-latex
- correct typo's in cjk-latex-config
* Mon Jan 14 2002
- add SuSEconfig.cjk-latex and /usr/sbin/cjk-latex-config
  to create the .tfm files automatically according to the
  entries in /etc/ttf2pk/
  All subpackages containing .tfm files generated from TT-fonts
  are therefore obsoleted.
* Sat Oct 06 2001
- update to the current snapshot (version 4.4.0, 20010731)
- add .fd files and .tfm files to support the use of several
  Japanese, Chinese, and Korean TrueType fonts in UTF-8 encoding
  as well.
- add examples for UTF-8, add UTF8-ja.{cap,cpx} for Japanese
  captions in UTF-8
- update README.SuSE
- include new binaries extconv, bg5+latex, and gbklatex
- include thai-word.el
* Tue Aug 07 2001
- added *.tfm and *.fd files for the free Japanese TrueType
  fonts kochi-mincho.ttf and kochi-gothic.ttf
  (ttf-kochi-mincho.rpm and ttf-kochi-gothic.rpm).
- added example file JIS-kochi.tex
- updated README.SuSE
* Sun Mar 11 2001
- add Requires:     tetex, te_latex
* Sat Mar 03 2001
- Fix missing includes.
- Fix use of %%suse_update_config macro.
* Thu Feb 15 2001
- added *.tfm and *.fd files for the free Japanese TrueType
  fonts watanabe-mincho.ttf and wadalab-gothic.ttf (xtt-fonts.rpm)
- added example file JIS-xtt-fonts.tex
- updated README.SuSE
- added missing and config.Wadalab to file list
* Sun Jan 21 2001
- added *.tfm and *.fd files for Baekmuk TrueType fonts
- added example file Baekmuk-test.tex
- updated README.SuSE
* Wed Dec 06 2000
- fixed typos in Example files
* Tue Dec 05 2000
- added Wadalab postscript fonts
* Thu Nov 23 2000
- new package: cjk-latex 4.2.0
openSUSE Build Service is sponsored by