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
Justin M. Forbes 38be65
# this should go away soon
Justin M. Forbes 38be65
%define _legacy_common_support 1
Justin M. Forbes 38be65
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.
Justin M. Forbes 02ca1d
%global released_kernel 0
Justin M. Forbes 8908fb
%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.
Justin M. Forbes 7e4b53
%global base_sublevel 12
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
Justin M. Forbes fc4f54
%global rcrev 7
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 96c899
# perf needs this
Laura Abbott 96c899
%undefine _strict_symbol_defs_build
Laura Abbott 96c899
Peter Robinson deb07c
BuildRequires: kmod, patch, bash, tar, git-core
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
Peter Robinson deb07c
BuildRequires: audit-libs-devel glibc-devel glibc-headers glibc-static python3-devel java-devel
Justin M. Forbes 060b6f
BuildRequires: asciidoc xmlto libcap-devel
Justin M. Forbes 41e362
BuildRequires: opencsd-devel openssl-devel libbabeltrace-devel libtraceevent-devel
Justin M. Forbes 348504
BuildRequires: libbpf-devel
Justin M. Forbes 41e362
BuildRequires: clang llvm
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
Justin M. Forbes ddf2b5
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
Michael Petlan 08f5d2
%package -n libperf
Michael Petlan 08f5d2
Summary: The perf library from kernel source
Michael Petlan 08f5d2
License: GPLv2
Michael Petlan 08f5d2
%description -n libperf
Michael Petlan 08f5d2
This package contains the kernel source perf library.
Michael Petlan 08f5d2
Michael Petlan 08f5d2
%package -n libperf-devel
Michael Petlan 08f5d2
Summary: Developement files for the perf library from kernel source
Michael Petlan 08f5d2
License: GPLv2
Michael Petlan 08f5d2
%description -n libperf-devel
Michael Petlan 08f5d2
This package includes libraries and header files needed for development
Michael Petlan 08f5d2
of applications which use perf library from kernel source.
Michael Petlan 08f5d2
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
Justin M. Forbes 8decc7
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" tools/ tools/perf/scripts/python/*.py scripts/clang-tools
Jeremy Cline 45f8f0
Laura Abbott a8f134
###
Laura Abbott a8f134
### build
Laura Abbott a8f134
###
Laura Abbott a8f134
%build
Jeff Law 871f38
# The kernel tools build with -ggdb3 which seems to interact badly with LTO
Jeff Law 871f38
# causing various errors with references to discarded sections and symbol
Jeff Law 871f38
# type errors from the LTO plugin.  Until those issues are addressed
Jeff Law 871f38
# disable LTO
Jeff Law 871f38
%define _lto_cflags %{nil}
Laura Abbott a8f134
Laura Abbott a8f134
cd linux-%{kversion}
Laura Abbott a8f134
Laura Abbott a8f134
%global perf_make \
Justin M. Forbes 9ea9b4
  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 LIBBPF_DYNAMIC=1 LIBTRACEEVENT_DYNAMIC=1 CORESIGHT=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
Justin M. Forbes 0f1396
   pushd tools/power/x86/intel-speed-select
Justin M. Forbes 0f1396
   %{tools_make} CFLAGS+="-D_GNU_SOURCE -Iinclude"
Justin M. Forbes 0f1396
   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
Michael Petlan 08f5d2
pushd tools/lib/perf
Michael Petlan 08f5d2
make V=1
Michael Petlan 08f5d2
popd
Laura Abbott a8f134
Jeremy Cline ea76b6
# Build the docs
Jeremy Cline ea76b6
pushd tools/kvm/kvm_stat/
Tom Stellard 55a12a
%make_build man
Jeremy Cline ea76b6
popd
Jeremy Cline ea76b6
pushd tools/perf/Documentation/
Tom Stellard 55a12a
%make_build 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
Justin M. Forbes 9ea9b4
%{perf_make} %{perf_python3} DESTDIR=%{buildroot} lib=%{_lib} install-bin
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
Justin M. Forbes 0f1396
   pushd tools/power/x86/intel-speed-select
Justin M. Forbes 0f1396
   %{tools_make} CFLAGS+="-D_GNU_SOURCE -Iinclude" DESTDIR=%{buildroot} install
Justin M. Forbes 0f1396
   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
