aboutsummaryrefslogtreecommitdiff
path: root/lua-cjson.spec
diff options
context:
space:
mode:
Diffstat (limited to 'lua-cjson.spec')
-rw-r--r--lua-cjson.spec64
1 files changed, 64 insertions, 0 deletions
diff --git a/lua-cjson.spec b/lua-cjson.spec
new file mode 100644
index 0000000..4c949e5
--- /dev/null
+++ b/lua-cjson.spec
@@ -0,0 +1,64 @@
1%define luaver 5.1
2%define lualibdir %{_libdir}/lua/%{luaver}
3
4Name: lua-cjson
5Version: 1.0devel
6Release: 1%{?dist}
7Summary: A fast JSON encoding/parsing library for Lua
8
9Group: Development/Libraries
10License: MIT
11URL: http://www.kyne.com.au/~mark/software/lua-cjson/
12Source0: http://www.kyne.com.au/~mark/software/lua-cjson/lua-cjson-%{version}.tar.gz
13BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
14
15BuildRequires: lua >= %{luaver}, lua-devel >= %{luaver}
16Requires: lua >= %{luaver}
17
18%description
19The Lua CJSON library provides JSON support for Lua. It features:
20- Fast, standards compliant encoding/parsing routines
21- Full support for JSON with UTF-8, including decoding surrogate pairs
22- Optional run-time support for common exceptions to the JSON specification
23 (NaN, Infinity,..)
24- No external dependencies
25
26
27%prep
28%setup -q
29
30
31%build
32make %{?_smp_mflags} CFLAGS="%{optflags}" LUA_INCLUDE_DIR="%{_includedir}"
33
34
35%install
36rm -rf "$RPM_BUILD_ROOT"
37make install DESTDIR="$RPM_BUILD_ROOT" LUA_MODULE_DIR="%{lualibdir}"
38
39
40%clean
41rm -rf "$RPM_BUILD_ROOT"
42
43
44%files
45%defattr(-,root,root,-)
46%doc LICENSE NEWS performance.txt manual.html manual.txt rfc4627.txt tests THANKS
47%{lualibdir}/*
48
49
50%changelog
51* Wed Nov 27 2011 Mark Pulford <mark@kyne.com.au> - 1.0.4-1
52- Updated for 1.0.4
53
54* Wed Sep 15 2011 Mark Pulford <mark@kyne.com.au> - 1.0.3-1
55- Updated for 1.0.3
56
57* Sun May 29 2011 Mark Pulford <mark@kyne.com.au> - 1.0.2-1
58- Updated for 1.0.2
59
60* Sun May 10 2011 Mark Pulford <mark@kyne.com.au> - 1.0.1-1
61- Updated for 1.0.1
62
63* Sun May 1 2011 Mark Pulford <mark@kyne.com.au> - 1.0-1
64- Initial package