Browse code

Envoy dependencies backward-cpp, http-parser, spdlog, lightstep-traceer

Change-Id: Ic161d3e474c7893d86d19ecb074e1faeb0238ff5
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3158
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Vinay Kulkarni <kulkarniv@vmware.com>

Vinay Kulkarni authored on 2017/07/06 07:04:37
Showing 4 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,44 @@
0
+Summary:        Pretty stack trace printer for C++.
1
+Name:           backward-cpp
2
+Version:        1.3
3
+Release:        1%{?dist}
4
+License:        MIT
5
+URL:            https://github.com/bombela/backward-cpp
6
+Source0:        %{name}-v%{version}.tar.gz
7
+%define sha1    backward-cpp=c5e2672604bbe231bf489ce20369af095fe13fdf
8
+Group:          Development/Tools
9
+Vendor:         VMware, Inc.
10
+Distribution:   Photon
11
+BuildRequires:  automake
12
+BuildRequires:  autoconf
13
+BuildRequires:  cmake
14
+BuildRequires:  gcc
15
+
16
+%description
17
+Backward is a beautiful stack trace pretty printer for C++.
18
+
19
+%global debug_package %{nil}
20
+
21
+%prep
22
+%setup -q
23
+
24
+%build
25
+mkdir -p build
26
+cd build
27
+cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DBUILD_SHARED_LIBS=ON ..
28
+make %{?_smp_mflags}
29
+
30
+%install
31
+cd build
32
+make DESTDIR=%{buildroot} install
33
+install -vm644 libbackward.so %{buildroot}%{_libdir}/
34
+
35
+%files
36
+%defattr(-,root,root)
37
+%{_includedir}/backward.hpp
38
+%{_libdir}/backward/BackwardConfig.cmake
39
+%{_libdir}/libbackward.so
40
+
41
+%changelog
42
+*    Wed Jul 05 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.3-1
43
+-    Initial version of backward-cpp package for Photon.
0 44
new file mode 100644
... ...
@@ -0,0 +1,45 @@
0
+Summary:	C based http parser for high performance applications.
1
+Name:		http-parser
2
+Version:	2.7.1
3
+Release:	1%{?dist}
4
+License:	MIT
5
+URL:		https://github.com/nodejs/http-parser
6
+Source0:	%{name}-v%{version}.tar.gz
7
+%define sha1    http-parser=e122b1178ec5c9920186cc8293aca9eca7584b12
8
+Group:		Development/Tools
9
+Vendor:		VMware, Inc.
10
+Distribution: 	Photon
11
+BuildRequires:  gcc
12
+
13
+%description
14
+This is a parser for HTTP messages written in C. It parses both requests and responses. The parser is designed to be used in performance HTTP applications. It does not make any syscalls nor allocations, it does not buffer data, it can be interrupted at anytime.
15
+
16
+%package devel
17
+Summary:        http-parser devel
18
+Group:          Development/Tools
19
+Requires:       %{name} = %{version}
20
+%description devel
21
+This contains development tools and libraries for http-parser.
22
+
23
+%prep
24
+%setup -q
25
+sed -i 's/ln -s \$(LIBDIR)\/\$(SONAME) \$(LIBDIR)\/libhttp_parser.\$(SOEXT)/pushd \$(LIBDIR) \&\& ln -s  \$(SONAME)  libhttp_parser.\$(SOEXT) \&\& popd/g' Makefile
26
+
27
+%build
28
+make PREFIX=%{_prefix} %{?_smp_mflags}
29
+
30
+%install
31
+make PREFIX="%{buildroot}%{_prefix}" DESTDIR="%{buildroot}" install
32
+
33
+%files
34
+%defattr(-,root,root)
35
+%{_libdir}/libhttp_parser.so.*
36
+
37
+%files devel
38
+%defattr(-,root,root)
39
+%{_includedir}/http_parser.h
40
+%{_libdir}/libhttp_parser.so
41
+
42
+%changelog
43
+*    Wed Jul 05 2017 Vinay Kulkarni <kulkarniv@vmware.com> 2.7.1-1
44
+-    Initial version of http-parser package for Photon.
0 45
new file mode 100644
... ...
@@ -0,0 +1,58 @@
0
+Summary:        LightStep distributed tracing library for C++
1
+Name:           lightstep-tracer-cpp
2
+Version:        0.19
3
+Release:        1%{?dist}
4
+License:        MIT
5
+URL:            https://github.com/lightstep/lightstep-tracer-cpp
6
+Source0:        https://github.com/lightstep/lightstep-tracer-cpp/releases/download/v0_19/%{name}-%{version}.tar.gz
7
+%define sha1    lightstep-tracer-cpp=ed536c8954ad7a47d9023b9bff8070361b44d06d
8
+Group:          Development/Tools
9
+Vendor:         VMware, Inc.
10
+Distribution:   Photon
11
+BuildRequires:  autoconf
12
+BuildRequires:  automake
13
+BuildRequires:  clang
14
+BuildRequires:  c-ares
15
+BuildRequires:  c-ares-devel
16
+BuildRequires:  gcc
17
+BuildRequires:  protobuf
18
+BuildRequires:  protobuf-devel
19
+Requires:       protobuf
20
+
21
+%description
22
+LightStep distributed tracing library for C++.
23
+
24
+%prep
25
+%setup -q
26
+
27
+%build
28
+./configure                     \
29
+        --disable-silent-rules  \
30
+        --prefix=%{_prefix}     \
31
+        --disable-static        \
32
+        --enable-shared         \
33
+        --disable-grpc
34
+pushd src/c++11/envoy
35
+protoc --cpp_out=. envoy_carrier.proto
36
+mv envoy_carrier.pb.h ../lightstep/
37
+mv envoy_carrier.pb.cc ../proto/
38
+popd
39
+pushd lightstep-tracer-common
40
+protoc --cpp_out=. collector.proto
41
+mv collector.pb.h ../src/c++11/lightstep/
42
+mv collector.pb.cc ../src/c++11/proto/
43
+popd
44
+
45
+%install
46
+make DESTDIR=%{buildroot} install
47
+find %{buildroot} -name '*.la' -delete
48
+
49
+%files
50
+%defattr(-,root,root)
51
+%{_includedir}/lightstep/*.h
52
+%{_includedir}/mapbox_variant/*.hpp
53
+%{_libdir}/liblightstep_*
54
+
55
+%changelog
56
+*    Wed Jul 05 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.19-1
57
+-    Initial version of lightstep-tracer-cpp package for Photon.
0 58
new file mode 100644
... ...
@@ -0,0 +1,42 @@
0
+Summary:	Very fast, header only, C++ logging library.
1
+Name:		spdlog
2
+Version:	0.13.0
3
+Release:	1%{?dist}
4
+License:	MIT
5
+URL:		https://github.com/gabime/spdlog
6
+Source0:	%{name}-v%{version}.tar.gz
7
+%define sha1    spdlog=e9968ab555f9f7bb86d6257e98d7a92313a91297
8
+Group:		Development/Tools
9
+Vendor:		VMware, Inc.
10
+Distribution: 	Photon
11
+BuildRequires:  automake
12
+BuildRequires:  cmake
13
+BuildRequires:  gcc
14
+
15
+%description
16
+Very fast, header only, C++ logging library.
17
+
18
+%global debug_package %{nil}
19
+
20
+%prep
21
+%setup -q
22
+
23
+%build
24
+mkdir -p build
25
+cd build
26
+cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DBUILD_SHARED_LIBS=ON ..
27
+make %{?_smp_mflags}
28
+
29
+%install
30
+cd build
31
+make DESTDIR=%{buildroot} install
32
+
33
+%files
34
+%defattr(-,root,root)
35
+%{_includedir}/%{name}/*
36
+%{_libdir}/cmake/%{name}/*.cmake
37
+%{_libdir}/pkgconfig/spdlog.pc
38
+
39
+%changelog
40
+*    Wed Jul 05 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.13.0-1
41
+-    Initial version of spdlog package for Photon.