Blame kernel-tools.spec

Laura Abbott a8f134
# Much of this is borrowed from the original kernel.spec
Laura Abbott a8f134
# It needs a bunch of the macros for rawhide vs. not-rawhide builds.
Laura Abbott a8f134
Laura Abbott a8f134
# For a stable, released kernel, released_kernel should be 1. For rawhide
Laura Abbott a8f134
# and/or a kernel built from an rc or git snapshot, released_kernel should
Laura Abbott a8f134
# be 0.
Jeremy Cline 574c52
%global released_kernel 1
Laura Abbott 8aa07c
%global baserelease 1
Laura Abbott a8f134
%global fedora_build %{baserelease}
Laura Abbott a8f134
Laura Abbott a8f134
# base_sublevel is the kernel version we're starting with and patching
Laura Abbott a8f134
# on top of -- for example, 3.1-rc7-git1 starts with a 3.0 base,
Laura Abbott a8f134
# which yields a base_sublevel of 0.
Jeremy Cline 574c52
%global base_sublevel 4
Laura Abbott a8f134
Laura Abbott a8f134
## If this is a released kernel ##
Laura Abbott a8f134
%if 0%{?released_kernel}
Laura Abbott a8f134
Laura Abbott a8f134
# Do we have a -stable update to apply?
Laura Abbott a8f134
%global stable_update 0
Laura Abbott a8f134
# Set rpm version accordingly
Laura Abbott a8f134
%if 0%{?stable_update}
Laura Abbott a8f134
%global stablerev %{stable_update}
Laura Abbott a8f134
%global stable_base %{stable_update}
Laura Abbott a8f134
%endif
Laura Abbott 6b9c3e
%global rpmversion 5.%{base_sublevel}.%{stable_update}
Laura Abbott a8f134
Laura Abbott a8f134
## The not-released-kernel case ##
Laura Abbott a8f134
%else
Laura Abbott a8f134
# The next upstream release sublevel (base_sublevel+1)
Laura Abbott 2e85c5
%global upstream_sublevel %(echo $((%{base_sublevel} + 1)))
Laura Abbott 6b9c3e
Laura Abbott a8f134
# The rc snapshot level
Jeremy Cline 574c52
%global rcrev 0
Laura Abbott a8f134
# Set rpm version accordingly
Laura Abbott 6b9c3e
%global rpmversion 5.%{upstream_sublevel}.0
Laura Abbott a8f134
%endif
Laura Abbott a8f134
# Nb: The above rcrev values automagically define Patch00 and Patch01 below.
Laura Abbott a8f134
Laura Abbott a8f134
# pkg_release is what we'll fill in for the rpm Release: field
Laura Abbott a8f134
%if 0%{?released_kernel}
Laura Abbott a8f134
Laura Abbott a8f134
%global pkg_release %{fedora_build}%{?buildid}%{?dist}
Laura Abbott a8f134
Laura Abbott a8f134
%else
Laura Abbott a8f134
Laura Abbott a8f134
# non-released_kernel
Laura Abbott a8f134
%if 0%{?rcrev}
Laura Abbott a8f134
%global rctag .rc%rcrev
Laura Abbott a8f134
%else
Laura Abbott a8f134
%global rctag .rc0
Laura Abbott a8f134
%endif
Laura Abbott a8f134
%global gittag .git0
Laura Abbott a8f134
%global pkg_release 0%{?rctag}%{?gittag}.%{fedora_build}%{?buildid}%{?dist}
Laura Abbott a8f134
Laura Abbott a8f134
%endif
Laura Abbott a8f134
Laura Abbott a8f134
# The kernel tarball/base version
Laura Abbott 2e85c5
%global kversion 5.%{base_sublevel}
Laura Abbott a8f134
%global KVERREL %{version}-%{release}.%{_target_cpu}
Laura Abbott a8f134
Laura Abbott a8f134
%global _debuginfo_subpackages 1
Laura Abbott a8f134
%undefine _include_gdb_index
Laura Abbott a8f134
%undefine _include_minidebuginfo
Laura Abbott a8f134
Laura Abbott 96c899
# perf needs this
Laura Abbott 96c899
%undefine _strict_symbol_defs_build
Laura Abbott 96c899
Laura Abbott a8f134
BuildRequires: kmod, patch, bash, tar, git
Laura Abbott a8f134
BuildRequires: bzip2, xz, findutils, gzip, m4, perl-interpreter, perl(Carp), perl-devel, perl-generators, make, diffutils, gawk
Laura Abbott a8f134
BuildRequires: gcc, binutils, redhat-rpm-config, hmaccalc
Laura Abbott a8f134
BuildRequires: net-tools, hostname, bc, elfutils-devel
Miro Hrončok a83bd2
BuildRequires: zlib-devel binutils-devel newt-devel python3-docutils perl(ExtUtils::Embed) bison flex xz-devel
Laura Abbott 67af52
BuildRequires: audit-libs-devel glibc-devel glibc-static python3-devel
Jeremy Cline ea76b6
BuildRequires: asciidoc xmlto
Jeremy Cline 45f8f0
# Used to mangle unversioned shebangs to be Python 3
Jeremy Cline 45f8f0
BuildRequires: /usr/bin/pathfix.py
Laura Abbott a8f134
%ifnarch s390x %{arm}
Laura Abbott a8f134
BuildRequires: numactl-devel
Laura Abbott a8f134
%endif
Laura Abbott a8f134
BuildRequires: pciutils-devel gettext ncurses-devel
Laura Abbott a8f134
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
Laura Abbott a8f134
BuildRequires: rpm-build, elfutils
Laura Abbott a8f134
%{?systemd_requires}
Laura Abbott a8f134
BuildRequires: systemd
Laura Abbott a8f134
Laura Abbott 2e85c5
Source0: https://www.kernel.org/pub/linux/kernel/v5.x/linux-%{kversion}.tar.xz
Laura Abbott a8f134
Laura Abbott a8f134
# Sources for kernel-tools
Laura Abbott a8f134
Source2000: cpupower.service
Laura Abbott a8f134
Source2001: cpupower.config
Laura Abbott a8f134
Laura Abbott a8f134
# Here should be only the patches up to the upstream canonical Linus tree.
Laura Abbott a8f134
Laura Abbott a8f134
# For a stable release kernel
Laura Abbott a8f134
%if 0%{?stable_base}
Laura Abbott 6b9c3e
Source5000: patch-5.%{base_sublevel}.%{stable_base}.xz
Laura Abbott a8f134
%else
Laura Abbott a8f134
# non-released_kernel case
Laura Abbott a8f134
# These are automagically defined by the rcrev value set up
Laura Abbott a8f134
# near the top of this spec file.
Laura Abbott a8f134
%if 0%{?rcrev}
Laura Abbott 2e85c5
Source5000: patch-5.%{upstream_sublevel}-rc%{rcrev}.xz
Laura Abbott a8f134
%endif
Laura Abbott a8f134
%endif
Laura Abbott a8f134
Laura Abbott a8f134
# ongoing complaint, full discussion delayed until ksummit/plumbers
Laura Abbott a8f134
Patch0: 0001-iio-Use-event-header-from-kernel-tree.patch
Laura Abbott a8f134
Laura Abbott a8f134
# rpmlint cleanup
Laura Abbott a8f134
Patch6: 0002-perf-Don-t-make-sourced-script-executable.patch
Laura Abbott a8f134
Name: kernel-tools
Laura Abbott a8f134
Summary: Assortment of tools for the Linux kernel
Laura Abbott a8f134
License: GPLv2
Laura Abbott a8f134
URL: http://www.kernel.org/
Laura Abbott a8f134
Version: %{rpmversion}
Laura Abbott a8f134
Release: %{pkg_release}
Laura Abbott a8f134
Provides:  cpupowerutils = 1:009-0.6.p1
Laura Abbott a8f134
Obsoletes: cpupowerutils < 1:009-0.6.p1
Laura Abbott a8f134
Provides:  cpufreq-utils = 1:009-0.6.p1
Laura Abbott a8f134
Provides:  cpufrequtils = 1:009-0.6.p1
Laura Abbott a8f134
Obsoletes: cpufreq-utils < 1:009-0.6.p1
Laura Abbott a8f134
Obsoletes: cpufrequtils < 1:009-0.6.p1
Laura Abbott a8f134
Obsoletes: cpuspeed < 1:1.5-16
Laura Abbott a8f134
Requires: kernel-tools-libs = %{version}-%{release}
Laura Abbott a8f134
%description -n kernel-tools
Laura Abbott a8f134
This package contains the tools/ directory from the kernel source
Laura Abbott a8f134
and the supporting documentation.
Laura Abbott a8f134
Laura Abbott a8f134
Laura Abbott a8f134
%package -n perf
Laura Abbott a8f134
Summary: Performance monitoring for the Linux kernel
Jiri Olsa a8daca
Requires: bzip2
Laura Abbott a8f134
License: GPLv2
Laura Abbott a8f134
%description -n perf
Laura Abbott a8f134
This package contains the perf tool, which enables performance monitoring
Laura Abbott a8f134
of the Linux kernel.
Laura Abbott a8f134
Jeremy Cline 23d789
%global pythonperfsum Python bindings for apps which will manipulate perf events
Jeremy Cline 23d789
%global pythonperfdesc A Python module that permits applications \
Laura Abbott 67af52
written in the Python programming language to use the interface \
Laura Abbott 67af52
to manipulate perf events.
Laura Abbott 67af52
Laura Abbott 67af52
%package -n python3-perf
Jeremy Cline 23d789
Summary: %{pythonperfsum}
Laura Abbott 67af52
%{?python_provide:%python_provide python3-perf}
Laura Abbott 67af52
%description -n python3-perf
Jeremy Cline 23d789
%{pythonperfdesc}
Laura Abbott a8f134
Laura Abbott a8f134
%package -n kernel-tools-libs
Laura Abbott a8f134
Summary: Libraries for the kernels-tools
Laura Abbott a8f134
License: GPLv2
Laura Abbott a8f134
%description -n kernel-tools-libs
Laura Abbott a8f134
This package contains the libraries built from the tools/ directory
Laura Abbott a8f134
from the kernel source.
Laura Abbott a8f134
Laura Abbott a8f134
%package -n kernel-tools-libs-devel
Laura Abbott a8f134
Summary: Assortment of tools for the Linux kernel
Laura Abbott a8f134
License: GPLv2
Laura Abbott a8f134
Requires: kernel-tools = %{version}-%{release}
Laura Abbott a8f134
Provides:  cpupowerutils-devel = 1:009-0.6.p1
Laura Abbott a8f134
Obsoletes: cpupowerutils-devel < 1:009-0.6.p1
Laura Abbott a8f134
Requires: kernel-tools-libs = %{version}-%{release}
Laura Abbott a8f134
Provides: kernel-tools-devel
Laura Abbott a8f134
%description -n kernel-tools-libs-devel
Laura Abbott a8f134
This package contains the development files for the tools/ directory from
Laura Abbott a8f134
the kernel source.
Laura Abbott a8f134
Jiri Olsa d0f955
%package -n bpftool
Jiri Olsa d0f955
Summary: Inspection and simple manipulation of eBPF programs and maps
Jiri Olsa d0f955
License: GPLv2
Jiri Olsa d0f955
%description -n bpftool
Jiri Olsa d0f955
This package contains the bpftool, which allows inspection and simple
Jiri Olsa d0f955
manipulation of eBPF programs and maps.
Jiri Olsa d0f955
Jiri Olsa ad01cd
%package -n libbpf
Jiri Olsa ad01cd
Summary: The bpf library from kernel source
Jiri Olsa ad01cd
License: GPLv2
Jiri Olsa ad01cd
%description -n libbpf
Jiri Olsa ad01cd
This package contains the kernel source bpf library.
Jiri Olsa ad01cd
Jiri Olsa ad01cd
%package -n libbpf-devel
Jiri Olsa ad01cd
Summary: Developement files for the bpf library from kernel source
Jiri Olsa ad01cd
License: GPLv2
Jiri Olsa ad01cd
%description -n libbpf-devel
Jiri Olsa ad01cd
This package includes libraries and header files needed for development
Jiri Olsa ad01cd
of applications which use bpf library from kernel source.
Jiri Olsa ad01cd
Laura Abbott a8f134
%prep
Laura Abbott a8f134
%setup -q -n kernel-%{kversion}%{?dist} -c
Laura Abbott a8f134
Laura Abbott a8f134
cd linux-%{kversion}
Laura Abbott a8f134
Laura Abbott a8f134
# This is for patching either an -rc or stable
Laura Abbott a8f134
%if 0%{?rcrev}
Laura Abbott a8f134
    xzcat %{SOURCE5000} | patch -p1 -F1 -s
