packaging: Add tizen spec 61/148061/2
authorRafal Pietruch <r.pietruch@samsung.com>
Thu, 13 Jul 2017 08:43:45 +0000 (10:43 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Fri, 8 Sep 2017 09:38:16 +0000 (11:38 +0200)
Signed-off-by: RafaƂ Pietruch <r.pietruch@samsung.com>
[ Added llvm-static-devel build dependency, .gbs.conf, adjusted to current upstream ]
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
Change-Id: Ia63984e954be3e49bfdc407f123afaec82033b65

.gbs.conf [new file with mode: 0644]
packaging/bcc-tools.spec [new file with mode: 0644]

diff --git a/.gbs.conf b/.gbs.conf
new file mode 100644 (file)
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 (file)
index 0000000..dbb2691
--- /dev/null
@@ -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
+