lua-cjson.spec 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. %define luaver 5.1
  2. %define lualibdir %{_libdir}/lua/%{luaver}
  3. Name: lua-cjson
  4. Version: 1.0.1
  5. Release: 1%{?dist}
  6. Summary: JSON support for the Lua language
  7. Group: Development/Libraries
  8. License: MIT
  9. URL: http://www.kyne.com.au/~mark/software/lua-cjson/
  10. Source0: http://www.kyne.com.au/~mark/software/lua-cjson/lua-cjson-%{version}.tar.gz
  11. BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
  12. BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver}
  13. Requires: lua >= %{luaver}
  14. %description
  15. CJSON provides fast JSON parsing and encoding functions for Lua. It
  16. allows a Lua application to quickly serialise a data structure to
  17. JSON, or deserialise from JSON to Lua.
  18. %prep
  19. %setup -q
  20. %build
  21. make %{?_smp_mflags} CFLAGS="%{optflags}" LUA_INCLUDE_DIR="%{_includedir}"
  22. %install
  23. rm -rf "$RPM_BUILD_ROOT"
  24. make install DESTDIR="$RPM_BUILD_ROOT" LUA_LIB_DIR="%{lualibdir}"
  25. %clean
  26. rm -rf "$RPM_BUILD_ROOT"
  27. %files
  28. %defattr(-,root,root,-)
  29. %doc LICENSE NEWS performance.txt README rfc4627.txt tests TODO
  30. %{lualibdir}/*
  31. %changelog
  32. * Sun May 1 2011 Mark Pulford <[email protected]> - 1.0-1
  33. - Initial package