Laura Abbott a8f134
%endif
Laura Abbott a8f134
Laura Abbott a8f134
%if 0%{?stable_base}
Laura Abbott a8f134
    xzcat %{SOURCE5000} | patch -p1 -F1 -s
Laura Abbott a8f134
%endif
Laura Abbott a8f134
Laura Abbott a8f134
%patch0 -p1
Laura Abbott a8f134
%patch6 -p1
Laura Abbott a8f134
Laura Abbott a8f134
# END OF PATCH APPLICATIONS
Laura Abbott a8f134
Jeremy Cline 45f8f0
# Mangle /usr/bin/python shebangs to /usr/bin/python3
Jeremy Cline 45f8f0
# -p preserves timestamps
Jeremy Cline 45f8f0
# -n prevents creating ~backup files
Jeremy Cline 45f8f0
# -i specifies the interpreter for the shebang
Laura Abbott 6b9c3e
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" tools/ tools/perf/scripts/python/*.py scripts/gen_compile_commands.py
Jeremy Cline 45f8f0
Laura Abbott a8f134
###
Laura Abbott a8f134
### build
Laura Abbott a8f134
###
Laura Abbott a8f134
%build
Laura Abbott a8f134
Laura Abbott a8f134
cd linux-%{kversion}
Laura Abbott a8f134
Laura Abbott a8f134
%global perf_make \
Laura Abbott fa61f8
  make EXTRA_CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags}" %{?cross_opts} V=1 NO_PERF_READ_VDSO32=1 NO_PERF_READ_VDSOX32=1 WERROR=0 NO_LIBUNWIND=1 HAVE_CPLUS_DEMANGLE=1 NO_GTK2=1 NO_STRLCPY=1 NO_BIONIC=1 prefix=%{_prefix}
