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.
Justin M. Forbes 1ed133
%global released_kernel 0
Justin M. Forbes a75f52
%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 bf17e0
%global base_sublevel 17
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 1ed133
%global rcrev 1
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 232394
BuildRequires: openssl-devel libbabeltrace-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
Justin M. Forbes 232394
%ifarch aarch64
Justin M. Forbes 232394
BuildRequires: opencsd-devel >= 1.0.0
Justin M. Forbes 232394
%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
Justin M. Forbes 1ed133
Patch1: 0001-Fix-build-flag-passing-for-intel-speed-select.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
Justin M. Forbes 1ed133
%patch1 -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
Justin M. Forbes 232394
%ifarch aarch64
Justin M. Forbes 232394
%global perf_build_extra_opts CORESIGHT=1
Justin M. Forbes 232394
%endif
Justin M. Forbes 232394
Laura Abbott a8f134
%global perf_make \
Justin M. Forbes 232394
  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 %{?perf_build_extra_opts} 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 1ed133
   %{tools_make} CFLAGS+="-D_GNU_SOURCE -Iinclude -I/usr/include/libnl3"
Justin M. Forbes 0f1396
   popd
Justin M. Forbes 8b6887
%endif
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 \
Justin M. Forbes 5f91e0
  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 1ed133
   %{tools_make} CFLAGS+="-D_GNU_SOURCE -Iinclude -I/usr/include/libnl3" DESTDIR=%{buildroot} install
Justin M. Forbes 0f1396
   popd
