diff options
author | Mark Pulford <mark@kyne.com.au> | 2012-01-19 19:05:36 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2012-03-04 18:54:35 +1030 |
commit | 94e85ca17cc72550684e5c9543f8ffca86672de3 (patch) | |
tree | e28e7069c6236dfb2570222f84994ff3377540b7 | |
parent | dd231d4cd0e277fedb6ca23d9685202787dc65b1 (diff) | |
download | lua-cjson-94e85ca17cc72550684e5c9543f8ffca86672de3.tar.gz lua-cjson-94e85ca17cc72550684e5c9543f8ffca86672de3.tar.bz2 lua-cjson-94e85ca17cc72550684e5c9543f8ffca86672de3.zip |
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.
Diffstat (limited to '')
-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}" \ | |||
44 | rm -rf "$RPM_BUILD_ROOT" | 44 | rm -rf "$RPM_BUILD_ROOT" |
45 | 45 | ||
46 | 46 | ||
47 | %preun | ||
48 | /bin/rm -f "%{luadatadir}/cjson/tests/utf8.dat" | ||
49 | |||
50 | |||
47 | %files | 51 | %files |
48 | %defattr(-,root,root,-) | 52 | %defattr(-,root,root,-) |
49 | %doc LICENSE NEWS performance.txt manual.html manual.txt rfc4627.txt THANKS | 53 | %doc LICENSE NEWS performance.txt manual.html manual.txt rfc4627.txt THANKS |