Miro Hrončok a83bd2
%global perf_python3 -C tools/perf PYTHON=%{__python3}
Laura Abbott a8f134
# perf
Laura Abbott a8f134
# make sure check-headers.sh is executable
Laura Abbott a8f134
chmod +x tools/perf/check-headers.sh
Laura Abbott 67af52
%{perf_make} %{perf_python3} all
Laura Abbott a8f134
Laura Abbott e11259
%global tools_make \
Laura Abbott e11259
  make CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="%{__global_ldflags}" HOSTCFLAGS="%{?build_hostcflags}" HOSTLDFLAGS="%{?build_hostldflags}" V=1
Laura Abbott e11259
Laura Abbott a8f134
# cpupower
Laura Abbott a8f134
# make sure version-gen.sh is executable.
Laura Abbott a8f134
chmod +x tools/power/cpupower/utils/version-gen.sh
Laura Abbott e11259
%{tools_make} %{?_smp_mflags} -C tools/power/cpupower CPUFREQ_BENCH=false
Laura Abbott a8f134
%ifarch %{ix86}
Laura Abbott a8f134
    pushd tools/power/cpupower/debug/i386
Laura Abbott e11259
    %{tools_make} %{?_smp_mflags} centrino-decode powernow-k8-decode
Laura Abbott a8f134
    popd
