Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mrostecki
nginx-module-opentracing
nginx-module-opentracing.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nginx-module-opentracing.spec of Package nginx-module-opentracing
# # spec file for package nginx-module-opentracing # # 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/ # %if 0%{?suse_version} != 1315 || 0%{?is_opensuse} %bcond_without libatomic %else %bcond_with libatomic %endif %if 0%{?suse_version} > 1220 %bcond_without pcre_jit %else %bcond_with pcre_jit %endif %define nginx_moduledir %{_libdir}/nginx/modules Name: nginx-module-opentracing Version: 0.9.0 Release: 0 Summary: Nginx plugin for OpenTracing License: Apache-2.0 URL: https://github.com/opentracing-contrib/nginx-opentracing Source: https://github.com/opentracing-contrib/nginx-opentracing/archive/v0.9.0.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: nginx-source BuildRequires: opentracing-cpp-devel BuildRequires: pcre-devel %if %{with libatomic} BuildRequires: libatomic-ops-devel %endif Requires: nginx = %(rpm -q nginx-source | rev | cut -d. --complement -f1 | cut -d"-" -f2 | rev) %description Nginx plugin which enabled requests served by Nginx for distributed tracing by The OpenTracing Project. %prep mkdir %{name} tar -xf %{SOURCE0} --strip-components=1 -C %{name} cp -r /usr/src/nginx . %build cd nginx # configure macro cannot be used, because this configure script doesn't # accept some options provided by the macro (like i.e. --host). ./configure \ --user=nginx --group=nginx \ --without-select_module \ --without-poll_module \ --without-http_gzip_module \ --with-threads \ --with-file-aio \ --with-ipv6 \ --with-pcre \ %if %{with pcre_jit} --with-pcre-jit \ %endif %if %{with libatomic} --with-libatomic \ %endif --with-compat \ --add-dynamic-module=../%{name}/opentracing \ %if 0%{?suse_version} > 1220 --with-cc-opt="%{optflags} -fPIC -D_GNU_SOURCE -fstack-protector" \ --with-ld-opt="-Wl,-z,relro,-z,now -pie" %else --with-cc-opt="%{optflags}" %endif make modules %install mkdir -p %{buildroot}%{nginx_moduledir} install -D -m 0644 nginx/objs/ngx_http_opentracing_module.so %{buildroot}%{nginx_moduledir} %files %license %{name}/LICENSE %dir %{_libdir}/nginx %{_libdir}/nginx/modules/ngx_http_opentracing_module.so %dir %{nginx_moduledir} %doc %{name}/README.md %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