From f75377071b5a7db3571a67143a5dbb6d42d71c6e Mon Sep 17 00:00:00 2001 From: Rafal Pietruch Date: Thu, 13 Jul 2017 10:43:45 +0200 Subject: [PATCH] packaging: Add tizen spec MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Pietruch [ Added llvm-static-devel build dependency, .gbs.conf, adjusted to current upstream ] Signed-off-by: Karol Lewandowski Change-Id: Ia63984e954be3e49bfdc407f123afaec82033b65 --- .gbs.conf | 3 +++ packaging/bcc-tools.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 .gbs.conf create mode 100644 packaging/bcc-tools.spec diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 index 0000000..2290232 --- /dev/null +++ b/.gbs.conf @@ -0,0 +1,3 @@ +[general] +upstream_branch = upstream +upstream_tag = v${upstreamversion} diff --git a/packaging/bcc-tools.spec b/packaging/bcc-tools.spec new file mode 100644 index 0000000..dbb2691 --- /dev/null +++ b/packaging/bcc-tools.spec @@ -0,0 +1,60 @@ +Name: bcc-tools +Version: 0.3.0 +Release: 0 +Summary: Tools for BPF-based Linux IO analysis, networking, monitoring +License: Apache-2.0 +Vendor: None (open source) +Group: Development/Compilers +URL: https://github.com/iovisor/bcc +Source0: %{name}-%{version}.tar.gz +Requires: /sbin/ldconfig +BuildRequires: gcc >= 3.4 +BuildRequires: cmake python +BuildRequires: bison flex llvm-devel clang-devel libelf-devel +BuildRequires: llvm-static-devel + +%description +BCC is a toolkit for creating efficient kernel tracing and manipulation +programs, and includes several useful tools and examples. It makes use +of extended BPF (Berkeley Packet Filters), formally known as eBPF, a new +feature that was first added to Linux 3.15. Much of what BCC uses +requires Linux 4.1 and above. + +%package devel +Summary: Developer package for BCC +License: Apache-2.0 + +%description devel +bcc tools - devel +This package provides development libraries. + +%prep +%setup -q -n bcc-tools-%{version} + +%build + +cmake -DCMAKE_INSTALL_PREFIX=/usr -DINSTALL_CPP_EXAMPLES=ON . + +make %{?jobs:-j%jobs} + +%install +%make_install + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%{_libdir}/libbpf.so +%{_libdir}/libbcc.so.* +%{_prefix}/lib/python2.7/site-packages/bcc* +%{_datadir}/bcc/* + +%files devel +%{_includedir}/* +%{_libdir}/libbcc.so +%{_libdir}/pkgconfig/libbcc.pc + -- 2.7.4