Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:non7top
lua-resty-auto-ssl
lua-resty-auto-ssl.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lua-resty-auto-ssl.spec of Package lua-resty-auto-ssl
%define DEHYDRATED_VERSION v0.3.1 %define LUA_RESTY_SHELL_VERSION 955243d70506c21e7cc29f61d745d1a8a718994f %define SOCKPROC_VERSION fc8ad3f15a7b2cf2eaf39663b90010efc55e207c %define LUA_RESTY_RANDOM_VERSION 17b604f7f7dd217557ca548fc1a9a0d373386480 %define LUA_RESTY_STRING_VERSION 43c634e4c15e2ef641bd09ab14664afa38482821 %define LUA_RESTY_LOCK_VERSION 08a6f3e417638f6ffb8b2bcf8ac1b302bd0ecec0 %define LUA_RESTY_HTTP_VERSION c68a216fe7a06b72bb05b0db34ca2195143df64f %define LUA_CJSON_VERSION 638ac2741a7f274979ac3fe2e1ea5fd6487702fe %define LUA_RESTY_CORE_VERSION 32a51dcbfa36d925f4583f503a3899a23d61de1e Name: lua-resty-auto-ssl Version: 0.10.1 Release: 1%{?dist} Summary: Automatic SSL handling for OpenResty Group: Development/Libraries License: MIT URL: https://github.com/GUI/lua-resty-auto-ssl Source0: https://github.com/GUI/lua-resty-auto-ssl/archive/v%{version}.tar.gz#/lua-resty-auto-ssl-v%{version}.tar.gz Source1: https://raw.githubusercontent.com/lukas2511/dehydrated/%{DEHYDRATED_VERSION}/dehydrated Source2: https://github.com/juce/sockproc/archive/%{SOCKPROC_VERSION}.tar.gz#/sockproc-%{SOCKPROC_VERSION}.tar.gz Source3: https://raw.githubusercontent.com/juce/lua-resty-shell/%{LUA_RESTY_SHELL_VERSION}/lib/resty/shell.lua Source4: https://raw.githubusercontent.com/bungle/lua-resty-random/%{LUA_RESTY_RANDOM_VERSION}/lib/resty/random.lua Source5: https://github.com/openresty/lua-resty-string/archive/%{LUA_RESTY_STRING_VERSION}.tar.gz#/string-%{LUA_RESTY_STRING_VERSION}.tar.gz Source6: https://raw.githubusercontent.com/openresty/lua-resty-lock/%{LUA_RESTY_LOCK_VERSION}/lib/resty/lock.lua Source7: https://github.com/pintsized/lua-resty-http/archive/%{LUA_RESTY_HTTP_VERSION}.tar.gz#/lua-resty-http-%{LUA_RESTY_HTTP_VERSION}.tar.gz Source8: https://github.com/openresty/lua-cjson/archive/%{LUA_CJSON_VERSION}.tar.gz#/lua-cjson-%{LUA_CJSON_VERSION}.tar.gz Source9: https://github.com/openresty/lua-resty-core/archive/%{LUA_RESTY_CORE_VERSION}.tar.gz#/core-%{LUA_RESTY_CORE_VERSION}.tar.gz Patch1: makefile.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: pkgconfig BuildRequires: curl BuildRequires: luajit-devel Requires: luajit %define debug_package %{nil} %define LUAJIT_INC $( pkg-config --cflags luajit|sed -e 's#-I##' ) %define luaver 5.1 %define lualibdir %{_libdir}/lua/%{luaver} %define luadatadir %{_datadir}/lua/%{luaver} %description %prep %setup -q -a 2 -a 5 -a 7 -a 8 -a 9 find %patch1 -p1 %{__cp} %{SOURCE1} lib/resty/auto-ssl/vendor/dehydrated %{__cp} %{SOURCE3} lib/resty/auto-ssl/vendor/shell.lua mkdir -p build/ mv sockproc-%{SOCKPROC_VERSION} build/ %build make -C build/sockproc-%{SOCKPROC_VERSION} %{?_smp_mflags} make -C lua-cjson-%{LUA_CJSON_VERSION} \ LUA_INCLUDE_DIR=%{LUAJIT_INC} \ PREFIX=$RPM_BUILD_ROOT/usr \ DESTDIR="$RPM_BUILD_ROOT" \ LUA_LIB_DIR="%{luadatadir}" \ LUA_VERSION="%{luaver}" \ INST_LUADIR="$RPM_BUILD_ROOT%{luadatadir}" \ %{?_smp_mflags} make %{?_smp_mflags} %install rm -rf "$RPM_BUILD_ROOT" make install DESTDIR="$RPM_BUILD_ROOT" LUA_LIB_DIR="%{luadatadir}" LUA_VERSION="%{luaver}" INST_LUADIR="$RPM_BUILD_ROOT%{luadatadir}" make -C lua-resty-string-%{LUA_RESTY_STRING_VERSION}/ install DESTDIR="$RPM_BUILD_ROOT" LUA_LIB_DIR="%{luadatadir}" LUA_VERSION="%{luaver}" INST_LUADIR="$RPM_BUILD_ROOT%{luadatadir}" make -C lua-resty-http-%{LUA_RESTY_HTTP_VERSION}/ install DESTDIR="$RPM_BUILD_ROOT" LUA_LIB_DIR="%{luadatadir}" LUA_VERSION="%{luaver}" INST_LUADIR="$RPM_BUILD_ROOT%{luadatadir}" make -C lua-resty-core-%{LUA_RESTY_CORE_VERSION}/ install DESTDIR="$RPM_BUILD_ROOT" LUA_LIB_DIR="%{luadatadir}" LUA_VERSION="%{luaver}" INST_LUADIR="$RPM_BUILD_ROOT%{luadatadir}" make -C lua-cjson-%{LUA_CJSON_VERSION} install \ DESTDIR="$RPM_BUILD_ROOT" \ LUA_LIB_DIR="%{luadatadir}" \ LUA_VERSION="%{luaver}" \ INST_LUADIR="$RPM_BUILD_ROOT%{luadatadir}" \ LUA_CMODULE_DIR="%{lualibdir}" \ %{?_smp_mflags} #make -C lua-cjson-%{LUA_CJSON_VERSION} install-extra \ # DESTDIR="$RPM_BUILD_ROOT" \ # LUA_LIB_DIR="%{luadatadir}" \ # LUA_VERSION="%{luaver}" \ # INST_LUADIR="$RPM_BUILD_ROOT%{luadatadir}" \ # LUA_MODULE_DIR="%{luadatadir}" \ # %{?_smp_mflags} %{__cp} %{SOURCE4} $RPM_BUILD_ROOT%{luadatadir}/resty %{__cp} %{SOURCE6} $RPM_BUILD_ROOT%{luadatadir}/resty %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root,-) %{luadatadir}/resty/ %{luadatadir}/ngx/ %{lualibdir} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor