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/
#
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
Source0: https://github.com/opentracing-contrib/nginx-opentracing/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRequires: nginx-source
BuildRequires: opentracing-cpp-devel
%{ngx_conditionals}
%{ngx_requires}
%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 %{_prefix}/src/nginx .
%build
cd nginx
%{ngx_configure} --add-dynamic-module=../%{name}/opentracing/
%make_build modules
%install
mkdir -p %{buildroot}%{ngx_module_dir}
install -Dpm0644 nginx/objs/ngx_http_opentracing_module.so %{buildroot}%{ngx_module_dir}
%files
%license %{name}/LICENSE
%doc %{name}/README.md
%{_libdir}/nginx/modules/ngx_http_opentracing_module.so
%changelog