diff options
author | Brenden Blanco <bblanco@gmail.com> | 2018-07-18 11:04:14 -0700 |
---|---|---|
committer | Brenden Blanco <bblanco@gmail.com> | 2018-07-18 11:04:45 -0700 |
commit | c2738e9151ff3fbce7d0d2c0ed60e1f483ee31f2 (patch) | |
tree | f803761d9bb9a76f3601f882eff5ce580ec12e36 | |
parent | d895085078552b51ca6f6c436da91df78fd8b187 (diff) | |
download | bcc-fedora-28-support.zip bcc-fedora-28-support.tar.gz bcc-fedora-28-support.tar.bz2 |
specs: enable python3 by default in fc28+/rh8+fedora-28-support
- Enable llvm_shared and python3 --with options by default in new fedora
- Fix string quoting
- Update spec changelog
-rw-r--r-- | SPECS/bcc.spec | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/SPECS/bcc.spec b/SPECS/bcc.spec index 057c317..f74bb61 100644 --- a/SPECS/bcc.spec +++ b/SPECS/bcc.spec @@ -7,17 +7,27 @@ %endif # use --with shared to only link against libLLVM.so +%if 0%{?fedora} >= 28 || 0%{?rhel} > 7 +%bcond_without llvm_shared +%else %bcond_with llvm_shared +%endif +# Build python3 support for distributions that have it +%if 0%{?fedora} >= 28 || 0%{?rhel} > 7 +%bcond_without python3 +%else %bcond_with python3 +%endif + %if %{with python3} %global __python %{__python3} %global python_bcc python3-bcc -%global python_cmds "python2;python3" +%global python_cmds python2;python3 %else %global __python %{__python2} %global python_bcc python2-bcc -%global python_cmds "python2" +%global python_cmds python2 %endif %define debug_package %{nil} @@ -164,7 +174,8 @@ Command line tools for BPF Compiler Collection (BCC) %postun -n libbcc -p /sbin/ldconfig %changelog -* Thu Jun 13 2018 Brenden Blanco <bblanco@gmail.com> - 0.5.0-1 +* Wed Jul 18 2018 Brenden Blanco <bblanco@gmail.com> - 0.6.0-1 +- Make python3 the default when possible - Add with llvm_shared conditional - Add python2/python3 package targets |