reviging the acroread-fonts packages

PILCH Hartmut <[email protected]>
Newsgroups gmane.linux.suse.m17n
Message-ID <[email protected]>
A few years ago Mike Fabian provided a package that allowed us to install the
CJK fonts for Acrobat Reader 8 without the usual hassle.

I've updated this package for Acroread 9 and enlarged the scope so that it
also includes the 'xtd' (extended) fonts.

This has led to the creation of two more (sub)packages than there were before:
acroread-fonts-xtd and acroread-fonts.  The latter is the parent of all the
subpackages.  It contains the architecture-specific files (mostly from xtd),
whereas all subpackages are noarch.

Also, for ease of package managment I renamed acroread-cmaps to
acroread-fonts-cmaps and set a 'Provides' alias to the old name.

You can find my spec file and a tar directory listing of the source file.
It is only one source file, named in the standard way, consisting of the
unpacked Adobe files plus a README and LICENSE file in the top level
directory.

Can we put a package like this one into the non-oss or some non-official
distribution?

-- 
Hartmut Pilch				http://a2e.de/phm
acroread-fonts.spec (text/plain, 7 KB)
# -*- coding: utf-8; mode: conf; srcfile:/adv/mktdir/tmpl/spec_header_tmpl.txt -*-

# spec file for package acroread-fonts (Version 9), built for repository pvt

# Copyright (c) 2008-2011 Hartmut Pilch <http://a2e.de/phm>
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.

# Please submit bugfixes or comments to [email protected]

Name:           acroread-fonts
Version:        9
Release:        1
License:        Adobe EULA
Group:          Productivity/Publishing/Other
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.adobe.com/products/acrobat/readermain.html
BuildArchitectures: i586
Summary:	East-Asian fonts for Adobe Acrobat Reader
Autoreqprov:    on
Source:		%{name}-%{version}.tar.bz2

BuildRequires:	acroread >= 9.1
BuildRequires:	perl-Expect
BuildRequires:  fdupes
Requires:	acroread >= 9.1
Group:          Productivity/Publishing/PDF
Provides:       locale(acroread:ja;ko;zh)

%description

Chinese Traditional & Simplified, Japanese, Korean and Extended font packages for Acrobat Reader.
With these you can view PDF documents that reference PDF standard fonts for said scripts.

Authors:
--------

	Adobe Systems Incorporated

%package cmaps
License:        Adobe EULA
#Requires:       acroread-fonts
Provides:       acroread-cmaps
Summary:        Character Maps for Adobe Acrobat Reader Open Type Fonts
Group:          Productivity/Publishing/PDF
AutoReqProv:    on
BuildArch:	noarch

%description cmaps
Here you find the assorted character maps for Protable Document Format Open Type fonts installable as extensions to Adobe Acrobat Reader

Authors:
--------
    Adobe Systems Incorporated

%package zh_CN
License:        Adobe EULA
#Requires:       acroread-fonts
Provides:       locale(acroread:zh)
Summary:        Simplified Chinese fonts for acroread
Group:          System/I18n/Chinese
AutoReqProv:    on
BuildArch:	noarch

%description zh_CN
Simplified Chinese fonts for Adobe Acrobat Reader

Authors:
--------
    Adobe Systems Incorporated

%package zh_TW
License:        Adobe EULA
#Requires:       acroread-fonts
Provides:       locale(acroread:zh)
Summary:        Traditional Chinese fonts for acroread
Group:          System/I18n/Chinese
AutoReqProv:    on
BuildArch:	noarch

%description zh_TW
Traditional Chinese fonts as required by the PDF Specification installable as extensions to Adobe Acrobat Reader

Authors:
--------
	Adobe Systems Incorporated

%package ko
License:        Adobe EULA
#Requires:       acroread-fonts
Provides:       locale(acroread:ko)
Summary:        Korean fonts for acroread
Group:          System/I18n/Korean
AutoReqProv:    on
BuildArch:	noarch

%description ko
Korean fonts required by the PDF specification installable as extensions to Adobe Acrobat Reader

Authors:
--------
    Adobe Systems Incorporated

%package ja
License:        Adobe EULA
#Requires:       acroread-fonts
Provides:       locale(acroread:ja)
Summary:        Japanese fonts for acroread
Group:          System/I18n/Japanese
AutoReqProv:    on
BuildArch:	noarch

%description ja
Japanese fonts required by the PDF specification installable as extensions to Adobe Acrobat Reader

Authors:
--------
	Adobe Systems Incorporated

%package xtd
License:        Adobe EULA
#Requires:       acroread-fonts
#Provides:       locale(acroread:ja)
Summary:        Various fonts for acroread
Group:          System/I18n
AutoReqProv:    on
BuildArch:	noarch

%description xtd
Various additional fonts installable as extensions to the Adobe Acrobat Reader in support of the PDF specification

Authors:
--------
	Adobe Systems Incorporated

