[packages/fontconfig] - pretrans not needed; rel 0.1; TODO item

arekm arekm at pld-linux.org
Thu Aug 2 10:24:22 CEST 2012


commit 8954f1c4966687d1a9f2392241ceedcf2aeac4d5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Aug 2 10:24:18 2012 +0200

    - pretrans not needed; rel 0.1; TODO item

 fontconfig.spec | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/fontconfig.spec b/fontconfig.spec
index 5653235..a078dc6 100644
--- a/fontconfig.spec
+++ b/fontconfig.spec
@@ -1,4 +1,9 @@
-#
+# TODO:
+# - upgrade puts new files into /usr/share/fontconfig/conf.avail/*.conf
+# and also removes /etc/fonts/conf.avail/*.conf BUT there is a symlink
+# /etc/fonts/conf.avail/ -> /usr/share/fontconfig/conf.avail/ and in the end
+# rpm deletes freshly installed /usr/share/fontconfig/conf.avail/*.conf files
+
 # Conditional build
 %bcond_without	static_libs	# don't build static library
 %bcond_without	doc
@@ -8,7 +13,7 @@ Summary(pl.UTF-8):	Narzędzia do konfigurowania fontów
 Summary(pt_BR.UTF-8):	Ferramentas para configuração e customização do acesso a fontes
 Name:		fontconfig
 Version:	2.10.1
-Release:	1
+Release:	0.1
 Epoch:		1
 License:	MIT
 Group:		Libraries
@@ -160,13 +165,6 @@ cp -f conf.d/README README.confd
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pretrans
-# this needs to be a symlink
-if [ -d "%{_sysconfdir}/fonts/conf.avail" ]; then
-        umask 022
-	mv -f %{_sysconfdir}/fonts/conf.avail{,.rpmsave}
-fi
-
 %post
 umask 022
 HOME=/tmp %{_bindir}/fc-cache -f 2>/dev/null || :


More information about the pld-cvs-commit mailing list