]> git.pld-linux.org Git - packages/fonts-thai-scalable.git/blobdiff - fonts-thai-scalable.spec
- noarch, release 2
[packages/fonts-thai-scalable.git] / fonts-thai-scalable.spec
index 61d03d2c6be21ca75268482f2d0787170071c387..f0f362d040cc0b71c7333d2de20fd900b53c096d 100644 (file)
@@ -1,20 +1,32 @@
-# TODO: LaTeX deps and files
 #
 # Conditional build:
-%bcond_with    latex   # build LaTeX fonts
+%bcond_without latex   # LaTeX fonts
 #
 Summary:       Collection of Thai scalable fonts
 Summary(pl.UTF-8):     Kolekcja skalowalnych fontów tajskich
 Name:          fonts-thai-scalable
-Version:       0.4.17
-Release:       1
+Version:       0.7.3
+Release:       2
 License:       MIT (Waree font), GPL v2+ (the rest)
 Group:         Fonts
-Source0:       http://linux.thai.net/pub/thailinux/software/thaifonts-scalable/thaifonts-scalable-%{version}.tar.gz
-# Source0-md5: 4cdbb081bf0d180ead5e0f04149ff023
-URL:           http://linux.thai.net/projects/thaifonts-scalable
-BuildRequires: fontforge >= 20080110
-%{?with_latex:BuildRequires:   afm2tfm, vptovf, kpsewhich, updmap, mktexlsr||texhash, thailatex >= 0.4.6}
+Source0:       https://linux.thai.net/pub/thailinux/software/thaifonts-scalable/fonts-tlwg-%{version}.tar.xz
+# Source0-md5: d1de007dd0263acb0e64207b77df7f1c
+URL:           https://linux.thai.net/projects/thaifonts-scalable
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake
+BuildRequires: fontforge >= 20190801
+BuildRequires: python3 >= 1:3.7
+BuildRequires: python3-fontforge >= 20190801
+BuildRequires: rpmbuild(macros) >= 1.751
+BuildRequires: xorg-app-mkfontscale
+%if %{with latex}
+# afm2tfm, vptovf, updmap-sys, mktexlsr
+BuildRequires: texlive
+BuildRequires: thailatex >= 0.4.6
+%endif
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -95,18 +107,46 @@ wzorcową.
 
 Ten pakiet zawiera fonty w formacie Type1.
 
+%package -n thailatex-fonts
+Summary:       Collection of Thai scalable fonts for LaTeX
+Summary(pl.UTF-8):     Kolekcja skalowalnych fontów tajskich dla LaTeXa
+Group:         Fonts
+Requires(post,postun): texlive
+Requires:      texlive
+Requires:      thailatex >= 0.4.7
+
+%description -n thailatex-fonts
+thaifonts-scalable is a collection of Thai scalable fonts available in
+free licenses. Its goal is to provide fonts that conform to existing
+standards and recommendations, so that it can be a reference
+implementation.
+
+This package contains LaTeX fonts for use with thailatex.
+
+%description -n thailatex-fonts -l pl.UTF-8
+thaifonts-scalable to kolekcja fontów skalowalnych dostępnych na
+wolnych licencjach. Celem pakietu jest dostarczenie fontów zgodnych z
+istniejącymi standardami i rekomendacjami, aby był implementacją
+wzorcową.
+
+Ten pakiet zawiera fonty LaTeXowe do używania z pakietem thailatex.
+
 %prep
-%setup -q -n thaifonts-scalable-%{version}
+%setup -q -n fonts-tlwg-%{version}
 
 %build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure \
        %{?with_latex:--enable-latex} \
-       --enable-pfb \
        --enable-otf \
+       --enable-pfb \
+       --enable-ttf \
        --with-otfdir=%{_fontsdir}/OTF \
        --with-ttfdir=%{_fontsdir}/TTF \
        --with-type1dir=%{_fontsdir}/Type1
-%{__make}
+%{__make} %{?with_latex:-j1}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -115,16 +155,42 @@ rm -rf $RPM_BUILD_ROOT
        DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
