blob: 8eb193b43af224440192de28d77d0e3b5078b7f4 [file] [log] [blame]
Brenden Blanco0d45b802015-09-03 23:24:49 -07001%define debug_package %{nil}
2
3Name: bcc
Brenden Blanco7e00fc12015-10-12 11:13:48 -07004Version: 0.1.7
Brenden Blanco0d45b802015-09-03 23:24:49 -07005Release: 1%{?dist}
6Summary: BPF Compiler Collection (BCC)
7
8Group: Development/Languages
9License: ASL 2.0
10URL: https://github.com/iovisor/bcc
11Source0: bcc.tar.gz
12
13BuildArch: x86_64
14BuildRequires: bison, cmake >= 2.8.7, flex, gcc, gcc-c++, python2-devel
15
16%description
17Python bindings for BPF Compiler Collection (BCC). Control a BPF program from
18userspace.
19
20
21%prep
22%setup -n bcc
23
24%build
25
26mkdir build
27pushd build
Brenden Blanco7e00fc12015-10-12 11:13:48 -070028cmake .. -DREVISION_LAST=%{version} -DREVISION=%{version} -DCMAKE_INSTALL_PREFIX=/usr
Brenden Blanco0d45b802015-09-03 23:24:49 -070029make -j`grep -c ^process /proc/cpuinfo`
30popd
31
32%install
33pushd build
34make install/strip DESTDIR=%{buildroot}
35
36%changelog
Brenden Blancof7c226d2015-11-29 17:07:52 -080037* Sun Nov 29 2015 Brenden Blanco <bblanco@plumgrid.com> - 0.1.3-1
38- Add bcc-tools package
39
Brenden Blanco7e00fc12015-10-12 11:13:48 -070040* Mon Oct 12 2015 Brenden Blanco <bblanco@plumgrid.com> - 0.1.2-1
41- Add better version numbering into libbcc.so
42
Brenden Blanco0d45b802015-09-03 23:24:49 -070043* Fri Jul 03 2015 Brenden Blanco <bblanco@plumgrid.com> - 0.1.1-2
44- Initial RPM Release
45
46%package -n libbcc
47Summary: Shared Library for BPF Compiler Collection (BCC)
Brenden Blanco0d45b802015-09-03 23:24:49 -070048%description -n libbcc
49Shared Library for BPF Compiler Collection (BCC)
50
51%package -n libbcc-examples
52Summary: Examples for BPF Compiler Collection (BCC)
Brenden Blanco8e113c32015-11-29 17:51:01 -080053Requires: libbcc
Brenden Blanco0d45b802015-09-03 23:24:49 -070054%description -n libbcc-examples
55Examples for BPF Compiler Collection (BCC)
56
57%package -n python-bcc
58Summary: Python bindings for BPF Compiler Collection (BCC)
Brenden Blanco8e113c32015-11-29 17:51:01 -080059Requires: libbcc
Brenden Blanco0d45b802015-09-03 23:24:49 -070060%description -n python-bcc
61Python bindings for BPF Compiler Collection (BCC)
62
Brenden Blancof7c226d2015-11-29 17:07:52 -080063%package -n bcc-tools
64Summary: Command line tools for BPF Compiler Collection (BCC)
Brenden Blanco8e113c32015-11-29 17:51:01 -080065Requires: python-bcc
Brenden Blancof7c226d2015-11-29 17:07:52 -080066%description -n bcc-tools
67Command line tools for BPF Compiler Collection (BCC)
68
Brenden Blanco0d45b802015-09-03 23:24:49 -070069%files -n python-bcc
70%{python_sitelib}/bcc*
Brenden Blanco0d45b802015-09-03 23:24:49 -070071
72%files -n libbcc
73/usr/lib64/*
74/usr/share/bcc/include/*
Brenden Blanco78db1782016-01-04 09:54:00 -080075/usr/share/bcc/lib/*
Brenden Blanco0d45b802015-09-03 23:24:49 -070076/usr/include/bcc/*
77
78%files -n libbcc-examples
79/usr/share/bcc/examples/*
Brenden Blanco7e00fc12015-10-12 11:13:48 -070080%exclude /usr/share/bcc/examples/*.pyc
81%exclude /usr/share/bcc/examples/*.pyo
82%exclude /usr/share/bcc/examples/*/*.pyc
83%exclude /usr/share/bcc/examples/*/*.pyo
Brenden Blancoc43e9902015-10-30 08:58:23 +090084%exclude /usr/share/bcc/examples/*/*/*.pyc
85%exclude /usr/share/bcc/examples/*/*/*.pyo
Brenden Blancof7c226d2015-11-29 17:07:52 -080086
87%files -n bcc-tools
88/usr/share/bcc/tools/*
89/usr/share/bcc/man/*