# # spec file for package intlfonts # # Copyright (c) 2011 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: intlfonts BuildRequires: freetype2 BuildRequires: xorg-x11 BuildRequires: xorg-x11-devel %define bitmap_fontdir /usr/share/fonts/misc %define ttf_fontdir /usr/share/fonts/truetype %define type1_fontdir /usr/share/fonts/Type1 %define bdf_fontdir /usr/share/fonts/bdf PreReq: %suseconfig_fonts_prereq BuildArch: noarch Version: 1.2.1 Release: 0 Summary: Documentation for the International Fonts License: SUSE-Public-Domain Group: System/X11/Fonts Url: ftp://ftp.gnu.org/gnu/intlfonts/ Source0: ftp://ftp.gnu.org/gnu/intlfonts/intlfonts-1.2.1.tar.bz2 Source1: gulim24.bdf.bz2 Source2: fonts.scale.intlfonts-ttf Source3: efont-iso8859-15.tar.bz2 Patch: intlfonts-1.2.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This package contains the READMEs for international fonts from the following packages: intlfonts-arabic-bitmap-fonts: Arab fonts for X11 intlfonts-asian-bitmap-fonts: Asian fonts for X11 intlfonts-chinese-bitmap-fonts: Chinese fonts for X11 intlfonts-chinese-big-bitmap-fonts: Big Chinese fonts for X11 intlfonts-ethiopic-bitmap-fonts: Ethiopic fonts for X11 intlfonts-euro-bitmap-fonts: European fonts for X11 intlfonts-japanese-bitmap-fonts: Japanese fonts for X11 intlfonts-japanese-big-bitmap-fonts: Big Japanese fonts for X11 intlfonts-phonetic-bitmap-fonts: IPA fonts for X11 intlfonts-ttf-fonts: TrueType fonts intlfonts-type1-fonts: Type1 fonts intlfonts-bdf-fonts: Bitmap fonts useful for printing exotic languages from Emacs %package -n intlfonts-arabic-bitmap-fonts PreReq: %suseconfig_fonts_prereq Summary: Arabic Fonts for the X Window System License: SUSE-Public-Domain Group: System/X11/Fonts Provides: locale(xorg-x11:ar) Provides: ifntarab = %{version} Obsoletes: ifntarab <= 1.2.1 %description -n intlfonts-arabic-bitmap-fonts Arabic fonts for the X Window System. %package -n intlfonts-asian-bitmap-fonts PreReq: %suseconfig_fonts_prereq Summary: Asian Fonts for the X Window System License: No license agreement found in package ; SUSE-Public-Domain Group: System/X11/Fonts Provides: locale(xorg-x11:km;th;vi) Provides: ifntasia = %{version} Obsoletes: ifntasia <= 1.2.1 %description -n intlfonts-asian-bitmap-fonts Asian fonts for the X Window System. %package -n intlfonts-chinese-bitmap-fonts PreReq: %suseconfig_fonts_prereq Summary: Chinese Fonts for the X Window System License: PERMISSIVE-OSI-COMPLIANT Group: System/X11/Fonts Provides: locale(xorg-x11:zh) Provides: ifntchia = %{version} Obsoletes: ifntchia <= 1.2.1 %description -n intlfonts-chinese-bitmap-fonts Chinese fonts for the X Window System. %package -n intlfonts-chinese-big-bitmap-fonts PreReq: %suseconfig_fonts_prereq Summary: Big Chinese Fonts for the X Window System License: SUSE-Public-Domain Group: System/X11/Fonts Provides: locale(xorg-x11:zh) Provides: ifntchib = %{version} Obsoletes: ifntchib <= 1.2.1 %description -n intlfonts-chinese-big-bitmap-fonts Big Chinese fonts for the X Window System. %package -n intlfonts-ethiopic-bitmap-fonts PreReq: %suseconfig_fonts_prereq Summary: Ethiopic Fonts for the X Window System License: No license agreement found in package ; SUSE-Public-Domain Group: System/X11/Fonts Provides: locale(xorg-x11:am) Provides: ifntethi = %{version} Obsoletes: ifntethi <= 1.2.1 %description -n intlfonts-ethiopic-bitmap-fonts Ethiopic fonts for the X Window System. %package -n intlfonts-euro-bitmap-fonts PreReq: %suseconfig_fonts_prereq Summary: European fonts for the X Window System License: PERMISSIVE-OSI-COMPLIANT Group: System/X11/Fonts Provides: locale(xorg-x11:cs;el) Provides: ifnteuro = %{version} Obsoletes: ifnteuro <= 1.2.1 %description -n intlfonts-euro-bitmap-fonts European fonts for the X Window System (ISO 8859-1, 8859-2, 8859-3, 8859-4, 8859-5/9, 8859-7, and 8859-8 together with KOI8-1/GOST19768.74-1). %package -n intlfonts-japanese-bitmap-fonts PreReq: %suseconfig_fonts_prereq Summary: Japanese Fonts for the X Window System License: SUSE-Public-Domain Group: System/X11/Fonts Provides: locale(xorg-x11:ja) Provides: ifntjapa = %{version} Obsoletes: ifntjapa <= 1.2.1 %description -n intlfonts-japanese-bitmap-fonts Japanese fonts for the X Window System. %package -n intlfonts-japanese-big-bitmap-fonts PreReq: %suseconfig_fonts_prereq Summary: Big Japanese Fonts for the X Window System License: SUSE-Public-Domain Group: System/X11/Fonts Provides: locale(xorg-x11:ja) Provides: ifntjapb = %{version} Obsoletes: ifntjapb <= 1.2.1 %description -n intlfonts-japanese-big-bitmap-fonts Big Japanese fonts for the X Window System. %package -n intlfonts-phonetic-bitmap-fonts PreReq: %suseconfig_fonts_prereq Summary: IPA font for the X Window System License: SUSE-Public-Domain Group: System/X11/Fonts Provides: ifntphon = %{version} Obsoletes: ifntphon <= 1.2.1 %description -n intlfonts-phonetic-bitmap-fonts The International Phonetic Alphabet font for the X Window System. %package -n intlfonts-ttf-fonts PreReq: %suseconfig_fonts_prereq Summary: TrueType Fonts from the GNU Intlfonts Package License: PERMISSIVE-OSI-COMPLIANT Group: System/X11/Fonts Provides: intlfonts-ttf = %{version} Obsoletes: intlfonts-ttf <= 1.2.1 %description -n intlfonts-ttf-fonts TrueType fonts from the GNU intlfonts package. %package -n intlfonts-bdf-fonts Summary: Fonts from the GNU Intlfonts Package in BDF Format License: PERMISSIVE-OSI-COMPLIANT Group: System/X11/Fonts Provides: intlfonts-bdf = %{version} Obsoletes: intlfonts-bdf <= 1.2.1 %description -n intlfonts-bdf-fonts Fonts from the GNU intlfonts package in the BDF format. These fonts are useful for printing exotic languages such as Thai, Tibetan, Vietnamese, Arabic, and more from within Emacs. %package -n intlfonts-type1-fonts PreReq: %suseconfig_fonts_prereq Summary: Type1 Fonts from the GNU Intlfonts Package License: PERMISSIVE-OSI-COMPLIANT Group: System/X11/Fonts %description -n intlfonts-type1-fonts Type1 fonts from the GNU intlfonts package. %prep %setup -n intlfonts-1.2.1 -b 0 -a 3 %patch bunzip2 -c $RPM_SOURCE_DIR/gulim24.bdf.bz2 > gulim24.bdf %build set +o posix SUBDIRS="European Asian Chinese Japanese Ethiopic Misc" SUBDIRS_X="Chinese-X Japanese-X Korean-X" SUBDIRS_BIG="European.BIG Chinese.BIG Japanese.BIG" SUBDIRS_EFONT="efont-iso8859-15" dirs="$SUBDIRS $SUBDIRS_BIG $SUBDIRS_EFONT" for b in $(find $dirs -name '*.bdf') ; do p=${b%%.bdf}.pcf test -s ${p}.gz || bdftopcf -o >(gzip -9cf > ${p}.gz) $b done %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{bitmap_fontdir}/ set +o posix for f in $(find ./ -name '*.pcf.gz') ; do install -m 0444 $f $RPM_BUILD_ROOT%{bitmap_fontdir}/ done mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}/ install -m 0444 TrueType/*.ttf $RPM_BUILD_ROOT%{ttf_fontdir}/ install -m 0444 $RPM_SOURCE_DIR/fonts.scale.intlfonts-ttf $RPM_BUILD_ROOT%{ttf_fontdir}/ mkdir -p $RPM_BUILD_ROOT%{type1_fontdir}/ install -m 0444 Type1/*.[ap]f? $RPM_BUILD_ROOT%{type1_fontdir}/ mkdir -p $RPM_BUILD_ROOT%{bdf_fontdir}/ for f in \ lt1-24-etl lt1-16b-etl lt1-16i-etl lt1-16bi-etl lt1-24-etl lt1-16b-etl \ lt1-16i-etl lt1-16bi-etl lt2-24-etl lt3-24-etl lt4-24-etl thai24 \ grk24-etl heb24-etl 12x24rk 12x24rk cyr24-etl lt5-24-etl jiskan24 \ gb24st jiskan24 gulim24 jksp40 cns1-40 cns2-40 taipei24 taipei24 \ sish24-etl ipa24-etl visc24-etl visc24-etl arab24-0-etl arab24-1-etl \ lao24-mule arab24-2-etl ind1c24-mule tib1c24-mule tib24-mule \ ethio24f-uni cns3-40 cns4-40 cns5-40 cns6-40 cns7-40 ind24-mule do install -m 0444 `find . -name $f.bdf` $RPM_BUILD_ROOT%{bdf_fontdir} done # install documents mkdir -m 0755 -p $RPM_BUILD_ROOT%{_defaultdocdir}/intlfonts find . -name 'README*' | while read i; do mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/intlfonts/${i%/*} install -m 0444 $i $RPM_BUILD_ROOT%{_defaultdocdir}/intlfonts/${i%/*} done cp -a $RPM_BUILD_ROOT%{_defaultdocdir}/intlfonts/Misc \ $RPM_BUILD_ROOT%{_defaultdocdir}/intlfonts/Arabic %clean rm -rf $RPM_BUILD_ROOT %post -n intlfonts-arabic-bitmap-fonts %run_suseconfig_fonts %postun -n intlfonts-arabic-bitmap-fonts %run_suseconfig_fonts %post -n intlfonts-asian-bitmap-fonts %run_suseconfig_fonts %postun -n intlfonts-asian-bitmap-fonts %run_suseconfig_fonts %post -n intlfonts-chinese-bitmap-fonts %run_suseconfig_fonts %postun -n intlfonts-chinese-bitmap-fonts %run_suseconfig_fonts %post -n intlfonts-chinese-big-bitmap-fonts %run_suseconfig_fonts %postun -n intlfonts-chinese-big-bitmap-fonts %run_suseconfig_fonts %post -n intlfonts-ethiopic-bitmap-fonts %run_suseconfig_fonts %postun -n intlfonts-ethiopic-bitmap-fonts %run_suseconfig_fonts %post -n intlfonts-euro-bitmap-fonts %run_suseconfig_fonts %postun -n intlfonts-euro-bitmap-fonts %run_suseconfig_fonts %post -n intlfonts-japanese-bitmap-fonts %run_suseconfig_fonts %postun -n intlfonts-japanese-bitmap-fonts %run_suseconfig_fonts %post -n intlfonts-japanese-big-bitmap-fonts %run_suseconfig_fonts %postun -n intlfonts-japanese-big-bitmap-fonts %run_suseconfig_fonts %post -n intlfonts-phonetic-bitmap-fonts %run_suseconfig_fonts %postun -n intlfonts-phonetic-bitmap-fonts %run_suseconfig_fonts %post -n intlfonts-ttf-fonts %run_suseconfig_fonts -c %postun -n intlfonts-ttf-fonts %run_suseconfig_fonts -c %post -n intlfonts-type1-fonts %run_suseconfig_fonts -c %postun -n intlfonts-type1-fonts %run_suseconfig_fonts -c %files %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/README* %files -n intlfonts-arabic-bitmap-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/Arabic %dir %{bitmap_fontdir}/ %{bitmap_fontdir}/arab16-0-etl.pcf.gz %{bitmap_fontdir}/arab16-1-etl.pcf.gz %{bitmap_fontdir}/arab16-2-etl.pcf.gz %{bitmap_fontdir}/arab24-0-etl.pcf.gz %{bitmap_fontdir}/arab24-1-etl.pcf.gz %{bitmap_fontdir}/arab24-2-etl.pcf.gz %files -n intlfonts-asian-bitmap-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/Asian %dir %{bitmap_fontdir}/ %{bitmap_fontdir}/ind16-mule.pcf.gz %{bitmap_fontdir}/ind16-uni.pcf.gz %{bitmap_fontdir}/ind1c16-mule.pcf.gz %{bitmap_fontdir}/ind1c24-mule.pcf.gz %{bitmap_fontdir}/ind24-mule.pcf.gz %{bitmap_fontdir}/ind24-uni.pcf.gz %{bitmap_fontdir}/isci16-mule.pcf.gz %{bitmap_fontdir}/isci24-mule.pcf.gz %{bitmap_fontdir}/lao14-mule.pcf.gz %{bitmap_fontdir}/lao16-mule.pcf.gz %{bitmap_fontdir}/lao18-mule.pcf.gz %{bitmap_fontdir}/lao18b-mule.pcf.gz %{bitmap_fontdir}/lao18i-mule.pcf.gz %{bitmap_fontdir}/lao24-mule.pcf.gz %{bitmap_fontdir}/thai14.pcf.gz %{bitmap_fontdir}/thai16.pcf.gz %{bitmap_fontdir}/thai18.pcf.gz %{bitmap_fontdir}/thai18b.pcf.gz %{bitmap_fontdir}/thai18bi.pcf.gz %{bitmap_fontdir}/thai18i.pcf.gz %{bitmap_fontdir}/thai24.pcf.gz %{bitmap_fontdir}/tib16-mule.pcf.gz %{bitmap_fontdir}/tib1c16-mule.pcf.gz %{bitmap_fontdir}/tib1c24-mule.pcf.gz %{bitmap_fontdir}/tib24-mule.pcf.gz %{bitmap_fontdir}/visc16-etl.pcf.gz %{bitmap_fontdir}/visc18-etl.pcf.gz %{bitmap_fontdir}/visc18b-etl.pcf.gz %{bitmap_fontdir}/visc18bi-etl.pcf.gz %{bitmap_fontdir}/visc18i-etl.pcf.gz %{bitmap_fontdir}/visc24-etl.pcf.gz %{bitmap_fontdir}/xtis18.pcf.gz %{bitmap_fontdir}/xtis24.pcf.gz %files -n intlfonts-chinese-bitmap-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/Chinese %dir %{bitmap_fontdir}/ %{bitmap_fontdir}/cns1-16.pcf.gz %{bitmap_fontdir}/cns1-24.pcf.gz %{bitmap_fontdir}/cns2-16.pcf.gz %{bitmap_fontdir}/cns2-24.pcf.gz %{bitmap_fontdir}/cns3-16.pcf.gz %{bitmap_fontdir}/cns3-24.pcf.gz %{bitmap_fontdir}/cns4-16.pcf.gz %{bitmap_fontdir}/cns4-24.pcf.gz %{bitmap_fontdir}/cns5-16.pcf.gz %{bitmap_fontdir}/cns5-24.pcf.gz %{bitmap_fontdir}/cns6-16.pcf.gz %{bitmap_fontdir}/cns6-24.pcf.gz %{bitmap_fontdir}/cns7-16.pcf.gz %{bitmap_fontdir}/cns7-24.pcf.gz %{bitmap_fontdir}/guob16.pcf.gz %{bitmap_fontdir}/sish14-etl.pcf.gz %{bitmap_fontdir}/sish16-etl.pcf.gz %{bitmap_fontdir}/sish24-etl.pcf.gz %{bitmap_fontdir}/taipei16.pcf.gz %{bitmap_fontdir}/taipei24.pcf.gz %files -n intlfonts-chinese-big-bitmap-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/Chinese.BIG %dir %{bitmap_fontdir}/ %{bitmap_fontdir}/cc40s.pcf.gz %{bitmap_fontdir}/cc48s.pcf.gz %{bitmap_fontdir}/cns1-40.pcf.gz %{bitmap_fontdir}/cns2-40.pcf.gz %{bitmap_fontdir}/cns3-40.pcf.gz %{bitmap_fontdir}/cns4-40.pcf.gz %{bitmap_fontdir}/cns5-40.pcf.gz %{bitmap_fontdir}/cns6-40.pcf.gz %{bitmap_fontdir}/cns7-40.pcf.gz %files -n intlfonts-ethiopic-bitmap-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/Ethiopic %dir %{bitmap_fontdir}/ %{bitmap_fontdir}/ethio16f-uni.pcf.gz %{bitmap_fontdir}/ethio24f-uni.pcf.gz %files -n intlfonts-euro-bitmap-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/European %doc %{_defaultdocdir}/intlfonts/European.BIG %doc %{_defaultdocdir}/intlfonts/efont* %dir %{bitmap_fontdir}/ %{bitmap_fontdir}/cyr14-etl.pcf.gz %{bitmap_fontdir}/cyr16-etl.pcf.gz %{bitmap_fontdir}/cyr24-etl.pcf.gz %{bitmap_fontdir}/grk14-etl.pcf.gz %{bitmap_fontdir}/grk16-etl.pcf.gz %{bitmap_fontdir}/grk24-etl.pcf.gz %{bitmap_fontdir}/koi14-etl.pcf.gz %{bitmap_fontdir}/koi16-etl.pcf.gz %{bitmap_fontdir}/koi24-etl.pcf.gz %{bitmap_fontdir}/lt1-14-etl.pcf.gz %{bitmap_fontdir}/lt1-16-etl.pcf.gz %{bitmap_fontdir}/lt1-16b-etl.pcf.gz %{bitmap_fontdir}/lt1-16bi-etl.pcf.gz %{bitmap_fontdir}/lt1-16i-etl.pcf.gz %{bitmap_fontdir}/lt1-18-etl.pcf.gz %{bitmap_fontdir}/lt1-18.pcf.gz %{bitmap_fontdir}/lt1-18b-etl.pcf.gz %{bitmap_fontdir}/lt1-18bi-etl.pcf.gz %{bitmap_fontdir}/lt1-18i-etl.pcf.gz %{bitmap_fontdir}/lt1-24-etl.pcf.gz %{bitmap_fontdir}/lt1-24b-etl.pcf.gz %{bitmap_fontdir}/lt1-24bi-etl.pcf.gz %{bitmap_fontdir}/lt1-24i-etl.pcf.gz %{bitmap_fontdir}/lt2-14-etl.pcf.gz %{bitmap_fontdir}/lt2-16-etl.pcf.gz %{bitmap_fontdir}/lt2-24-etl.pcf.gz %{bitmap_fontdir}/lt3-14-etl.pcf.gz %{bitmap_fontdir}/lt3-16-etl.pcf.gz %{bitmap_fontdir}/lt3-24-etl.pcf.gz %{bitmap_fontdir}/lt4-14-etl.pcf.gz %{bitmap_fontdir}/lt4-16-etl.pcf.gz %{bitmap_fontdir}/lt4-24-etl.pcf.gz %{bitmap_fontdir}/lt5-14-etl.pcf.gz %{bitmap_fontdir}/lt5-16-etl.pcf.gz %{bitmap_fontdir}/lt5-24-etl.pcf.gz %{bitmap_fontdir}/heb14-etl.pcf.gz %{bitmap_fontdir}/heb16-etl.pcf.gz %{bitmap_fontdir}/heb24-etl.pcf.gz %{bitmap_fontdir}/bmp16-etl.pcf.gz %{bitmap_fontdir}/lt1-40-etl.pcf.gz %{bitmap_fontdir}/h16-iso8859-15.pcf.gz %{bitmap_fontdir}/h16_b-iso8859-15.pcf.gz %{bitmap_fontdir}/h16_bi-iso8859-15.pcf.gz %{bitmap_fontdir}/h16_i-iso8859-15.pcf.gz %{bitmap_fontdir}/h24-iso8859-15.pcf.gz %{bitmap_fontdir}/h24_b-iso8859-15.pcf.gz %{bitmap_fontdir}/h24_bi-iso8859-15.pcf.gz %{bitmap_fontdir}/h24_i-iso8859-15.pcf.gz %files -n intlfonts-japanese-bitmap-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/Japanese %dir %{bitmap_fontdir}/ %{bitmap_fontdir}/a18rk.pcf.gz %{bitmap_fontdir}/a18rkb.pcf.gz %{bitmap_fontdir}/a18rki.pcf.gz %{bitmap_fontdir}/j78-16.pcf.gz %{bitmap_fontdir}/j83-18.pcf.gz %{bitmap_fontdir}/j83-18b.pcf.gz %{bitmap_fontdir}/j83-18i.pcf.gz %{bitmap_fontdir}/j90-16.pcf.gz %{bitmap_fontdir}/jksp16.pcf.gz %{bitmap_fontdir}/jksp24.pcf.gz %files -n intlfonts-japanese-big-bitmap-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/Japanese.BIG %dir %{bitmap_fontdir}/ %{bitmap_fontdir}/jiskan32.pcf.gz %{bitmap_fontdir}/jiskan48.pcf.gz %{bitmap_fontdir}/jksp40.pcf.gz %files -n intlfonts-phonetic-bitmap-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/Misc %dir %{bitmap_fontdir}/ %{bitmap_fontdir}/ipa14-etl.pcf.gz %{bitmap_fontdir}/ipa16-etl.pcf.gz %{bitmap_fontdir}/ipa24-etl.pcf.gz %files -n intlfonts-ttf-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/TrueType %dir %{ttf_fontdir}/ %config %{ttf_fontdir}/fonts.scale.intlfonts-ttf %{ttf_fontdir}/*.ttf %files -n intlfonts-type1-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/Type1 %{type1_fontdir} %files -n intlfonts-bdf-fonts %defattr(-,root,root) %dir %{_defaultdocdir}/intlfonts %doc %{_defaultdocdir}/intlfonts/*.X %{bdf_fontdir} %changelog