-mv $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
+%{__mv} $RPM_BUILD_ROOT%{_fontsdir}/Type1/*.afm $RPM_BUILD_ROOT%{_fontsdir}/Type1/afm
 mkfontscale -o $RPM_BUILD_ROOT%{_fontsdir}/Type1/fonts.scale.thai-scalable $RPM_BUILD_ROOT%{_fontsdir}/Type1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -n fonts-OTF-thai
+fontpostinst OTF
+
+%postun        -n fonts-OTF-thai
+fontpostinst OTF
+
+%post  -n fonts-TTF-thai
+fontpostinst TTF
+
+%postun        -n fonts-TTF-thai
+fontpostinst TTF
+
+%post  -n fonts-Type1-thai
+fontpostinst Type1
+
+%postun        -n fonts-Type1-thai
+fontpostinst Type1
+
+%post  -n thailatex-fonts
+%texhash
+
+%postun        -n thailatex-fonts
+%texhash
+
 %files -n fonts-OTF-thai
 %defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog NEWS README
 %{_fontsdir}/OTF/Garuda*.otf
 %{_fontsdir}/OTF/Kinnari*.otf
+%{_fontsdir}/OTF/Laksaman*.otf
 %{_fontsdir}/OTF/Loma*.otf
 %{_fontsdir}/OTF/Norasi*.otf
 %{_fontsdir}/OTF/Purisa*.otf
@@ -135,9 +201,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n fonts-TTF-thai
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING ChangeLog* NEWS README TODO
+%doc AUTHORS COPYING ChangeLog ChangeLog.thai-ttf NEWS README
 %{_fontsdir}/TTF/Garuda*.ttf
 %{_fontsdir}/TTF/Kinnari*.ttf
+%{_fontsdir}/TTF/Laksaman*.ttf
 %{_fontsdir}/TTF/Loma*.ttf
 %{_fontsdir}/TTF/Norasi*.ttf
 %{_fontsdir}/TTF/Purisa*.ttf
@@ -145,14 +212,16 @@ rm -rf $RPM_BUILD_ROOT
 %{_fontsdir}/TTF/Tlwg*.ttf
 %{_fontsdir}/TTF/Umpush*.ttf
 %{_fontsdir}/TTF/Waree*.ttf
-/etc/fonts/conf.avail/64-ttf-thai-tlwg.conf
-/etc/fonts/conf.avail/89-ttf-thai-tlwg-synthetic.conf
+%{_datadir}/fontconfig/conf.avail/64-??-tlwg-*.conf
+%{_datadir}/fontconfig/conf.avail/64-15-laksaman.conf
+%{_datadir}/fontconfig/conf.avail/89-tlwg-*-synthetic.conf
 
 %files -n fonts-Type1-thai
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING ChangeLog* NEWS README TODO
+%doc AUTHORS COPYING ChangeLog NEWS README
 %{_fontsdir}/Type1/Garuda*.pfb
 %{_fontsdir}/Type1/Kinnari*.pfb
+%{_fontsdir}/Type1/Laksaman*.pfb
 %{_fontsdir}/Type1/Loma*.pfb
 %{_fontsdir}/Type1/Norasi*.pfb
 %{_fontsdir}/Type1/Purisa*.pfb
@@ -163,6 +232,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_fontsdir}/Type1/fonts.scale.thai-scalable
 %{_fontsdir}/Type1/afm/Garuda*.afm
 %{_fontsdir}/Type1/afm/Kinnari*.afm
+%{_fontsdir}/Type1/afm/Laksaman*.afm
 %{_fontsdir}/Type1/afm/Loma*.afm
 %{_fontsdir}/Type1/afm/Norasi*.afm
 %{_fontsdir}/Type1/afm/Purisa*.afm
@@ -170,3 +240,15 @@ rm -rf $RPM_BUILD_ROOT
 %{_fontsdir}/Type1/afm/Tlwg*.afm
 %{_fontsdir}/Type1/afm/Umpush*.afm
 %{_fontsdir}/Type1/afm/Waree*.afm
+
+%files -n thailatex-fonts
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING ChangeLog NEWS README
+%{_datadir}/texmf/fonts/afm/public/fonts-tlwg
+%{_datadir}/texmf/fonts/enc/dvips/fonts-tlwg
+%{_datadir}/texmf/fonts/map/dvips/fonts-tlwg
+%{_datadir}/texmf/fonts/opentype/public/fonts-tlwg
+%{_datadir}/texmf/fonts/tfm/public/fonts-tlwg
+%{_datadir}/texmf/fonts/type1/public/fonts-tlwg
+%{_datadir}/texmf/fonts/vf/public/fonts-tlwg
+%{_datadir}/texmf/tex/latex/fonts-tlwg
This page took 0.059648 seconds and 4 git commands to generate.