Sign Up
Log In
Sign Up
Username:
*
Email:
*
Password:
*
Password confirmation:
*
or
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Server
nginx-module-devel-kit
nginx-module-devel-kit.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nginx-module-devel-kit.spec of Package nginx-module-devel-kit
# # spec file for package nginx-module-devel-kit # # Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define project_name ngx_devel_kit %define src_install_dir %{_prefix}/src/%{name} Name: nginx-module-devel-kit Version: 0.3.1 Release: 0 Summary: Additional generic tools for nginx module development License: BSD-3-Clause Group: Productivity/Networking/Web/Proxy URL: https://github.com/simplresty/%{project_name} Source0: https://github.com/simplresty/%{project_name}/archive/v%{version}.tar.gz#/%{project_name}-%{version}.tar.gz Source1: nginx-module-devel-kit.rpmlintrc BuildRequires: nginx-source %{ngx_conditionals} %{ngx_requires} %description The NDK is an Nginx module that extends the core functionality of the Nginx webserver in a way that can be used as a basis for other Nginx modules. NDK has functions and macros to deal with tasks that do not currently have code in nginx. NDK itself adds few features that are seen by end-users; the plan is to reduce the code that module developers need to write. Using features from the NDK makes it a dependency that users will need to install as well. %package -n nginx-module-devel-kit-source Summary: The nginx-module-devel-kit source Group: Development/Sources BuildArch: noarch %description -n nginx-module-devel-kit-source The source of an nginx module that is designed to extend the core functionality of nginx. %prep mkdir %{project_name} tar -xzf %{SOURCE0} --strip-components=1 -C %{project_name} cp -r %{_prefix}/src/nginx . %build export CFLAGS="%{optflags} -fno-strict-aliasing" cd nginx %{ngx_configure} --add-dynamic-module=../%{project_name} \ %if 0%{?suse_version} > 1220 --with-cc-opt="%{optflags} -fPIC -D_GNU_SOURCE -std=gnu99 -fstack-protector -DNDK_ALL -Wno-maybe-uninitialized -Wno-sizeof-pointer-memaccess" \ --with-ld-opt="-Wl,-z,relro,-z,now -pie" %else --with-cc-opt="%{optflags} -DNDK_ALL -Wno-maybe-uninitialized -Wno-sizeof-pointer-memaccess" %endif %make_build modules %make_build modules %install mkdir -p %{buildroot}%{ngx_module_dir} install -Dpm0644 nginx/objs/ndk_http_module.so %{buildroot}%{ngx_module_dir} mkdir -p %{buildroot}%{src_install_dir} tar -xzf %{SOURCE0} --strip-components=1 -C %{buildroot}%{src_install_dir} rm %{buildroot}%{src_install_dir}/.gitignore %files %license %{project_name}/LICENSE %doc %{project_name}/*.md %{ngx_module_dir}/ndk_http_module.so %files -n nginx-module-devel-kit-source %license %{project_name}/LICENSE %{src_install_dir} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor