Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpx/lua-cjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2012-01-19 12:35:36 +0400
committerMark Pulford <mark@kyne.com.au>2012-03-04 12:24:35 +0400
commit94e85ca17cc72550684e5c9543f8ffca86672de3 (patch)
treee28e7069c6236dfb2570222f84994ff3377540b7
parentdd231d4cd0e277fedb6ca23d9685202787dc65b1 (diff)
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.
-rw-r--r--lua-cjson.spec4
1 files changed, 4 insertions, 0 deletions
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