-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlua-openam.spec
More file actions
62 lines (43 loc) · 1.25 KB
/
lua-openam.spec
File metadata and controls
62 lines (43 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
%define luaver 5.1
%define luadatadir %{_datadir}/lua/%{luaver}
Name: lua-openam
Version: 0.0.4
Release: 1%{?dist}
Summary: Lua OpenAM client driver for the nginx HttpLuaModule
Group: Development/Libraries
License: MIT
URL: https://github.com/gsick/lua-openam
Source0: https://github.com/gsick/lua-openam/archive/%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: lua >= %{luaver}
%description
The Lua OpenAM module provides basic functions for OpenAM RESTful API. It features:
- Authentication / Logout
- Token validation
- Authorization
- Read identity
- Dependencies on lua-cjson, lua-resty-http, luautf8
%prep
%setup -q
%build
%install
rm -rf "$RPM_BUILD_ROOT"
make install DESTDIR="$RPM_BUILD_ROOT" LUA_MODULE_DIR="%{lualibdir}"
%clean
rm -rf "$RPM_BUILD_ROOT"
%preun
%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%dir /%{lualibdir}/
%dir /%{lualibdir}/openam/
/%{lualibdir}/openam/openam.lua
%changelog
* Tue Mar 18 2014 Gamaliel Sick <@> - 0.0.4-1
- Update package
* Tue Mar 18 2014 Gamaliel Sick <@> - 0.0.3-1
- Update package
* Mon Mar 17 2014 Gamaliel Sick <@> - 0.0.2-1
- Update package
* Mon Mar 10 2014 Gamaliel Sick <@> - 0.0.1-1
- Initial package