[packages/fonts-thai-siampradesh] Switch to new fontconfig direcotry structure Release 2

baggins baggins at pld-linux.org
Thu Aug 9 11:45:29 CEST 2012


commit 3fe050da0504819b5261648c8007cfe94d7d3e95
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Aug 9 11:45:20 2012 +0200

    Switch to new fontconfig direcotry structure
    Release 2

 fontconfig-2.10.patch       | 11 +++++++++++
 fonts-thai-siampradesh.spec | 12 +++++++++---
 2 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/fontconfig-2.10.patch b/fontconfig-2.10.patch
new file mode 100644
index 0000000..90ad76a
--- /dev/null
+++ b/fontconfig-2.10.patch
@@ -0,0 +1,11 @@
+--- thaifonts-siampradesh-0.2.2/fontconfig/Makefile.am~	2010-01-10 06:25:19.000000000 +0100
++++ thaifonts-siampradesh-0.2.2/fontconfig/Makefile.am	2012-08-09 11:42:56.818691207 +0200
+@@ -4,7 +4,7 @@
+ 
+ EXTRA_DIST = $(CONFIG_FILES)
+ 
+-fontconfigdir = $(sysconfdir)/fonts/conf.avail
++fontconfigdir = $(datadir)/fontconfig/conf.avail
+ 
+ fontconfig_DATA = $(CONFIG_FILES)
+ 
diff --git a/fonts-thai-siampradesh.spec b/fonts-thai-siampradesh.spec
index 7ce3f4a..0db6233 100644
--- a/fonts-thai-siampradesh.spec
+++ b/fonts-thai-siampradesh.spec
@@ -2,14 +2,16 @@ Summary:	Thai SiamPradesh scalable fonts
 Summary(pl.UTF-8):	Tajskie fonty skalowalne SiamPradesh
 Name:		fonts-thai-siampradesh
 Version:	0.2.2
-Release:	1
+Release:	2
 License:	Font Computer Program License (see COPYING)
 Group:		Fonts
 Source0:	http://linux.thai.net/pub/thailinux/software/thaifonts-siampradesh/thaifonts-siampradesh-%{version}.tar.gz
 # Source0-md5:	682791e7abc47f4dd35d2bb2e598b154
+Patch0:		fontconfig-2.10.patch
 URL:		http://linux.thai.net/projects/thaifonts-siampradesh
 BuildRequires:	fontforge >= 20080110
 BuildRequires:	xorg-app-mkfontscale
+Requires:	fontconfig >= 1:2.10.1
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -64,8 +66,12 @@ Ten pakiet zawiera fonty w formacie Type1.
 
 %prep
 %setup -q -n thaifonts-siampradesh-%{version}
+%patch0 -p1
 
 %build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
 %configure \
 	--enable-pfb \
 	--with-ttfdir=%{_fontsdir}/TTF \
@@ -109,8 +115,8 @@ fontpostinst Type1
 %{_fontsdir}/TTF/SPSinsamut*.ttf
 %{_fontsdir}/TTF/SPSutsakhorn*.ttf
 %{_fontsdir}/TTF/SPThotsakan*.ttf
-/etc/fonts/conf.avail/64-ttf-thai-siampradesh.conf
-/etc/fonts/conf.avail/89-ttf-thai-siampradesh-synthetic.conf
+%{_datadir}/fontconfig/conf.avail/64-ttf-thai-siampradesh.conf
+%{_datadir}/fontconfig/conf.avail/89-ttf-thai-siampradesh-synthetic.conf
 
 %files -n fonts-Type1-thai-siampradesh
 %defattr(644,root,root,755)


More information about the pld-cvs-commit mailing list