%define INSTALL_DIR /usr/lib
%debug_package
%prep
%setup -q

%build
# there is nothing to build as this package is a binary-only package

%install
# perl ./INSTALL.pl
mkdir -p $RPM_BUILD_ROOT%INSTALL_DIR
# CHSKIT/*.TAR CHTKIT/*.TAR KORKIT/*TAR JPNKIT/*.TAR xtdfont/*.TAR
for i in */*.TAR
do
    tar xvf $i -C $RPM_BUILD_ROOT%INSTALL_DIR 
done
# Delete files which are already in the main acroread package:
rm -f $RPM_BUILD_ROOT%INSTALL_DIR/Adobe/Reader9/Resource/CMap/Identity-H
rm -f $RPM_BUILD_ROOT%INSTALL_DIR/Adobe/Reader9/Resource/CMap/Identity-V
%if %suse_version > 1020
%fdupes $RPM_BUILD_ROOT
%endif
rm -f $RPM_BUILD_ROOT%INSTALL_DIR/INSTALL
rm -f $RPM_BUILD_ROOT%INSTALL_DIR/LICREAD.TXT

%clean

%post
ldconfig

%files
%defattr(-,root,root,-)
#%dir %INSTALL_DIR/Adobe/Reader9/Reader/intellinux/lib
%INSTALL_DIR/Adobe/Reader9/Reader/intellinux/lib/libicudata.so.36.0
%INSTALL_DIR/Adobe/Reader9/Reader/intellinux/lib/libicuuc.so.36.0
%INSTALL_DIR/Adobe/Reader9/Reader/intellinux/lib/libpiaglbreakfinder.so

%files cmaps
%defattr(-,root,root,-)
%doc CHSKIT/LICREAD.TXT
%dir %INSTALL_DIR/Adobe/
%dir %INSTALL_DIR/Adobe/Reader9/
%dir %INSTALL_DIR/Adobe/Reader9/Resource/
%dir %INSTALL_DIR/Adobe/Reader9/Resource/CMap/
# the Identity* CMaps area already in the main acroread package:
%INSTALL_DIR/Adobe/Reader9/Resource/CMap/[0-9A-HJ-Z]*

%files zh_CN
%defattr(-,root,root)
%doc CHSKIT/LICREAD.TXT
%dir %INSTALL_DIR/Adobe/
%dir %INSTALL_DIR/Adobe/Reader9/
%dir %INSTALL_DIR/Adobe/Reader9/Resource/
%dir %INSTALL_DIR/Adobe/Reader9/Resource/CIDFont/
%INSTALL_DIR/Adobe/Reader9/Resource/CIDFont/AdobeSongStd-Light.otf
%INSTALL_DIR/Adobe/Reader9/Resource/CIDFont/AdobeHeitiStd-Regular.otf

%files zh_TW
%defattr(-,root,root)
%doc CHTKIT/LICREAD.TXT
%dir %INSTALL_DIR/Adobe/
%dir %INSTALL_DIR/Adobe/Reader9/
%dir %INSTALL_DIR/Adobe/Reader9/Resource/
%dir %INSTALL_DIR/Adobe/Reader9/Resource/CIDFont/
%INSTALL_DIR/Adobe/Reader9/Resource/CIDFont/AdobeMingStd-Light.otf

%files ko
%defattr(-,root,root)
%doc KORKIT/LICREAD.TXT
%dir %INSTALL_DIR/Adobe/
%dir %INSTALL_DIR/Adobe/Reader9/
%dir %INSTALL_DIR/Adobe/Reader9/Resource/
%dir %INSTALL_DIR/Adobe/Reader9/Resource/CIDFont/
%INSTALL_DIR/Adobe/Reader9/Resource/CIDFont/AdobeMyungjoStd-Medium.otf

%files ja
%defattr(-,root,root)
%doc JPNKIT/LICREAD.TXT
%dir %INSTALL_DIR/Adobe/
%dir %INSTALL_DIR/Adobe/Reader9/
%dir %INSTALL_DIR/Adobe/Reader9/Resource/
%dir %INSTALL_DIR/Adobe/Reader9/Resource/CIDFont/
%INSTALL_DIR/Adobe/Reader9/Resource/CIDFont/KozMinPr6N-Regular.otf

%files xtd
%defattr(-,root,root)
%doc xtdfont/LICREAD.TXT
%dir %INSTALL_DIR/Adobe/
%dir %INSTALL_DIR/Adobe/Reader9/
%dir %INSTALL_DIR/Adobe/Reader9/Resource
%dir %INSTALL_DIR/Adobe/Reader9/Resource/Font
%INSTALL_DIR/Adobe/Reader9/Resource/Font/Adobe*.otf
%INSTALL_DIR/Adobe/Reader9/Resource/Font/MinionPro*.otf
%INSTALL_DIR/Adobe/Reader9/Resource/Font/MyriadPro*.otf
%dir %INSTALL_DIR/Adobe/Reader9/Reader

%changelog
* Sat Jan 08 2011 [email protected]
- adapted for a2e
* Tue Jul 15 2008 [email protected]
- bnc#409272: fix locale() tags in .spec file: install
  acroread-cmaps and fonts only if acroread is already installed.
* Tue Feb  5 2008 [email protected]
- update fontpackages to the final release for 8.1.2.
  (now a Gothic font for Japanese is included.)
* Fri Jan 11 2008 [email protected]
- use fdupes only for openSUSE >= 10.3.
* Fri Jan 11 2008 [email protected]
- adapt paths for acroread 8.1.2.
* Fri Oct 12 2007 [email protected]
- new packages with CMaps and fonts for Chinese, Japanese,
  and Korean.
tar.tjvf (text/plain, 2.5 KB)
$ tar tjvf acroread-fonts-9.tar.bz2 
drwxrwxr-x phm/users         0 2011-01-08 21:07 acroread-fonts-9/
drwxr-xr-x phm/users         0 2011-01-08 21:07 acroread-fonts-9/xtdfont/
-rw-r--r-- phm/users  14284800 2011-01-08 21:07 acroread-fonts-9/xtdfont/XTDFONT.TAR
-rw-r--r-- phm/users       244 2011-01-08 21:07 acroread-fonts-9/xtdfont/LICREAD.TXT
-rwxr-xr-x phm/users      6309 2011-01-08 21:07 acroread-fonts-9/xtdfont/INSTALL
drwxr-xr-x phm/users         0 2011-01-08 21:06 acroread-fonts-9/CHSKIT/
-rw-r--r-- phm/users  10168320 2011-01-08 21:06 acroread-fonts-9/CHSKIT/BINCOM.TAR
-rw-r--r-- phm/users   6768640 2011-01-08 21:06 acroread-fonts-9/CHSKIT/LANGCOM.TAR
-rw-r--r-- phm/users       244 2011-01-08 21:06 acroread-fonts-9/CHSKIT/LICREAD.TXT
-rwxr-xr-x phm/users      7129 2011-01-08 21:06 acroread-fonts-9/CHSKIT/INSTALL
-rw-r--r-- phm/users  27863040 2011-01-08 21:06 acroread-fonts-9/CHSKIT/LANGCHS.TAR
-rwxr-xr-x phm/users        84 2011-01-08 21:06 acroread-fonts-9/README
drwxr-xr-x phm/users         0 2011-01-08 21:07 acroread-fonts-9/KORKIT/
-rw-r--r-- phm/users  10168320 2011-01-08 21:07 acroread-fonts-9/KORKIT/BINCOM.TAR
-rw-r--r-- phm/users   6768640 2011-01-08 21:06 acroread-fonts-9/KORKIT/LANGCOM.TAR
-rw-r--r-- phm/users       244 2011-01-08 21:06 acroread-fonts-9/KORKIT/LICREAD.TXT
-rwxr-xr-x phm/users      7129 2011-01-08 21:07 acroread-fonts-9/KORKIT/INSTALL
-rw-r--r-- phm/users   4003840 2011-01-08 21:06 acroread-fonts-9/KORKIT/LANGKOR.TAR
-rwxr-xr-x phm/users      3023 2011-01-08 21:06 acroread-fonts-9/LICENSE
drwxr-xr-x phm/users         0 2011-01-08 21:06 acroread-fonts-9/JPNKIT/
-rw-r--r-- phm/users  10168320 2011-01-08 21:06 acroread-fonts-9/JPNKIT/BINCOM.TAR
-rw-r--r-- phm/users   6768640 2011-01-08 21:06 acroread-fonts-9/JPNKIT/LANGCOM.TAR
-rw-r--r-- phm/users   8140800 2011-01-08 21:06 acroread-fonts-9/JPNKIT/LANGJPN.TAR
-rw-r--r-- phm/users       244 2011-01-08 21:06 acroread-fonts-9/JPNKIT/LICREAD.TXT
-rwxr-xr-x phm/users      7129 2011-01-08 21:06 acroread-fonts-9/JPNKIT/INSTALL
drwxr-xr-x phm/users         0 2011-01-08 21:06 acroread-fonts-9/CHTKIT/
-rw-r--r-- phm/users  10168320 2011-01-08 21:06 acroread-fonts-9/CHTKIT/BINCOM.TAR
-rw-r--r-- phm/users   6768640 2011-01-08 21:06 acroread-fonts-9/CHTKIT/LANGCOM.TAR
-rw-r--r-- phm/users  10158080 2011-01-08 21:06 acroread-fonts-9/CHTKIT/LANGCHT.TAR
-rw-r--r-- phm/users       244 2011-01-08 21:06 acroread-fonts-9/CHTKIT/LICREAD.TXT
-rwxr-xr-x phm/users      7129 2011-01-08 21:06 acroread-fonts-9/CHTKIT/INSTALL
$
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.