Brenden Blanco | 0d45b80 | 2015-09-03 23:24:49 -0700 | [diff] [blame] | 1 | %define debug_package %{nil} |
| 2 | |
| 3 | Name: bcc |
Brenden Blanco | 7e00fc1 | 2015-10-12 11:13:48 -0700 | [diff] [blame] | 4 | Version: 0.1.7 |
Brenden Blanco | 0d45b80 | 2015-09-03 23:24:49 -0700 | [diff] [blame] | 5 | Release: 1%{?dist} |
| 6 | Summary: BPF Compiler Collection (BCC) |
| 7 | |
| 8 | Group: Development/Languages |
| 9 | License: ASL 2.0 |
| 10 | URL: https://github.com/iovisor/bcc |
| 11 | Source0: bcc.tar.gz |
| 12 | |
| 13 | BuildArch: x86_64 |
| 14 | BuildRequires: bison, cmake >= 2.8.7, flex, gcc, gcc-c++, python2-devel |
| 15 | |
| 16 | %description |
| 17 | Python bindings for BPF Compiler Collection (BCC). Control a BPF program from |
| 18 | userspace. |
| 19 | |
| 20 | |
| 21 | %prep |
| 22 | %setup -n bcc |
| 23 | |
| 24 | %build |
| 25 | |
| 26 | mkdir build |
| 27 | pushd build |
Brenden Blanco | 7e00fc1 | 2015-10-12 11:13:48 -0700 | [diff] [blame] | 28 | cmake .. -DREVISION_LAST=%{version} -DREVISION=%{version} -DCMAKE_INSTALL_PREFIX=/usr |
Brenden Blanco | 0d45b80 | 2015-09-03 23:24:49 -0700 | [diff] [blame] | 29 | make -j`grep -c ^process /proc/cpuinfo` |
| 30 | popd |
| 31 | |
| 32 | %install |
| 33 | pushd build |
| 34 | make install/strip DESTDIR=%{buildroot} |
| 35 | |
| 36 | %changelog |
Brenden Blanco | f7c226d | 2015-11-29 17:07:52 -0800 | [diff] [blame] | 37 | * Sun Nov 29 2015 Brenden Blanco <bblanco@plumgrid.com> - 0.1.3-1 |
| 38 | - Add bcc-tools package |
| 39 | |
Brenden Blanco | 7e00fc1 | 2015-10-12 11:13:48 -0700 | [diff] [blame] | 40 | * Mon Oct 12 2015 Brenden Blanco <bblanco@plumgrid.com> - 0.1.2-1 |
| 41 | - Add better version numbering into libbcc.so |
| 42 | |
Brenden Blanco | 0d45b80 | 2015-09-03 23:24:49 -0700 | [diff] [blame] | 43 | * Fri Jul 03 2015 Brenden Blanco <bblanco@plumgrid.com> - 0.1.1-2 |
| 44 | - Initial RPM Release |
| 45 | |
| 46 | %package -n libbcc |
| 47 | Summary: Shared Library for BPF Compiler Collection (BCC) |
Brenden Blanco | 0d45b80 | 2015-09-03 23:24:49 -0700 | [diff] [blame] | 48 | %description -n libbcc |
| 49 | Shared Library for BPF Compiler Collection (BCC) |
| 50 | |
| 51 | %package -n libbcc-examples |
| 52 | Summary: Examples for BPF Compiler Collection (BCC) |
Brenden Blanco | 8e113c3 | 2015-11-29 17:51:01 -0800 | [diff] [blame] | 53 | Requires: libbcc |
Brenden Blanco | 0d45b80 | 2015-09-03 23:24:49 -0700 | [diff] [blame] | 54 | %description -n libbcc-examples |
| 55 | Examples for BPF Compiler Collection (BCC) |
| 56 | |
| 57 | %package -n python-bcc |
| 58 | Summary: Python bindings for BPF Compiler Collection (BCC) |
Brenden Blanco | 8e113c3 | 2015-11-29 17:51:01 -0800 | [diff] [blame] | 59 | Requires: libbcc |
Brenden Blanco | 0d45b80 | 2015-09-03 23:24:49 -0700 | [diff] [blame] | 60 | %description -n python-bcc |
| 61 | Python bindings for BPF Compiler Collection (BCC) |
| 62 | |
Brenden Blanco | f7c226d | 2015-11-29 17:07:52 -0800 | [diff] [blame] | 63 | %package -n bcc-tools |
| 64 | Summary: Command line tools for BPF Compiler Collection (BCC) |
Brenden Blanco | 8e113c3 | 2015-11-29 17:51:01 -0800 | [diff] [blame] | 65 | Requires: python-bcc |
Brenden Blanco | f7c226d | 2015-11-29 17:07:52 -0800 | [diff] [blame] | 66 | %description -n bcc-tools |
| 67 | Command line tools for BPF Compiler Collection (BCC) |
| 68 | |
Brenden Blanco | 0d45b80 | 2015-09-03 23:24:49 -0700 | [diff] [blame] | 69 | %files -n python-bcc |
| 70 | %{python_sitelib}/bcc* |
Brenden Blanco | 0d45b80 | 2015-09-03 23:24:49 -0700 | [diff] [blame] | 71 | |
| 72 | %files -n libbcc |
| 73 | /usr/lib64/* |
| 74 | /usr/share/bcc/include/* |
Brenden Blanco | 78db178 | 2016-01-04 09:54:00 -0800 | [diff] [blame] | 75 | /usr/share/bcc/lib/* |
Brenden Blanco | 0d45b80 | 2015-09-03 23:24:49 -0700 | [diff] [blame] | 76 | /usr/include/bcc/* |
| 77 | |
| 78 | %files -n libbcc-examples |
| 79 | /usr/share/bcc/examples/* |
Brenden Blanco | 7e00fc1 | 2015-10-12 11:13:48 -0700 | [diff] [blame] | 80 | %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 Blanco | c43e990 | 2015-10-30 08:58:23 +0900 | [diff] [blame] | 84 | %exclude /usr/share/bcc/examples/*/*/*.pyc |
| 85 | %exclude /usr/share/bcc/examples/*/*/*.pyo |
Brenden Blanco | f7c226d | 2015-11-29 17:07:52 -0800 | [diff] [blame] | 86 | |
| 87 | %files -n bcc-tools |
| 88 | /usr/share/bcc/tools/* |
| 89 | /usr/share/bcc/man/* |