From bc24d5706c11de3ef98ef59c452fb88ce928f720 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 3 Feb 2009 08:31:48 +0000 Subject: [PATCH] *** empty log message *** --- .cvsignore | 1 + 90-thai-scalable-synthetic-garuda.conf | 22 ++ 90-thai-scalable-synthetic-kinnari.conf | 22 ++ 90-thai-scalable-synthetic-umpush.conf | 22 ++ import.log | 1 + sources | 1 + thai-scalable-fonts.spec | 300 ++++++++++++++++++++++++ 7 files changed, 369 insertions(+) create mode 100644 90-thai-scalable-synthetic-garuda.conf create mode 100644 90-thai-scalable-synthetic-kinnari.conf create mode 100644 90-thai-scalable-synthetic-umpush.conf create mode 100644 import.log create mode 100644 thai-scalable-fonts.spec diff --git a/.cvsignore b/.cvsignore index e69de29..5dcdb01 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +thaifonts-scalable-0.4.11.tar.gz diff --git a/90-thai-scalable-synthetic-garuda.conf b/90-thai-scalable-synthetic-garuda.conf new file mode 100644 index 0000000..9a7686b --- /dev/null +++ b/90-thai-scalable-synthetic-garuda.conf @@ -0,0 +1,22 @@ + + + + + + + BrowalliaUPC + Browallia New + + + Garuda + + + + matrix + 0.680 + 00.68 + + + + + diff --git a/90-thai-scalable-synthetic-kinnari.conf b/90-thai-scalable-synthetic-kinnari.conf new file mode 100644 index 0000000..617c0c6 --- /dev/null +++ b/90-thai-scalable-synthetic-kinnari.conf @@ -0,0 +1,22 @@ + + + + + + + AngsanaUPC + Angsana New + + + Kinnari + + + + matrix + 0.670 + 00.67 + + + + + diff --git a/90-thai-scalable-synthetic-umpush.conf b/90-thai-scalable-synthetic-umpush.conf new file mode 100644 index 0000000..709560c --- /dev/null +++ b/90-thai-scalable-synthetic-umpush.conf @@ -0,0 +1,22 @@ + + + + + + + CordiaUPC + Cordia New + + + Umpush + + + + matrix + 0.650 + 00.65 + + + + + diff --git a/import.log b/import.log new file mode 100644 index 0000000..4a4fa72 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +thai-scalable-fonts-0_4_11-1_fc11:HEAD:thai-scalable-fonts-0.4.11-1.fc11.src.rpm:1233649832 diff --git a/sources b/sources index e69de29..9947440 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8e8566e1247cfe19cb5f89cf0e2bacca thaifonts-scalable-0.4.11.tar.gz diff --git a/thai-scalable-fonts.spec b/thai-scalable-fonts.spec new file mode 100644 index 0000000..b7d3878 --- /dev/null +++ b/thai-scalable-fonts.spec @@ -0,0 +1,300 @@ +%define fontname thai-scalable +%define fontconf 90-%{fontname}-synthetic + +%define archivename thaifonts-scalable + +%define common_desc \ +%{archivename} provides a collection of free scalable Thai fonts. + +Name: %{fontname}-fonts +Version: 0.4.11 +Release: 1%{?dist} +Summary: Thai TrueType fonts +Group: User Interface/X +License: GPLv2+ +URL: http://linux.thai.net/projects/thaifonts-scalable +Source0: http://linux.thai.net/pub/ThaiLinux/software/%{archivename}/%{archivename}-%{version}.tar.gz +Source1: %{fontconf}-garuda.conf +Source2: %{fontconf}-kinnari.conf +Source3: %{fontconf}-umpush.conf +BuildArch: noarch +BuildRequires: fontforge >= 20071110, ttmkfdir, xorg-x11-font-utils +BuildRequires: fontpackages-devel +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +%description +%common_desc + +Thai scalable fonts included here are: +- Kinnari, Garuda and Norasi from the National Font project +- DB Thai Text from DearBook +- TlwgMono, PseudoMono, Purisa by TLWG + + +%package common +Summary: Common files of +Group: User Interface/X +Requires: fontpackages-filesystem + +%description common +%common_desc + +This package consists of files used by other %{name} packages. + + +# added for F11 can be obsoleted for F13 +%package compat +Summary: thaifonts-scalable compatibility package +Group: User Interface/X +Obsoletes: thaifonts-scalable < 0.4.11-1 +Requires: %{fontname}-garuda-fonts +Requires: %{fontname}-kinnari-fonts +Requires: %{fontname}-loma-fonts +Requires: %{fontname}-norasi-fonts +Requires: %{fontname}-purisa-fonts +Requires: %{fontname}-sawasdee-fonts +Requires: %{fontname}-tlwgmono-fonts +Requires: %{fontname}-tlwgtypewriter-fonts +Requires: %{fontname}-tlwgtypist-fonts +Requires: %{fontname}-tlwgtypo-fonts +Requires: %{fontname}-umpush-fonts +Requires: %{fontname}-waree-fonts + +%description compat +This package only exists to help transition thaifonts-scalable users to the new +split renamed package. It will be removed after one distribution release cycle, +please do not reference it or depend on it in any way. + +It can be safely uninstalled. + + +%package -n %{fontname}-garuda-fonts +Summary: Thai Garuda fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-garuda-fonts +%common_desc + +This package provides the Garuda family of Thai fonts. + +%_font_pkg -n garuda -f %{fontconf}-garuda.conf Garuda*.ttf + + +%package -n %{fontname}-kinnari-fonts +Summary: Thai Kinnari fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-kinnari-fonts +%common_desc + +This package provides the Kinnari family of Thai fonts. + +%_font_pkg -n kinnari -f %{fontconf}-kinnari.conf Kinnari*.ttf + + +%package -n %{fontname}-loma-fonts +Summary: Thai Loma fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-loma-fonts +%common_desc + +This package provides the Loma family of Thai fonts. + +%_font_pkg -n loma Loma*.ttf + + +%package -n %{fontname}-norasi-fonts +Summary: Thai Norasi fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-norasi-fonts +%common_desc + +This package provides the Norasi family of Thai fonts. + +%_font_pkg -n norasi Norasi*.ttf + + +%package -n %{fontname}-purisa-fonts +Summary: Thai Purisa fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-purisa-fonts +%common_desc + +This package provides the Purisa family of Thai fonts. + +%_font_pkg -n purisa Purisa*.ttf + + +%package -n %{fontname}-sawasdee-fonts +Summary: Thai Sawasdee fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-sawasdee-fonts +%common_desc + +This package provides the Sawasdee family of Thai fonts. + +%_font_pkg -n sawasdee Sawasdee*.ttf + + +%package -n %{fontname}-tlwgmono-fonts +Summary: Thai TlwgMono fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-tlwgmono-fonts +%common_desc + +This package provides the TlwgMono family of Thai fonts. + +%_font_pkg -n tlwgmono TlwgMono*.ttf + + +%package -n %{fontname}-tlwgtypewriter-fonts +Summary: Thai TlwgTypewriter fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-tlwgtypewriter-fonts +%common_desc + +This package provides the TlwgTypewriter family of Thai fonts. + +%_font_pkg -n tlwgtypewriter TlwgTypewriter*.ttf + + +%package -n %{fontname}-tlwgtypist-fonts +Summary: Thai TlwgTypist fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-tlwgtypist-fonts +%common_desc + +This package provides the TlwgTypist family of Thai fonts. + +%_font_pkg -n tlwgtypist TlwgTypist*.ttf + + +%package -n %{fontname}-tlwgtypo-fonts +Summary: Thai TlwgTypo fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-tlwgtypo-fonts +%common_desc + +This package provides the TlwgTypo family of Thai fonts. + +%_font_pkg -n tlwgtypo TlwgTypo*.ttf + + +%package -n %{fontname}-umpush-fonts +Summary: Thai Umpush fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-umpush-fonts +%common_desc + +This package provides the Umpush family of Thai fonts. + +%_font_pkg -n umpush -f %{fontconf}-umpush.conf Umpush*.ttf + + +%package -n %{fontname}-waree-fonts +Summary: Thai Waree fonts +Group: User Interface/X +Requires: %{name}-common = %{version}-%{release} + +%description -n %{fontname}-waree-fonts +%common_desc + +This package provides the Waree family of Thai fonts. + +%_font_pkg -n waree Waree*.ttf + + +%prep +%setup -q -n %{archivename}-%{version} + + +%build +%configure --with-ttfdir=%{_fontdir} --enable-ttf=yes + + +%install +rm -rf $RPM_BUILD_ROOT + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" + +# remove upstream font config +# fontconfig's 65-nonlatin.conf covers 65-ttf-thai-tlwg.conf +rm %{buildroot}%{_sysconfdir}/fonts/conf.avail/*-ttf-thai-tlwg*.conf + +# split up 90-ttf-thai-tlwg-synthetic.conf +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-garuda.conf +install -m 0644 -p %{SOURCE2} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-kinnari.conf +install -m 0644 -p %{SOURCE3} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-umpush.conf + +for fconf in %{fontconf}-garuda.conf \ + %{fontconf}-kinnari.conf \ + %{fontconf}-umpush.conf ; do + ln -s %{_fontconfig_templatedir}/$fconf \ + %{buildroot}%{_fontconfig_confdir}/$fconf +done + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files common +%defattr(-,root,root,-) +%doc AUTHORS README COPYING NEWS + +%files compat +%defattr(-,root,root,-) +%{_fontdir}/fonts.dir +%{_fontdir}/fonts.scale + + +%changelog +* Mon Feb 2 2009 Jens Petersen - 0.4.11-1 +- update to 0.4.11 +- repackage and subpackage for new fontpackages-devel: +- split 90-ttf-thai-tlwg-synthetic.conf per subpackage +- 65-ttf-thai-tlwg.conf is covered by fontconfig 65-nonlatin.conf +- moves docs to common subpackage +- add compat subpackage for upgrades and legacy fonts.* + +* Fri Feb 8 2008 Jens Petersen - 0.4.9-3 +- couple more cleanups (Parag Nemade,#431829): +- use rm instead of /bin/rm +- use install -p + +* Fri Feb 8 2008 Jens Petersen - 0.4.9-2 +- add buildrequires for ttmkfdir and xorg-x11-font-utils (Parag Nemade,#431829) + +* Wed Feb 6 2008 Jens Petersen - 0.4.9-1 +- update to 0.4.9 +- spec file cleanup + +* Mon Jan 29 2007 Behdad Esfahbod 0.4.4-1 +- Initial package based on package by Theppitak Karoonboonyanan + and Kamthorn Krairaksa for the OLPC.