[packages/rpm-pld-macros] - version 1.751: texhash macro

qboosh qboosh at pld-linux.org
Tue Sep 29 22:19:26 CEST 2020


commit 16bd8442fe57fefc97f90f772cdfbfdd6274ba9a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Sep 29 22:00:13 2020 +0200

    - version 1.751: texhash macro

 macros.pld          | 8 ++++++++
 rpm-pld-macros.spec | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/rpm-pld-macros.spec b/rpm-pld-macros.spec
index 54fe271..4bb0e55 100644
--- a/rpm-pld-macros.spec
+++ b/rpm-pld-macros.spec
@@ -1,4 +1,4 @@
-%define		rpm_macros_rev	1.750
+%define		rpm_macros_rev	1.751
 %define		find_lang_rev	1.40
 # split into individual X_prov_ver if there is a reason to desync
 %define		prov_ver	4.15
diff --git a/macros.pld b/macros.pld
index 4bcfcca..ed5a896 100644
--- a/macros.pld
+++ b/macros.pld
@@ -946,6 +946,14 @@ fi; \
 };} \
 %{nil}
 
+# BuildRequires:	rpmbuild(macros) >= 1.751
+# Requires(post,postun):	/usr/bin/texhash	# if you want to ensure cache is updated
+%texhash() {{ \
+	umask 022; \
+	/usr/bin/texhash >&2; \
+};} \
+%{nil}
+
 #-----------------------------------------------------------------
 # post %install sequence:
 # - autodeps exceptions
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/16bd8442fe57fefc97f90f772cdfbfdd6274ba9a



More information about the pld-cvs-commit mailing list