File ttf-arphic.spec of Package ttf-arphic

#
# spec file for package ttf-arphic (Version 20001125)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           ttf-arphic
%define	ttf_fontdir     /usr/share/fonts/truetype
License:        ARPHIC PUBLIC LICENSE
Group:          System/X11/Fonts
PreReq:         %suseconfig_fonts_prereq
AutoReqProv:    on
Version:        20001125
Release:        766
Url:            http://www.arphic.com.tw/
# ttf files have been downloaded from debian.
Source0:        ttf-arphic.tar.bz2
Source1:        fonts.scale.bkai00mp
Source2:        fonts.scale.bsmi00lp
Source3:        fonts.scale.gkai00mp
Source4:        fonts.scale.gbsn00lp
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Chinese TrueType fonts by Arphic Technology (only the license text is present in this package)

%description
Chinese TrueType fonts by Arphic Technology. This package contains only
the license texts. The fonts themselves are in the sub-packages
ttf-arphic-bkai00mp, ttf-arphic-bsmi00lp, ttf-arphic-gkai00mp, and
ttf-arphic-gbsn00lp.



Authors:
--------
    Arphic Technology Co., Ltd. <webmaster@www.arphic.com.tw>

%package -n ttf-arphic-bkai00mp
License:        ARPHIC PUBLIC LICENSE
Group:          System/X11/Fonts
Provides:       scalable-font-zh-TW
Provides:       locale(zh_TW;zh_HK)
Requires:       ttf-arphic
Summary:        AR PL KaitiM Big5 Chinese TrueType font by Arphic Technology

%description -n ttf-arphic-bkai00mp
AR PL KaitiM Big5 is a high quality Chinese TrueType font
(bkai00mp.ttf) generously provided by Arphic Technology to the Free
Software community under the Arphic Public License.



Authors:
--------
    Arphic Technology Co., Ltd. <webmaster@www.arphic.com.tw>

%package -n ttf-arphic-bsmi00lp
License:        ARPHIC PUBLIC LICENSE
Group:          System/X11/Fonts
Provides:       scalable-font-zh-TW
Provides:       locale(zh_TW;zh_HK)
Requires:       ttf-arphic
Summary:        AR PL Mingti2L Big5 Chinese TrueType font by Arphic Technology

%description -n ttf-arphic-bsmi00lp
AR PL Mingti2L Big5 is a high quality Chinese TrueType font
(bsmi00lp.ttf) generously provided by Arphic Technology to the Free
Software community under the Arphic Public License.



Authors:
--------
    Arphic Technology Co., Ltd. <webmaster@www.arphic.com.tw>

%package -n ttf-arphic-gkai00mp
License:        ARPHIC PUBLIC LICENSE
Group:          System/X11/Fonts
Provides:       scalable-font-zh-CN
Provides:       locale(zh_CN;zh_SG)
Requires:       ttf-arphic
Summary:        AR PL KaitiM GB Chinese TrueType font by Arphic Technology

%description -n ttf-arphic-gkai00mp
AR PL KaitiM GB is a high quality Chinese TrueType font (gkai00mp.ttf)
generously provided by Arphic Technology to the Free Software community
under the Arphic Public License.



Authors:
--------
    Arphic Technology Co., Ltd. <webmaster@www.arphic.com.tw>

%package -n ttf-arphic-gbsn00lp
License:        ARPHIC PUBLIC LICENSE
Group:          System/X11/Fonts
Provides:       scalable-font-zh-CN
Provides:       locale(zh_CN;zh_SG)
Requires:       ttf-arphic
Summary:        AR PL SungtiL GB Chinese TrueType font by Arphic Technology

%description -n ttf-arphic-gbsn00lp
AR PL SungtiL GB is a high quality Chinese TrueType font (gbsn00lp.ttf)
generously provided by Arphic Technology to the Free Software community
under the Arphic Public License.



Authors:
--------
    Arphic Technology Co., Ltd. <webmaster@www.arphic.com.tw>

%prep
%setup -n ttf-arphic
cp $RPM_SOURCE_DIR/fonts.scale* .

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}/
install -c -m 644 *.ttf $RPM_BUILD_ROOT%{ttf_fontdir}/
install -c -m 644 fonts.scale.* $RPM_BUILD_ROOT%{ttf_fontdir}/

%post -n ttf-arphic-bkai00mp
%run_suseconfig_fonts -c

%postun -n ttf-arphic-bkai00mp
%run_suseconfig_fonts -c

%post -n ttf-arphic-bsmi00lp
%run_suseconfig_fonts -c

%postun -n ttf-arphic-bsmi00lp
%run_suseconfig_fonts -c

%post -n ttf-arphic-gkai00mp
%run_suseconfig_fonts -c

%postun -n ttf-arphic-gkai00mp
%run_suseconfig_fonts -c

%post -n ttf-arphic-gbsn00lp
%run_suseconfig_fonts -c

%postun -n ttf-arphic-gbsn00lp
%run_suseconfig_fonts -c

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root,root)
%doc ./license

%files -n ttf-arphic-bkai00mp
%defattr(-, root,root)
%dir %{ttf_fontdir}/
%{ttf_fontdir}/bkai00mp.ttf
%config %{ttf_fontdir}/fonts.scale.bkai00mp

%files -n ttf-arphic-bsmi00lp
%defattr(-, root,root)
%dir %{ttf_fontdir}/
%{ttf_fontdir}/bsmi00lp.ttf
%config %{ttf_fontdir}/fonts.scale.bsmi00lp

%files -n ttf-arphic-gkai00mp
%defattr(-, root,root)
%dir %{ttf_fontdir}/
%{ttf_fontdir}/gkai00mp.ttf
%config %{ttf_fontdir}/fonts.scale.gkai00mp

%files -n ttf-arphic-gbsn00lp
%defattr(-, root,root)
%dir %{ttf_fontdir}/
%{ttf_fontdir}/gbsn00lp.ttf
%config %{ttf_fontdir}/fonts.scale.gbsn00lp

%changelog