forked from openresty/lua-resty-string
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rpm.spec
35 lines (27 loc) · 851 Bytes
/
rpm.spec
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
%define release %(/bin/date +"%Y%m%d.%H%M")
Name: lua-resty-string
Version: 0.12
Release: 1%{?dist}
Summary: String utilities and common hash functions for ngx_lua and LuaJIT
License: BSD
Source0: %{name}.tar.gz
Group: Openresty/Lua
URL: https://github.com/Mjolkhare/lua-resty-string
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%description
String utilities and common hash functions for ngx_lua and LuaJIT
%if %{?GBRANCH:1}%{!?GBRANCH:0} && %{?GCOMMIT:1}%{!?GCOMMIT:0}
It was built from repo: %{url}
Branch: %{GBRANCH}
Commit: %{GCOMMIT}
%endif
%prep
%setup -q -n %{name}
%install
install -d -m 0755 %{buildroot}/usr/share/lua/5.1/nginx/resty
cp -aR resty/*.lua %{buildroot}/usr/share/lua/5.1/nginx/resty
%files
%dir /usr/share/lua/5.1/nginx/resty
/usr/share/lua/5.1/nginx/resty/*.lua
%changelog