File ghostscript-cjk.spec of Package ghostscript-cjk

#
# spec file for package ghostscript-cjk
#
# Copyright (c) 2012 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 http://bugs.opensuse.org/
#


Name:           ghostscript-cjk
Provides:       locale(ghostscript-library:ja;ko;zh)
Version:        20050315
Release:        0
Requires:       ft2demos
Requires:       ghostscript-library >= 8.15
Obsoletes:      CMap-Adobe-CNS1
Obsoletes:      CMap-Adobe-GB1
Obsoletes:      CMap-Adobe-Identity
Obsoletes:      CMap-Adobe-Japan1
Obsoletes:      CMap-Adobe-Japan2
Obsoletes:      CMap-Adobe-Korea1
Url:            http://www.gyve.org/gs-cjk/
# Original source is gzipped.
Source0:        ftp://ftp.gyve.org/pub/gs-cjk/adobe-cmaps-200204.tar.bz2
Source1:        ftp://ftp.gyve.org/pub/gs-cjk/acro5-cmaps-2001.tar.bz2
Source2:        http://www.aihara.co.jp/~taiji/tops/install-cid-20020820.tar.gz
Source11:       cidfont-x11-config
Source12:       acroread-cidfont-config
Source13:       ghostscript-cjk-config
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Tools for Using CJK TrueType Fonts and CID-Keyed Fonts with Ghostscript
License:        BSD-3-Clause
Group:          Productivity/Publishing/PS

%description
CMaps, scripts, and other tools for using CJK TrueType fonts and
CID-keyed fonts with Ghostscript.



Authors:
--------
    Taiji Yamada <taiji@aihara.co.jp>
    suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
    Masatake YAMATO <jet@gyve.org>
    Hideyuki Suzuki <hideyuki@sat.t.u-tokyo.ac.jp>

%prep
%setup0 -n %{name} -c %{name} -T
mkdir -p Resource/{CIDFont,Font}
pushd Resource
    tar jxvf ${RPM_SOURCE_DIR}/adobe-cmaps-200204.tar.bz2
    tar jxvf ${RPM_SOURCE_DIR}/acro5-cmaps-2001.tar.bz2
#    tar zxvf ${RPM_SOURCE_DIR}/install-cid-20020820.tar.gz
    rm -f *.bat
popd

%build 

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p ${RPM_BUILD_ROOT}/usr/share/ghostscript/ 
cp -a Resource ${RPM_BUILD_ROOT}/usr/share/ghostscript/
mkdir -p ${RPM_BUILD_ROOT}/sbin/conf.d/
mkdir -p ${RPM_BUILD_ROOT}/usr/sbin
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man1
install -p -m 755 ${RPM_SOURCE_DIR}/ghostscript-cjk-config \
                  ${RPM_BUILD_ROOT}/usr/sbin
pod2man --section 1 --center=" " ${RPM_SOURCE_DIR}/ghostscript-cjk-config \
        > $RPM_BUILD_ROOT/%{_mandir}/man1/ghostscript-cjk-config.1
install -p -m 755 ${RPM_SOURCE_DIR}/cidfont-x11-config \
                  ${RPM_BUILD_ROOT}/usr/sbin
pod2man --section 1 --center=" " ${RPM_SOURCE_DIR}/cidfont-x11-config \
        > $RPM_BUILD_ROOT/%{_mandir}/man1/cidfont-x11-config.1
install -p -m 755 ${RPM_SOURCE_DIR}/acroread-cidfont-config \
                  ${RPM_BUILD_ROOT}/usr/sbin
pod2man --section 1 --center=" " ${RPM_SOURCE_DIR}/acroread-cidfont-config \
        > $RPM_BUILD_ROOT/%{_mandir}/man1/acroread-cidfont-config.1

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%post
LC_ALL=POSIX
if test -x /usr/sbin/acroread-cidfont-config ; then
    /usr/sbin/acroread-cidfont-config || :
fi
if test -x /usr/sbin/ghostscript-cjk-config ; then
    /usr/sbin/ghostscript-cjk-config || :
fi

%files
%defattr(-, root, root)
%doc
%dir /usr/share/ghostscript/
/usr/share/ghostscript/*
/usr/sbin/ghostscript-cjk-config
/usr/sbin/cidfont-x11-config
/usr/sbin/acroread-cidfont-config
%{_mandir}/*/*

%changelog
openSUSE Build Service is sponsored by