--- /dev/null
+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
+