lua-cjson.spec 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. %define luaver 5.1
  2. %define lualibdir %{_libdir}/lua/%{luaver}
  3. Name: lua-cjson
  4. Version: 1.0.4
  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. Lua CJSON provides fast, standards compliant JSON support for Lua.
  16. %prep
  17. %setup -q
  18. %build
  19. make %{?_smp_mflags} CFLAGS="%{optflags}" LUA_INCLUDE_DIR="%{_includedir}"
  20. %install
  21. rm -rf "$RPM_BUILD_ROOT"
  22. make install DESTDIR="$RPM_BUILD_ROOT" LUA_LIB_DIR="%{lualibdir}"
  23. %clean
  24. rm -rf "$RPM_BUILD_ROOT"
  25. %files
  26. %defattr(-,root,root,-)
  27. %doc LICENSE NEWS performance.txt README rfc4627.txt tests THANKS TODO
  28. %{lualibdir}/*
  29. %changelog
  30. * Wed Nov 27 2011 Mark Pulford <[email protected]> - 1.0.4-1
  31. - Updated for 1.0.4
  32. * Wed Sep 15 2011 Mark Pulford <[email protected]> - 1.0.3-1
  33. - Updated for 1.0.3
  34. * Sun May 29 2011 Mark Pulford <[email protected]> - 1.0.2-1
  35. - Updated for 1.0.2
  36. * Sun May 10 2011 Mark Pulford <[email protected]> - 1.0.1-1
  37. - Updated for 1.0.1
  38. * Sun May 1 2011 Mark Pulford <[email protected]> - 1.0-1
  39. - Initial package