Justin M. Forbes 8b6887
%endif
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
Justin M. Forbes a8639a
%{_includedir}/perf/perf_dlfilter.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 1ed133
* Mon Apr 04 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.18.0-0.rc1.git0.1
Justin M. Forbes 1ed133
- Linux v5.18-rc1
Justin M. Forbes 1ed133
Justin M. Forbes bf17e0
* Mon Mar 21 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.17.0-1
Justin M. Forbes bf17e0
- Linux v5.17.0
Justin M. Forbes bf17e0
Justin M. Forbes 0ac5ea
* Mon Mar 14 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.17.0-0.rc8.git0.1
Justin M. Forbes 0ac5ea
- Linux v5.17-rc8
Justin M. Forbes 0ac5ea
Justin M. Forbes 8b6887
* Mon Mar 07 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.17.0-0.rc7.git0.1
Justin M. Forbes 8b6887
- Linux v5.17-rc7
Justin M. Forbes 8b6887
Justin M. Forbes 20cc21
* Mon Feb 28 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.17.0-0.rc6.git0.1
Justin M. Forbes 20cc21
- Linux v5.17-rc6
Justin M. Forbes 20cc21
Justin M. Forbes a75f52
* Mon Feb 21 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.17.0-0.rc5.git0.1
Justin M. Forbes a75f52
- Linux v5.17-rc5
Justin M. Forbes 232394
- Temporarily stop libtraceevent dynamic until I can figure out why i686 doesn't build.
Justin M. Forbes 232394
- Make coresight aarch64 only.
Justin M. Forbes a75f52
Justin M. Forbes 1c0e26
* Wed Feb 16 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.17.0-0.rc4.git0.2
Justin M. Forbes 1c0e26
- Bump for rebuild with libtraceevent update
Justin M. Forbes 1c0e26
Justin M. Forbes f70e12
* Mon Feb 14 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.17.0-0.rc4.git0.1
Justin M. Forbes f70e12
- Linux v5.17-rc4
Justin M. Forbes f70e12
Justin M. Forbes 854cc8
* Mon Feb 07 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.17.0-0.rc3.git0.1
Justin M. Forbes 854cc8
- Linux v5.17-rc3
Justin M. Forbes 854cc8
Jiri 02243a
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 5.17.0-0.rc2.git0.2
Jiri 02243a
- Rebuilt for java-17-openjdk as system jdk
Jiri 02243a
Justin M. Forbes c0c870
* Sun Jan 30 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.17.0-0.rc2.git0.1
Justin M. Forbes c0c870
- Linux v5.17-rc2
Justin M. Forbes c0c870
Justin M. Forbes c0c870
* Mon Jan 24 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.17.0-0.rc1.git0.1
Justin M. Forbes c0c870
- Linux v5.17-rc1
Justin M. Forbes c0c870
Fedora Release Engineering 23e9f5
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.16.0-2
Fedora Release Engineering 23e9f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Fedora Release Engineering 23e9f5
Justin M. Forbes 01cc9d
* Mon Jan 10 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.16.0-1
Justin M. Forbes 01cc9d
- Linux v5.16
Justin M. Forbes 01cc9d
Justin M. Forbes 5ccde9
* Mon Jan 03 2022 Justin M. Forbes <jforbes@fedoraproject.org> - 5.16.0-0.rc8.git0.1
Justin M. Forbes 5ccde9
- Linux v5.16-rc8
Justin M. Forbes 5ccde9
Justin M. Forbes 5b5b76
* Mon Dec 27 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.16.0-0.rc7.git0.1
Justin M. Forbes 5b5b76
- Linux v5.16-rc7
Justin M. Forbes 5b5b76
Justin M. Forbes a12715
* Mon Dec 20 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.16.0-0.rc6.git0.1
Justin M. Forbes a12715
- Linux v5.16-rc6
Justin M. Forbes a12715
Justin M. Forbes 2b4dd6
* Mon Dec 13 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.16.0-0.rc5.git0.1
Justin M. Forbes 2b4dd6
- Linux v5.16-rc5
Justin M. Forbes 2b4dd6
Justin M. Forbes e69719
* Mon Dec 06 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.16.0-0.rc4.git0.1
Justin M. Forbes e69719
- Linux v5.16-rc4
Justin M. Forbes e69719
Justin M. Forbes 543cda
* Mon Nov 15 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.16.0-0.rc1.git0.1
Justin M. Forbes 543cda
- Linux v5.16-rc1
Justin M. Forbes 543cda
Justin M. Forbes 01cf8c
* Mon Nov 01 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.15.0-1
Justin M. Forbes 01cf8c
- Linux v5.15
Justin M. Forbes 01cf8c
Justin M. Forbes e64728
* Tue Oct 26 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.15.0-0.rc7.git0.1
Justin M. Forbes e64728
- Linux v5.15-rc7
Justin M. Forbes e64728
Justin M. Forbes 3b9a79
* Mon Oct 18 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.15.0-0.rc6.git0.1
Justin M. Forbes 3b9a79
- Linux v5.15-rc6
Justin M. Forbes 3b9a79
Justin M. Forbes 92bfe6
* Mon Oct 11 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.15.0-0.rc5.git0.1
Justin M. Forbes 92bfe6
- Linux v5.15-rc5
Justin M. Forbes 92bfe6
Justin M. Forbes 51694e
* Mon Oct 04 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.15.0-0.rc4.git0.1
Justin M. Forbes 51694e
- Linux v5.15-rc4
Justin M. Forbes 51694e
Justin M. Forbes 51694e
* Mon Oct 04 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.15.0-0.rc3.git0.1
Justin M. Forbes 51694e
- Linux v5.15-rc3
Justin M. Forbes 51694e
Justin M. Forbes 78a6dc
* Mon Sep 20 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.15.0-0.rc2.git0.1
Justin M. Forbes 78a6dc
- Linux v5.15-rc2
Justin M. Forbes 78a6dc
Justin M. Forbes fb3f02
* Mon Sep 13 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.15.0-0.rc1.git0.1
Justin M. Forbes fb3f02
- Linux v5.15-rc1
Justin M. Forbes fb3f02
Justin M. Forbes 26c2f2
* Mon Aug 30 2021 Justin M. Forbes <jforbes@fedoraproject.org> - 5.14.0-1
Justin M. Forbes 26c2f2
- Linux v5.14.0