thai-scalable-fonts/thai-scalable-fonts.spec

315 lines
8.9 KiB
RPMSpec
Raw Normal View History

2009-02-03 08:31:48 +00:00
%define fontname thai-scalable
%define fontconf 90-%{fontname}-synthetic
2012-02-15 06:53:07 +00:00
%define archivename fonts-tlwg
2009-02-03 08:31:48 +00:00
%define common_desc \
%{archivename} provides a collection of free scalable Thai fonts.
Name: %{fontname}-fonts
2012-02-15 06:53:07 +00:00
Version: 0.5.0
2012-11-20 06:18:45 +00:00
Release: 4%{?dist}
2009-02-03 08:31:48 +00:00
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
2012-11-20 06:18:45 +00:00
BuildRequires: fontforge >= 20071110
2009-02-03 08:31:48 +00:00
BuildRequires: fontpackages-devel
%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 %{name}
2009-02-03 08:31:48 +00:00
Group: User Interface/X
Requires: fontpackages-filesystem
%description common
%common_desc
This package consists of files used by other %{name} packages.
%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
2012-11-20 06:18:45 +00:00
%configure --with-ttfdir=%{_fontdir} --enable-ttf
make
2009-02-03 08:31:48 +00:00
%install
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
2010-11-09 08:30:12 +00:00
make install DESTDIR=%{buildroot} INSTALL="install -p"
2009-02-03 08:31:48 +00:00
# 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
%files common
%doc AUTHORS README COPYING NEWS
%changelog
2012-11-20 06:18:45 +00:00
* Tue Nov 20 2012 Daiki Ueno <dueno@redhat.com> - 0.5.0-4
- disable X fonts.dir generation
- remove obsolete -compat subpackage
- remove %%defattr from %%files
- add missing "make" in %%build
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-07-05 01:18:02 +00:00
* Thu Jul 5 2012 Daiki Ueno <dueno@redhat.com> - 0.5.0-2
- fix <test> usage in fontconfig files (Closes: #837538)
- refresh fontconfig files with the latest upstream version
2012-02-15 06:53:07 +00:00
* Wed Feb 15 2012 Daiki Ueno <dueno@redhat.com> - 0.5.0-1
- update to 0.5.0
- change %%archivename to fonts-tlwg per upstream
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-11-07 02:08:12 +00:00
* Mon Nov 7 2011 Daiki Ueno <dueno@redhat.com> - 0.4.17-1
- update to 0.4.17
2011-10-25 01:38:30 +00:00
* Tue Oct 25 2011 Daiki Ueno <dueno@redhat.com> - 0.4.16-1
- update to 0.4.16
2011-03-22 00:51:37 +00:00
* Tue Mar 22 2011 Daiki Ueno <dueno@redhat.com> - 0.4.15-2
- fix summary of -common subpackage (Bug#688969)
2011-03-17 00:50:15 +00:00
* Thu Mar 17 2011 Daiki Ueno <dueno@redhat.com> - 0.4.15-1
- update to 0.4.15
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-11-09 08:30:12 +00:00
* Tue Nov 9 2010 Daiki Ueno <dueno@redhat.com> - 0.4.14-1
- update to 0.4.14
- drop buildroot, %%clean and cleaning of buildroot in %%install
- use only macro style %%buildroot
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-06-22 05:11:44 +00:00
* Mon Jun 22 2009 Jens Petersen <petersen@redhat.com> - 0.4.12-1
- update to 0.4.12 (reported by Manatsawin Hanmongkolchai in #507172)
2009-03-15 18:36:10 +00:00
* Sun Mar 15 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net> - 0.4.11-3
Make sure F11 font packages have been built with F11 fontforge
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-02-03 08:31:48 +00:00
* Mon Feb 2 2009 Jens Petersen <petersen@redhat.com> - 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 <petersen@redhat.com> - 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 <petersen@redhat.com> - 0.4.9-2
- add buildrequires for ttmkfdir and xorg-x11-font-utils (Parag Nemade,#431829)
* Wed Feb 6 2008 Jens Petersen <petersen@redhat.com> - 0.4.9-1
- update to 0.4.9
- spec file cleanup
* Mon Jan 29 2007 Behdad Esfahbod <besfahbo@redhat.com> 0.4.4-1
- Initial package based on package by Theppitak Karoonboonyanan
and Kamthorn Krairaksa for the OLPC.