diff options
author | Mark Pulford <mark@kyne.com.au> | 2012-01-19 12:35:36 +0400 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2012-03-04 12:24:35 +0400 |
commit | 94e85ca17cc72550684e5c9543f8ffca86672de3 (patch) | |
tree | e28e7069c6236dfb2570222f84994ff3377540b7 | |
parent | dd231d4cd0e277fedb6ca23d9685202787dc65b1 (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.spec | 4 |
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 |