Laura Abbott a8f134
%endif
Laura Abbott a8f134
%ifarch x86_64
Laura Abbott a8f134
    pushd tools/power/cpupower/debug/x86_64
Laura Abbott e11259
    %{tools_make} %{?_smp_mflags} centrino-decode powernow-k8-decode
Laura Abbott a8f134
    popd
Laura Abbott a8f134
%endif
Laura Abbott a8f134
%ifarch %{ix86} x86_64
Laura Abbott a8f134
   pushd tools/power/x86/x86_energy_perf_policy/
Laura Abbott e11259
   %{tools_make}
Laura Abbott a8f134
   popd
Laura Abbott a8f134
   pushd tools/power/x86/turbostat
Laura Abbott e11259
   %{tools_make}
Laura Abbott a8f134
   popd
Laura Abbott a8f134
%endif #turbostat/x86_energy_perf_policy
Laura Abbott a8f134
pushd tools/thermal/tmon/
Laura Abbott e11259
%{tools_make}
Laura Abbott a8f134
popd
Laura Abbott a8f134
pushd tools/iio/
Laura Abbott e11259
%{tools_make}
Laura Abbott a8f134
popd
Laura Abbott a8f134
pushd tools/gpio/
Laura Abbott e11259
%{tools_make}
Laura Abbott a8f134
popd
Laura Abbott e11259
Laura Abbott e11259
%global bpftool_make \
Laura Abbott e11259
  make EXTRA_CFLAGS="${RPM_OPT_FLAGS}" EXTRA_LDFLAGS="%{__global_ldflags}" DESTDIR=$RPM_BUILD_ROOT V=1
