From 94e85ca17cc72550684e5c9543f8ffca86672de3 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Thu, 19 Jan 2012 19:05:36 +1030 Subject: Add an RPM %preun script to remove utf8.dat Add an RPM %preun script to remove utf8.dat. Otherwise the user generated test file will cause RPM to leave behind the cjson/tests module directories. --- lua-cjson.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua-cjson.spec b/lua-cjson.spec index 0c0aea4..4642857 100644 --- a/lua-cjson.spec +++ b/lua-cjson.spec @@ -44,6 +44,10 @@ make install-extra DESTDIR="$RPM_BUILD_ROOT" LUA_MODULE_DIR="%{luadatadir}" \ rm -rf "$RPM_BUILD_ROOT" +%preun +/bin/rm -f "%{luadatadir}/cjson/tests/utf8.dat" + + %files %defattr(-,root,root,-) %doc LICENSE NEWS performance.txt manual.html manual.txt rfc4627.txt THANKS -- cgit v1.2.3-55-g6feb