Jiri Olsa d0f955
popd
Michael Petlan 08f5d2
pushd tools/lib/perf
Michael Petlan 08f5d2
make DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{_libdir} V=1 install install_headers
Michael Petlan 08f5d2
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
Justin M. Forbes 9ea9b4
%exclude %{_libdir}/traceevent
Justin M. Forbes 0d340f
%{_libdir}/libperf-jvmti.so
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*
Justin M. Forbes 0f1396
%{_bindir}/intel-speed-select
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
Justin M. Forbes 7d5b44
%{_bindir}/gpio-watch
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
Jeremy Cline 4e0cf7
%{_mandir}/man8/bpftool-gen.8.gz
Justin M. Forbes 204fef
%{_mandir}/man8/bpftool-iter.8.gz
Justin M. Forbes 204fef
%{_mandir}/man8/bpftool-link.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
Justin M. Forbes 7d5b44
%{_mandir}/man8/bpftool-struct_ops.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
Michael Petlan 08f5d2
%files -n libperf
Michael Petlan 08f5d2
%{_libdir}/libperf.so.0
Michael Petlan 08f5d2
%{_libdir}/libperf.so.0.0.1
Michael Petlan 08f5d2
%license linux-%{kversion}/COPYING
Michael Petlan 08f5d2
Michael Petlan 08f5d2
%files -n libperf-devel
Michael Petlan 08f5d2
%{_libdir}/libperf.a
Michael Petlan 08f5d2
%{_libdir}/libperf.so
Michael Petlan 08f5d2
%{_libdir}/pkgconfig/libperf.pc
Michael Petlan 08f5d2
%{_includedir}/perf/core.h
Michael Petlan 08f5d2
%{_includedir}/perf/cpumap.h
Michael Petlan 08f5d2
%{_includedir}/perf/event.h
Michael Petlan 08f5d2
%{_includedir}/perf/evlist.h
Michael Petlan 08f5d2
%{_includedir}/perf/evsel.h
Michael Petlan 08f5d2
%{_includedir}/perf/mmap.h
Michael Petlan 08f5d2
%{_includedir}/perf/threadmap.h
Michael Petlan 08f5d2
%{_mandir}/man3/libperf.3.gz
Michael Petlan 08f5d2
%{_mandir}/man7/libperf-counting.7.gz
Michael Petlan 08f5d2
%{_mandir}/man7/libperf-sampling.7.gz
Michael Petlan 08f5d2
%{_docdir}/libperf/examples/sampling.c
Michael Petlan 08f5d2
%{_docdir}/libperf/examples/counting.c
Michael Petlan 08f5d2
%{_docdir}/libperf/html/libperf.html
Michael Petlan 08f5d2
%{_docdir}/libperf/html/libperf-counting.html
Michael Petlan 08f5d2
%{_docdir}/libperf/html/libperf-sampling.html
Michael Petlan 08f5d2
%license linux-%{kversion}/COPYING
Michael Petlan 08f5d2
Laura Abbott a8f134
%changelog
Justin M. Forbes fc4f54
* Mon Jun 21 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.13.0-0.rc7.git0.1
Justin M. Forbes fc4f54
- Linux v5.13-rc7
Justin M. Forbes fc4f54
Justin M. Forbes a6c05f
* Tue Jun 15 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.13.0-0.rc6.git0.1
Justin M. Forbes a6c05f
- Linux v5.13-rc6
Justin M. Forbes a6c05f
Justin M. Forbes 8908fb
* Mon Jun 07 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.13.0-0.rc5.git0.1
Justin M. Forbes 8908fb
- Linux v5.13-rc5
Justin M. Forbes 8908fb
Python Maint ba03c0
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 5.13.0-0.rc4.git0.2
Python Maint ba03c0
- Rebuilt for Python 3.10
Python Maint ba03c0
Justin M. Forbes 61f218
* Tue Jun 01 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.13.0-0.rc4.git0.1
Justin M. Forbes 61f218
- Linux v5.13-rc4
Justin M. Forbes 61f218
cf5ee4
* Tue May 25 2021 Jitka Plesnikova <jplesnik@redhat.com> - 5.13.0-0.rc3.git0.2
cf5ee4
- Perl 5.34 re-rebuild updated packages
cf5ee4
Justin M. Forbes 74c1c5
* Mon May 24 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.13.0-0.rc3.git0.1
Justin M. Forbes 74c1c5
- Linux v5.13-rc3
Justin M. Forbes 74c1c5
87150d
* Sat May 22 2021 Jitka Plesnikova <jplesnik@redhat.com> - 5.13.0-0.rc2.git0.2
87150d
- Perl 5.34 rebuild
87150d
Justin M. Forbes a14a56
* Mon May 17 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.13.0-0.rc2.git0.1
Justin M. Forbes a14a56
- Linux v5.13-rc2
Justin M. Forbes a14a56
Justin M. Forbes 348504
* Mon May 10 2021 Justin M. Forbes <jforbes@fedoraproject.org>
Justin M. Forbes 348504
- perf: enable dynamic linking of libbpf
Justin M. Forbes 348504
Justin M. Forbes 02ca1d
* Mon May 10 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.13.0-0.rc1.git0.1
Justin M. Forbes 02ca1d
- Linux v5.13-rc1
Justin M. Forbes 02ca1d
Jiri Olsa b71a5f
* Thu May 06 2021 Jiri Olsa <jolsa@jolsa@redhat.com>
Jiri Olsa b71a5f
- Remove libbpf package
Jiri Olsa b71a5f
Justin M. Forbes 0f1396
* Thu May 06 2021 Justin M. Forbes <jforbes@fedoraproject.org>
Justin M. Forbes 0f1396
- Build and package intel-speed-select (rhbz 1882427)
Justin M. Forbes 0f1396
Justin M. Forbes 7e4b53
* Tue Apr 27 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.12.0-1
Justin M. Forbes 7e4b53
- Linux v5.12
Justin M. Forbes 7e4b53
Justin M. Forbes 99eeca
* Mon Apr 19 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.12.0-0.rc8.git0.1
Justin M. Forbes 99eeca
- Linux v5.12-rc8
Justin M. Forbes 99eeca
Justin M. Forbes 45e658
* Mon Apr 12 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.12.0-0.rc7.git0.1
Justin M. Forbes 45e658
- Linux v5.12-rc7
Justin M. Forbes 45e658
Justin M. Forbes 7396c8
* Mon Apr 05 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.12.0-0.rc6.git0.1
Justin M. Forbes 7396c8
- Linux v5.12-rc6
Justin M. Forbes 7396c8
Justin M. Forbes b2cdb0
* Mon Mar 29 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.12.0-0.rc5.git0.1
Justin M. Forbes b2cdb0
- Linux v5.12-rc5
Justin M. Forbes b2cdb0
Justin M. Forbes f98d00
* Mon Mar 22 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.12.0-0.rc4.git0.1
Justin M. Forbes f98d00
- Linux v5.12-rc4
Justin M. Forbes f98d00
Justin M. Forbes 5bd914
* Mon Mar 15 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.12.0-0.rc3.git0.1
Justin M. Forbes 5bd914
- Linux v5.12-rc3
Justin M. Forbes 5bd914
Justin M. Forbes 61393d
* Sat Mar 06 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.12.0-0.rc2.git0.1
Justin M. Forbes 61393d
- Linux v5.12-rc2
Justin M. Forbes 61393d
Justin M. Forbes faab1a
* Mon Mar 01 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.12.0-0.rc1.git0.1
Justin M. Forbes faab1a
- Linux v5.12-rc1
Justin M. Forbes faab1a
Justin M. Forbes cb3784
* Mon Feb 15 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.11.0-1
Justin M. Forbes cb3784
- Linux v5.11.0
Justin M. Forbes cb3784
Justin M. Forbes a23af1
* Mon Feb 08 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.11.0-0.rc7.git0.1
Justin M. Forbes a23af1
- Linux v5.11-rc7
Justin M. Forbes a23af1
Justin M. Forbes f2842f
* Mon Feb 01 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.11.0-0.rc6.git0.1
Justin M. Forbes f2842f
- Linux v5.11-rc6
Justin M. Forbes f2842f
Fedora Release Engineering c65690
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.11.0-0.rc5.git0.2
Fedora Release Engineering c65690
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Fedora Release Engineering c65690
Justin M. Forbes 6f6df3
* Mon Jan 25 08:51:17 CST 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.11.0-0.rc5.git0.1
Justin M. Forbes 6f6df3
- Linux v5.11-rc5
Justin M. Forbes 6f6df3
Justin M. Forbes dd3f4b
* Mon Jan 18 00:43:18 CST 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.11.0-0.rc4.git0.1
Justin M. Forbes dd3f4b
- Linux v5.11-rc4
Justin M. Forbes dd3f4b
Justin M. Forbes 17bd0a
* Mon Jan  4 15:19:01 CST 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.11.0-0.rc2.git0.1
Justin M. Forbes 17bd0a
- Linux v5.11-rc2
Justin M. Forbes 17bd0a
Justin M. Forbes 4efdc9
* Mon Dec 14 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.10.0-1
Justin M. Forbes 4efdc9
- Linux v5.10
Justin M. Forbes 4efdc9
Justin M. Forbes f672a5
* Mon Dec  7 10:29:33 CST 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.10.0-0.rc7.git0.1
Justin M. Forbes f672a5
- Linux v5.10-rc7
Justin M. Forbes f672a5
Justin M. Forbes ca425c
* Mon Nov 30 10:23:29 CST 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.10.0-0.rc6.git0.1
Justin M. Forbes ca425c
- Linux v5.10-rc6
Justin M. Forbes ca425c
Justin M. Forbes df202f
* Mon Nov 23 11:27:03 CST 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.10.0-0.rc5.git0.1
Justin M. Forbes df202f
- Linux v5.10-rc5
Justin M. Forbes df202f
Justin M. Forbes e3ab17
* Mon Nov 16 10:53:16 CST 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.10.0-0.rc4.git0.1
Justin M. Forbes e3ab17
- Linux v5.10-rc4
Justin M. Forbes e3ab17
Justin M. Forbes b5c9a4
* Mon Nov  9 11:25:26 CST 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.10.0-0.rc3.git0.1
Justin M. Forbes b5c9a4
- Linux v5.10-rc3
Justin M. Forbes b5c9a4
Justin M. Forbes 8bde0e
* Tue Nov  3 11:07:22 CST 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.10.0-0.rc2.git0.1
Justin M. Forbes 8bde0e
- Linux v5.10-rc2
Justin M. Forbes 8bde0e
Justin M. Forbes 8decc7
* Mon Oct 26 10:23:46 CDT 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.10.0-0.rc1.git0.1
Justin M. Forbes 8decc7
- Linux v5.10-rc1
Justin M. Forbes 8decc7
Justin M. Forbes 158df2
* Mon Oct 12 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.9.0-1
Justin M. Forbes 158df2
- Linux v5.9.0
Justin M. Forbes 158df2
Justin M. Forbes 3455d1
* Mon Oct  5 14:55:47 CDT 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.9.0-0.rc8.git0.1
Justin M. Forbes 3455d1
- Linux v5.9-rc8
Justin M. Forbes 3455d1
Justin M. Forbes c88cb8
* Mon Sep 28 16:49:41 CDT 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.9.0-0.rc7.git0.1
Justin M. Forbes c88cb8
- Linux v5.9-rc7
Justin M. Forbes c88cb8
Justin M. Forbes 5e117e
* Mon Sep 21 10:05:53 CDT 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.9.0-0.rc6.git0.1
Justin M. Forbes 5e117e
- Linux v5.9-rc6
Justin M. Forbes 5e117e
Justin M. Forbes ada726
* Tue Sep 15 08:33:45 CDT 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.9.0-0.rc5.git0.1
Justin M. Forbes ada726
- Linux v5.9-rc5
Justin M. Forbes ada726
Justin M. Forbes 4f325f
* Thu Sep 10 11:29:45 CDT 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.9.0-0.rc4.git0.1
Justin M. Forbes 4f325f
- Linux v5.9-rc4
Justin M. Forbes 4f325f
Justin M. Forbes 4f325f
* Mon Aug 31 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.9.0-0.rc3.git0.1
Justin M. Forbes 4f325f
- Linux v5.9-rc3
Justin M. Forbes 4f325f
Justin M. Forbes f04bbe
* Tue Aug 25 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.9.0-0.rc2.git0.1
Justin M. Forbes f04bbe
- Linux v5.9-rc2
Justin M. Forbes f04bbe
Justin M. Forbes e7166f
* Mon Aug 17 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.9.0-0.rc1.git0.1
Justin M. Forbes e7166f
- Linux v5.9-rc1
Justin M. Forbes e7166f
Justin M. Forbes d9bf9e
* Mon Aug 03 2020 Justin M. Forbes <jforbes@fedoraproject.org> - 5.8.0-1
Justin M. Forbes d9bf9e
- Linux v5.8.0