Laura Abbott e11259
Jiri Olsa d0f955
pushd tools/bpf/bpftool
Laura Abbott e11259
%{bpftool_make}
Jiri Olsa d0f955
popd
Jiri Olsa ad01cd
pushd tools/lib/bpf
Laura Abbott e11259
%{tools_make} V=1
Jiri Olsa ad01cd
popd
Laura Abbott a8f134
Jeremy Cline ea76b6
# Build the docs
Jeremy Cline ea76b6
pushd tools/kvm/kvm_stat/
Jeremy Cline ea76b6
make %{?_smp_mflags} man
Jeremy Cline ea76b6
popd
Jeremy Cline ea76b6
pushd tools/perf/Documentation/
Jeremy Cline ea76b6
make %{?_smp_mflags} man
Jeremy Cline ea76b6
popd
Jeremy Cline ea76b6
Laura Abbott a8f134
###
Laura Abbott a8f134
### install
Laura Abbott a8f134
###
Laura Abbott a8f134
Laura Abbott a8f134
%install
Laura Abbott a8f134
Laura Abbott a8f134
cd linux-%{kversion}
Laura Abbott a8f134
Laura Abbott a8f134
# perf tool binary and supporting scripts/binaries
Miro Hrončok a83bd2
%{perf_make} %{perf_python3} DESTDIR=%{buildroot} lib=%{_lib} install-bin install-traceevent-plugins
Laura Abbott a8f134
# remove the 'trace' symlink.
Laura Abbott a8f134
rm -f %{buildroot}%{_bindir}/trace
Laura Abbott a8f134
Laura Abbott 6fb56e
# For both of the below, yes, this should be using a macro but right now
Laura Abbott 6fb56e
# it's hard coded and we don't actually want it anyway right now.
Laura Abbott 6fb56e
# Whoever wants examples can fix it up!
Laura Abbott 6fb56e
Laura Abbott 6fb56e
# remove examples
Jeremy Cline 835692
rm -rf %{buildroot}/usr/lib/perf/examples
Laura Abbott 6fb56e
# remove the stray header file that somehow got packaged in examples
Jeremy Cline 835692
rm -rf %{buildroot}/usr/lib/perf/include/bpf/
Laura Abbott 6fb56e
Laura Abbott a8f134
# python-perf extension
Laura Abbott 67af52
%{perf_make} %{perf_python3} DESTDIR=%{buildroot} install-python_ext
Laura Abbott a8f134
Laura Abbott a8f134
# perf man pages (note: implicit rpm magic compresses them later)
Jeremy Cline ea76b6
install -d %{buildroot}/%{_mandir}/man1
Jeremy Cline ea76b6
install -pm0644 tools/kvm/kvm_stat/kvm_stat.1 %{buildroot}/%{_mandir}/man1/
Jeremy Cline ea76b6
install -pm0644 tools/perf/Documentation/*.1 %{buildroot}/%{_mandir}/man1/
Laura Abbott a8f134
Laura Abbott a8f134
make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
Laura Abbott a8f134
rm -f %{buildroot}%{_libdir}/*.{a,la}
Laura Abbott a8f134
%find_lang cpupower
Laura Abbott a8f134
mv cpupower.lang ../
Laura Abbott a8f134
%ifarch %{ix86}
Laura Abbott a8f134
    pushd tools/power/cpupower/debug/i386
Laura Abbott a8f134
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Laura Abbott a8f134
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Laura Abbott a8f134
    popd
Laura Abbott a8f134
%endif
Laura Abbott a8f134
%ifarch x86_64
Laura Abbott a8f134
    pushd tools/power/cpupower/debug/x86_64
Laura Abbott a8f134
    install -m755 centrino-decode %{buildroot}%{_bindir}/centrino-decode
Laura Abbott a8f134
    install -m755 powernow-k8-decode %{buildroot}%{_bindir}/powernow-k8-decode
Laura Abbott a8f134
    popd
Laura Abbott a8f134
%endif
Laura Abbott a8f134
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
Laura Abbott a8f134
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
Laura Abbott a8f134
install -m644 %{SOURCE2000} %{buildroot}%{_unitdir}/cpupower.service
Laura Abbott a8f134
install -m644 %{SOURCE2001} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
Laura Abbott a8f134
%ifarch %{ix86} x86_64
Laura Abbott a8f134
   mkdir -p %{buildroot}%{_mandir}/man8
Laura Abbott a8f134
   pushd tools/power/x86/x86_energy_perf_policy
Laura Abbott e11259
   %{tools_make} DESTDIR=%{buildroot} install
Laura Abbott a8f134
   popd
Laura Abbott a8f134
   pushd tools/power/x86/turbostat
Laura Abbott e11259
   %{tools_make} DESTDIR=%{buildroot} install
Laura Abbott a8f134
   popd
Laura Abbott a8f134
%endif #turbostat/x86_energy_perf_policy
Laura Abbott a8f134
pushd tools/thermal/tmon
Laura Abbott e11259
%{tools_make} INSTALL_ROOT=%{buildroot} install
Laura Abbott a8f134
popd
Laura Abbott a8f134
pushd tools/iio
Laura Abbott e11259
%{tools_make} DESTDIR=%{buildroot} install
Laura Abbott a8f134
popd
Laura Abbott a8f134
pushd tools/gpio
Laura Abbott e11259
%{tools_make} DESTDIR=%{buildroot} install
Laura Abbott a8f134
popd
Laura Abbott a8f134
pushd tools/kvm/kvm_stat
Laura Abbott e11259
%{tools_make} INSTALL_ROOT=%{buildroot} install-tools
Laura Abbott a8f134
popd
Jiri Olsa d0f955
pushd tools/bpf/bpftool
Laura Abbott e11259
%{bpftool_make} prefix=%{_prefix} bash_compdir=%{_sysconfdir}/bash_completion.d/ mandir=%{_mandir} install doc-install
Jeremy Cline e2ab00
# man-pages packages this (rhbz #1686954)
Jeremy Cline e2ab00
rm %{buildroot}%{_mandir}/man7/bpf-helpers.7
Jiri Olsa d0f955
popd
Jiri Olsa ad01cd
pushd tools/lib/bpf
Laura Abbott e11259
%{tools_make} DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{_libdir} V=1 install install_headers
Jiri Olsa ad01cd
popd
Laura Abbott a8f134
Laura Abbott a8f134
###
Laura Abbott a8f134
### scripts
Laura Abbott a8f134
###
Laura Abbott a8f134
Igor Gnatenko 338788
%ldconfig_scriptlets -n kernel-tools-libs
Laura Abbott a8f134
Laura Abbott a8f134
%post -n kernel-tools
Laura Abbott a8f134
%systemd_post cpupower.service
Laura Abbott a8f134
Laura Abbott a8f134
%preun -n kernel-tools
Laura Abbott a8f134
%systemd_preun cpupower.service
Laura Abbott a8f134
Laura Abbott a8f134
%postun
Laura Abbott a8f134
%systemd_postun cpupower.service
Laura Abbott a8f134
Laura Abbott a8f134
%files -n perf
Laura Abbott a8f134
%{_bindir}/perf
Laura Abbott a8f134
%dir %{_libdir}/traceevent
Laura Abbott a8f134
%{_libdir}/traceevent/plugins/
Laura Abbott a8f134
%{_libexecdir}/perf-core
Laura Abbott a8f134
%{_datadir}/perf-core/
Laura Abbott a8f134
%{_mandir}/man[1-8]/perf*
Laura Abbott a8f134
%{_sysconfdir}/bash_completion.d/perf
Laura Abbott a8f134
%doc linux-%{kversion}/tools/perf/Documentation/examples.txt
Laura Abbott a8f134
%license linux-%{kversion}/COPYING
Laura Abbott 8e32fd
%{_docdir}/perf-tip/tips.txt
Laura Abbott a8f134
Laura Abbott 67af52
%files -n python3-perf
Laura Abbott 67af52
%license linux-%{kversion}/COPYING
Laura Abbott 67af52
%{python3_sitearch}/*
Laura Abbott a8f134
Laura Abbott a8f134
%files -n kernel-tools -f cpupower.lang
Laura Abbott a8f134
%{_bindir}/cpupower
Laura Abbott 6b9c3e
%{_datadir}/bash-completion/completions/cpupower
Laura Abbott a8f134
%ifarch %{ix86} x86_64
Laura Abbott a8f134
%{_bindir}/centrino-decode
Laura Abbott a8f134
%{_bindir}/powernow-k8-decode
Laura Abbott a8f134
%endif
Laura Abbott a8f134
%{_unitdir}/cpupower.service
Laura Abbott a8f134
%{_mandir}/man[1-8]/cpupower*
Laura Abbott a8f134
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
Laura Abbott a8f134
%ifarch %{ix86} x86_64
Laura Abbott a8f134
%{_bindir}/x86_energy_perf_policy
Laura Abbott a8f134
%{_mandir}/man8/x86_energy_perf_policy*
Laura Abbott a8f134
%{_bindir}/turbostat
Laura Abbott a8f134
%{_mandir}/man8/turbostat*
Laura Abbott a8f134
%endif
Laura Abbott a8f134
%{_bindir}/tmon
Laura Abbott a8f134
%{_bindir}/iio_event_monitor
Laura Abbott a8f134
%{_bindir}/iio_generic_buffer
Laura Abbott a8f134
%{_bindir}/lsiio
Laura Abbott a8f134
%{_bindir}/lsgpio
Laura Abbott a8f134
%{_bindir}/gpio-hammer
Laura Abbott a8f134
%{_bindir}/gpio-event-mon
Laura Abbott a8f134
%{_mandir}/man1/kvm_stat*
Laura Abbott a8f134
%{_bindir}/kvm_stat
Laura Abbott a8f134
%license linux-%{kversion}/COPYING
Laura Abbott a8f134
Laura Abbott a8f134
%files -n kernel-tools-libs
Laura Abbott a8f134
%{_libdir}/libcpupower.so.0
Laura Abbott a8f134
%{_libdir}/libcpupower.so.0.0.1
Laura Abbott a8f134
%license linux-%{kversion}/COPYING
Laura Abbott a8f134
Laura Abbott a8f134
%files -n kernel-tools-libs-devel
Laura Abbott a8f134
%{_libdir}/libcpupower.so
Laura Abbott a8f134
%{_includedir}/cpufreq.h
Laura Abbott a8f134
%{_includedir}/cpuidle.h
Laura Abbott a8f134
Jiri Olsa d0f955
%files -n bpftool
Jiri Olsa d0f955
%{_sbindir}/bpftool
Jiri Olsa d0f955
%{_sysconfdir}/bash_completion.d/bpftool
Justin M. Forbes 49b7b0
%{_mandir}/man8/bpftool-btf.8.gz
Jiri Olsa d0f955
%{_mandir}/man8/bpftool-cgroup.8.gz
Jiri Olsa d0f955
%{_mandir}/man8/bpftool-map.8.gz
Justin M. Forbes 901bda
%{_mandir}/man8/bpftool-net.8.gz
Jiri Olsa d0f955
%{_mandir}/man8/bpftool-prog.8.gz
Laura Abbott 6fb56e
%{_mandir}/man8/bpftool-perf.8.gz
Jeremy Cline e2ab00
%{_mandir}/man8/bpftool-feature.8.gz
Jiri Olsa d0f955
%{_mandir}/man8/bpftool.8.gz
Jiri Olsa d0f955
%license linux-%{kversion}/COPYING
Jiri Olsa d0f955
Jiri Olsa ad01cd
%files -n libbpf
Jiri Olsa ad01cd
%{_libdir}/libbpf.so.0
Jeremy Cline 30a149
%{_libdir}/libbpf.so.0.0.5
Jiri Olsa ad01cd
%license linux-%{kversion}/COPYING
Jiri Olsa ad01cd
Jiri Olsa ad01cd
%files -n libbpf-devel
Jiri Olsa ad01cd
%{_libdir}/libbpf.a
Jiri Olsa ad01cd
%{_libdir}/libbpf.so
Justin M. Forbes 49b7b0
%{_libdir}/pkgconfig/libbpf.pc
Jiri Olsa ad01cd
%{_includedir}/bpf/bpf.h
Jiri Olsa ad01cd
%{_includedir}/bpf/btf.h
Jiri Olsa ad01cd
%{_includedir}/bpf/libbpf.h
Justin M. Forbes 49b7b0
%{_includedir}/bpf/libbpf_util.h
Jeremy Cline 349925
%{_includedir}/bpf/xsk.h
Jiri Olsa ad01cd
%license linux-%{kversion}/COPYING
Jiri Olsa ad01cd
Laura Abbott a8f134
%changelog
Jeremy Cline 574c52
* Wed Dec 04 2019 Jeremy Cline <jcline@redhat.com> - 5.4.0-1
Jeremy Cline 574c52
- Linux v5.4
Jeremy Cline 574c52
Jeremy Cline 09f02b
* Mon Nov 04 2019 Jeremy Cline <jcline@redhat.com> - 5.4.0-0.rc6.git0.1
Jeremy Cline 09f02b
- Linux v5.4-rc6
Jeremy Cline 09f02b
Jeremy Cline 894357
* Mon Oct 28 2019 Jeremy Cline <jcline@redhat.com> - 5.4.0-0.rc5.git0.1
Jeremy Cline 894357
- Linux v5.4-rc5
Jeremy Cline 894357
Jeremy Cline 30a149
* Thu Oct 03 2019 Jeremy Cline <jcline@redhat.com> - 5.4.0-0.rc1.git0.1
Jeremy Cline 30a149
- Linux v5.4-rc1
Jeremy Cline 30a149
Laura Abbott 0dec60
* Mon Sep 16 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-1
Laura Abbott 0dec60
- Linux v5.3.0
Laura Abbott 0dec60
Laura Abbott f19c81
* Tue Sep 10 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc8.git0.1
Laura Abbott f19c81
- Linux v5.3-rc8.git0
Laura Abbott f19c81
Laura Abbott 3c1bce
* Tue Sep 03 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc7.git0.1
Laura Abbott 3c1bce
- Linux v5.3-rc7.git0
Laura Abbott 3c1bce
Laura Abbott 8aa07c
* Mon Aug 26 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc6.git0.1
Laura Abbott 8aa07c
- Linux v5.3-rc6.git0
Laura Abbott 8aa07c
Miro Hrončok 5236e3
* Wed Aug 21 2019 Miro Hrončok <mhroncok@redhat.com> - 5.3.0-0.rc5.git0.2
Miro Hrončok 5236e3
- Rebuilt for Python 3.8
Miro Hrončok 5236e3
Laura Abbott 9f192d
* Mon Aug 19 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc5.git0.1
Laura Abbott 9f192d
- Linux v5.3-rc5.git0
Laura Abbott 9f192d
Miro Hrončok 842e1c
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 5.3.0-0.rc4.git0.2
Miro Hrončok 842e1c
- Rebuilt for Python 3.8
Miro Hrončok 842e1c
Laura Abbott 1a226d
* Tue Aug 13 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc4.git0.1
Laura Abbott 1a226d
- Linux v5.3-rc4.git0
Laura Abbott 1a226d
Laura Abbott fd37d3
* Mon Aug 05 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc3.git0.1
Laura Abbott fd37d3
- Linux v5.3-rc3.git0
Laura Abbott fd37d3
Laura Abbott 68b1df
* Mon Jul 29 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc2.git0.1
Laura Abbott 68b1df
- Linux v5.3-rc2.git0
Laura Abbott 68b1df
Fedora Release Engineering 907165
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.0-0.rc1.git0.2
Fedora Release Engineering 907165
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Fedora Release Engineering 907165
Laura Abbott 8a6c47
* Sun Jul 21 2019 Laura Abbott <labbott@redhat.com> - 5.3.0-0.rc1.git0.1
Laura Abbott 8a6c47
- Linux v5.3-rc1.git0
Laura Abbott 8a6c47
Justin M. Forbes b2038a
* Mon Jul 08 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-1
Justin M. Forbes b2038a
- Linux v5.2.0
Justin M. Forbes b2038a
Justin M. Forbes a26dc5
* Mon Jul 01 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-0.rc7.git0.1
Justin M. Forbes a26dc5
- Linux v5.2-rc7.git0
Justin M. Forbes a26dc5
Justin M. Forbes fc8bbb
* Mon Jun 24 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-0.rc6.git0.1
Justin M. Forbes fc8bbb
- Linux v5.2-rc6.git0
Justin M. Forbes fc8bbb
Justin M. Forbes 56cf09
* Mon Jun 17 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-0.rc5.git0.1
Justin M. Forbes 56cf09
- Linux v5.2-rc5.git0
Justin M. Forbes 56cf09
Justin M. Forbes 3e0c35
* Mon Jun 10 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-0.rc4.git0.1
Justin M. Forbes 3e0c35
- Linux v5.2-rc4.git0
Justin M. Forbes 3e0c35
0330b1
* Tue Jun 04 2019 Jitka Plesnikova <jplesnik@redhat.com> - 5.2.0-0.rc3.git0.3
0330b1
- Perl 5.30 re-rebuild updated packages
0330b1
Justin M. Forbes 69820f
* Mon Jun 03 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-0.rc3.git0.1
Justin M. Forbes 69820f
- Linux v5.2-rc3.git0
Justin M. Forbes 69820f
2fb502
* Sat Jun 01 2019 Jitka Plesnikova <jplesnik@redhat.com> - 5.2.0-0.rc2.git0.2
2fb502
- Perl 5.30 rebuild
2fb502
Justin M. Forbes 24449f
* Mon May 27 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-rc2.git0.1
Justin M. Forbes 24449f
- Linux v5.2-rc2.git0
Justin M. Forbes 24449f
Justin M. Forbes 49b7b0
* Mon May 20 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.0-rc1.git0.1
Justin M. Forbes 49b7b0
- Linux v5.2-rc1.git0
Justin M. Forbes 49b7b0
Jeremy Cline 481a8d
* Mon May 06 2019 Jeremy Cline <jcline@redhat.com> - 5.1.0-1
Jeremy Cline 481a8d
- Linux v5.1
Jeremy Cline 481a8d
Jeremy Cline 7457e3
* Mon Apr 29 2019 Jeremy Cline <jcline@redhat.com> - 5.1.0-0.rc7.git0.1
Jeremy Cline 7457e3
- Linux v5.1-rc7
Jeremy Cline 7457e3
Jeremy Cline 38d260
* Mon Apr 22 2019 Jeremy Cline <jcline@redhat.com> - 5.1.0-0.rc6.git0.1
Jeremy Cline 38d260
- Linux v5.1-rc6
Jeremy Cline 38d260
Jeremy Cline 23d1db
* Tue Apr 16 2019 Jeremy Cline <jcline@redhat.com> - 5.1.0-0.rc5.git0.1
Jeremy Cline 23d1db
- Linux v5.1-rc5
Jeremy Cline 23d1db
Jeremy Cline 591b06
* Mon Apr 08 2019 Jeremy Cline <jcline@redhat.com> - 5.1.0-0.rc4.git0.1
Jeremy Cline 591b06
- Linux v5.1-rc4
Jeremy Cline 591b06
Jiri Olsa ad01cd
* Tue Apr 02 2019 Jiri Olsa <jolsa@redhat.com> - 5.1.0-0.rc3.git0.2
Jiri Olsa ad01cd
- Add libbpf, libbpf-devel and libbpf-debuginfo packages
Jiri Olsa ad01cd
Jeremy Cline f9fa48
* Mon Apr 01 2019 Jeremy Cline <jeremy@jcline.org> - 5.1.0-0.rc3.git0.1
Jeremy Cline f9fa48
- Linux v5.1-rc3
Jeremy Cline f9fa48
Jeremy Cline 8f5e3b
* Mon Mar 18 2019 Jeremy Cline <jeremy@jcline.org> - 5.1.0-0.rc2.git0.1
Jeremy Cline 8f5e3b
- Linux v5.1-rc2
Jeremy Cline 8f5e3b
Jeremy Cline e2ab00
* Mon Mar 18 2019 Jeremy Cline <jeremy@jcline.org> - 5.1.0-0.rc1.git0.1
Jeremy Cline e2ab00
- Linux v5.1-rc1
Jeremy Cline e2ab00
Laura Abbott 2e85c5
* Mon Mar 04 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-1
Laura Abbott 2e85c5
- Linux v5.0.0
Laura Abbott 2e85c5
Laura Abbott 36dd31
* Mon Feb 25 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc8.git0.1
Laura Abbott 36dd31
- Linux v5.0-rc8
Laura Abbott 36dd31
Laura Abbott 98cecf
* Sun Feb 17 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc7.git0.1
Laura Abbott 98cecf
- Linux v5.0-rc7
Laura Abbott 98cecf
Laura Abbott 98cecf
* Mon Feb 11 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc6.git0.1
Laura Abbott 274a1f
- Linux v5.0-rc6
Laura Abbott 274a1f
Laura Abbott 2b9bcc
* Mon Feb 04 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc5.git0.1
Laura Abbott 2b9bcc
- Linux v5.0-rc5
Laura Abbott 2b9bcc
Fedora Release Engineering 887d65
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-0.rc4.git0.2
Fedora Release Engineering 887d65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Fedora Release Engineering 887d65
Laura Abbott 6702e4
* Fri Jan 25 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc4.git0.1
Laura Abbott 6702e4
- Linux v5.0-rc4
Laura Abbott 6702e4
Laura Abbott 0c7956
* Fri Jan 25 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc3.git0.2
Laura Abbott 0c7956
- Rebuild for gcc9
Laura Abbott 0c7956
Laura Abbott 12477b
* Mon Jan 14 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc3.git0.1
Laura Abbott 12477b
- Linux v5.0-rc3
Laura Abbott 12477b
Laura Abbott 08daf3
* Mon Jan 14 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc2.git0.1
Laura Abbott 08daf3
- Linux v5.0-rc2
Laura Abbott 08daf3
Miro Hrončok a83bd2
* Thu Jan 10 2019 Miro Hrončok <mhroncok@redhat.com> - 5.0.0-0.rc1.git0.2
Miro Hrončok a83bd2
- Remove Python 2 subpackage
Miro Hrončok a83bd2
Laura Abbott 6b9c3e
* Mon Jan 07 2019 Laura Abbott <labbott@redhat.com> - 5.0.0-0.rc1.git0.1
Laura Abbott 6b9c3e
- Linux v5.0-rc1
Laura Abbott 6b9c3e
Justin M. Forbes df5674
* Mon Dec 24 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-1
Justin M. Forbes df5674
- Linux v4.20.0
Justin M. Forbes df5674
Justin M. Forbes 2d79f3
* Mon Dec 17 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc7.git0.1
Justin M. Forbes 2d79f3
- Linux v4.20-rc7
Justin M. Forbes 2d79f3
Justin M. Forbes 8b7aa4
* Mon Dec 10 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc6.git0.1
Justin M. Forbes 8b7aa4
- Linux v4.20-rc6
Justin M. Forbes 8b7aa4
Justin M. Forbes 65ff60
* Mon Dec 03 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc5.git0.1
Justin M. Forbes 65ff60
- Linux v4.20-rc5
Justin M. Forbes 65ff60
Justin M. Forbes f5f487
* Mon Nov 26 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc4.git0.1
Justin M. Forbes f5f487
- Linux v4.20-rc4
Justin M. Forbes f5f487
Jeremy Cline 50e939
* Mon Nov 19 2018 Jeremy Cline <jeremy@jcline.org> - 4.20.0-0.rc3.git0.1
Jeremy Cline 50e939
- Linux v4.20-rc3
Jeremy Cline 50e939
Justin M. Forbes 0f01a6
* Sun Nov 11 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc2.git0.1
Justin M. Forbes 0f01a6
- Linux v4.20-rc2
Justin M. Forbes 0f01a6
Justin M. Forbes 901bda
* Mon Nov 05 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.20.0-0.rc1.git0.1
Justin M. Forbes 901bda
- Linux v4.20-rc1