From: Rafal Pietruch Date: Thu, 13 Jul 2017 08:43:45 +0000 (+0200) Subject: packaging: Add tizen spec X-Git-Tag: submit/tizen_4.0/20171018.110122~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f75377071b5a7db3571a67143a5dbb6d42d71c6e;p=platform%2Fupstream%2Fbcc.git packaging: Add tizen spec 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 --- diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 index 00000000..2290232b --- /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 00000000..dbb26917 --- /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 +