File arphic-fonts.spec of Package arphic-fonts

#
# spec file for package arphic-fonts
#
# 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:           arphic-fonts
Version:        20001125
Release:        766
License:        SUSE-Arphic
%define	ttf_fontdir     /usr/share/fonts/truetype
Summary:        Chinese TrueType Fonts (contains only the license text)
Url:            http://www.arphic.com.tw/
Group:          System/X11/Fonts
# 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
Requires(pre):  %suseconfig_fonts_prereq
Provides:       ttf-arphic = %{version}
Obsoletes:      ttf-arphic <= 20001125
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

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

%package -n arphic-bkai00mp-fonts
Summary:        AR PL KaitiM Big5 Chinese TrueType font by Arphic Technology
Group:          System/X11/Fonts
Requires:       arphic-fonts
Provides:       scalable-font-zh-TW
Provides:       locale(zh_TW;zh_HK)
Provides:       ttf-arphic-bkai00mp = %{version}
Obsoletes:      ttf-arphic-bkai00mp <= 20001125

%description -n arphic-bkai00mp-fonts
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.

%package -n arphic-bsmi00lp-fonts
Summary:        AR PL Mingti2L Big5 Chinese TrueType font by Arphic Technology
Group:          System/X11/Fonts
Requires:       arphic-fonts
Provides:       scalable-font-zh-TW
Provides:       locale(zh_TW;zh_HK)
Provides:       ttf-arphic-bsmi00lp = %{version}
Obsoletes:      ttf-arphic-bsmi00lp <= 20001125

%description -n arphic-bsmi00lp-fonts
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.

%package -n arphic-gkai00mp-fonts
Summary:        AR PL KaitiM GB Chinese TrueType font by Arphic Technology
Group:          System/X11/Fonts
Requires:       arphic-fonts
Provides:       scalable-font-zh-CN
Provides:       locale(zh_CN;zh_SG)
Provides:       ttf-arphic-gkai00mp = %{version}
Obsoletes:      ttf-arphic-gkai00mp <= 20001125

%description -n arphic-gkai00mp-fonts
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.

%package -n arphic-gbsn00lp-fonts
Summary:        AR PL SungtiL GB Chinese TrueType font by Arphic Technology
Group:          System/X11/Fonts
Requires:       arphic-fonts
Provides:       scalable-font-zh-CN
Provides:       locale(zh_CN;zh_SG)
Provides:       ttf-arphic-gbsn00lp = %{version}
Obsoletes:      ttf-arphic-gbsn00lp <= 20001125

%description -n arphic-gbsn00lp-fonts
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.

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

%build

%install
mkdir -p %{buildroot}%{ttf_fontdir}/
install -c -m 644 *.ttf %{buildroot}%{ttf_fontdir}/
install -c -m 644 fonts.scale.* %{buildroot}%{ttf_fontdir}/

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

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

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

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

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

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

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

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

%clean
rm -rf %{buildroot}

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

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

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

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

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

%changelog
openSUSE Build Service is sponsored by