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.
Laura Abbott 6b9c3e
%global released_kernel 0
Miro Hrončok a83bd2
%global baserelease 2
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.
Laura Abbott 6b9c3e
%global base_sublevel 0
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 6b9c3e
# %global upstream_sublevel %(echo $((%{base_sublevel} + 1)))
Laura Abbott 6b9c3e
%global upstream_sublevel 0
Laura Abbott 6b9c3e
Laura Abbott a8f134
# The rc snapshot level
Laura Abbott 6b9c3e
%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 6b9c3e
# %global kversion 5.%{base_sublevel}
Laura Abbott 6b9c3e
%global kversion 5.%{base_sublevel}-rc%rcrev
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 6b9c3e
# Source0: https://www.kernel.org/pub/linux/kernel/v4.x/linux-%{kversion}.tar.xz
Laura Abbott 6b9c3e
Source0: https://git.kernel.org/torvalds/t/linux-5.0-rc1.tar.gz
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 6b9c3e
#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
Patch1: 0001-perf-Remove-FSF-address.patch
Laura Abbott a8f134
Patch3: 0001-tools-include-Sync-vmx.h-header-for-FSF-removal.patch
Laura Abbott a8f134
Patch4: 0001-tools-lib-Remove-FSF-address.patch
Laura Abbott a8f134
Patch6: 0002-perf-Don-t-make-sourced-script-executable.patch
Laura Abbott 70df18
Patch7: 0001-tools-uapi-asm-Update-asm-generic-unistd.h.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
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
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
%patch1 -p1
Laura Abbott a8f134
%patch3 -p1
Laura Abbott a8f134
%patch4 -p1
Laura Abbott a8f134
%patch6 -p1
Laura Abbott 70df18
%patch7 -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 49a6b0
  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 NO_JVMTI=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 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 a8f134
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 a8f134
    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 a8f134
    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 a8f134
   make
Laura Abbott a8f134
   popd
Laura Abbott a8f134
   pushd tools/power/x86/turbostat
Laura Abbott a8f134
   make
Laura Abbott a8f134
   popd
Laura Abbott a8f134
%endif #turbostat/x86_energy_perf_policy
Laura Abbott a8f134
pushd tools/thermal/tmon/
Laura Abbott a8f134
make
Laura Abbott a8f134
popd
Laura Abbott a8f134
pushd tools/iio/
Laura Abbott a8f134
make
Laura Abbott a8f134
popd
Laura Abbott a8f134
pushd tools/gpio/
Laura Abbott a8f134
make
Laura Abbott a8f134
popd
Jiri Olsa d0f955
pushd tools/bpf/bpftool
Jiri Olsa d0f955
make
Jiri Olsa d0f955
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
# remove the perf-tips
Laura Abbott a8f134
rm -rf %{buildroot}%{_docdir}/perf-tip
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 a8f134
   make DESTDIR=%{buildroot} install
Laura Abbott a8f134
   popd
Laura Abbott a8f134
   pushd tools/power/x86/turbostat
Laura Abbott a8f134
   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 a8f134
make INSTALL_ROOT=%{buildroot} install
Laura Abbott a8f134
popd
Laura Abbott a8f134
pushd tools/iio
Laura Abbott a8f134
make DESTDIR=%{buildroot} install
Laura Abbott a8f134
popd
Laura Abbott a8f134
pushd tools/gpio
Laura Abbott a8f134
make DESTDIR=%{buildroot} install
Laura Abbott a8f134
popd
Laura Abbott a8f134
pushd tools/kvm/kvm_stat
Laura Abbott a8f134
make INSTALL_ROOT=%{buildroot} install-tools
Laura Abbott a8f134
popd
Jiri Olsa d0f955
pushd tools/bpf/bpftool
Jiri Olsa d0f955
make DESTDIR=%{buildroot} prefix=%{_prefix} bash_compdir=%{_sysconfdir}/bash_completion.d/ mandir=%{_mandir} install doc-install
Jiri Olsa d0f955
popd
Laura Abbott a8f134
Laura Abbott a8f134
###
Laura Abbott a8f134
### scripts
Laura Abbott a8f134
###
Laura Abbott a8f134
Laura Abbott a8f134
%post -n kernel-tools-libs -p /sbin/ldconfig
Laura Abbott a8f134
Laura Abbott a8f134
%postun -n kernel-tools-libs -p /sbin/ldconfig
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 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
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
Jiri Olsa d0f955
%{_mandir}/man8/bpftool.8.gz
Jeremy Cline 461167
%{_mandir}/man7/bpf-helpers.7.gz
Jiri Olsa d0f955
%license linux-%{kversion}/COPYING
Jiri Olsa d0f955
Laura Abbott a8f134
%changelog
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
Justin M. Forbes 901bda
Jeremy Cline 4ae04e
* Mon Oct 22 2018 Jeremy Cline <jeremy@jcline.org> - 4.19.0-1
Jeremy Cline 4ae04e
- Linux v4.19
Jeremy Cline 4ae04e
Jeremy Cline 5a31c3
* Mon Oct 15 2018 Jeremy Cline <jeremy@jcline.org> - 4.19.0-0.rc8.git0.1
Jeremy Cline 5a31c3
- Linux v4.19-rc7
Jeremy Cline 5a31c3
Jeremy Cline d7b5cf
* Mon Oct 08 2018 Jeremy Cline <jeremy@jcline.org> - 4.19.0-0.rc7.git0.1
Jeremy Cline d7b5cf
- Linux v4.19-rc7
Jeremy Cline d7b5cf
Jeremy Cline df54aa
* Tue Oct 02 2018 Jeremy Cline <jeremy@jcline.org> - 4.19.0-0.rc6.git0.1
Jeremy Cline df54aa
- Linux v4.19-rc6
Jeremy Cline df54aa
Jeremy Cline 4afec1
* Mon Sep 24 2018 Jeremy Cline <jeremy@jcline.org> - 4.19.0-0.rc5.git0.1
Jeremy Cline 4afec1
- Linux v4.19-rc5
Jeremy Cline 4afec1
Jeremy Cline e71205
* Mon Sep 17 2018 Jeremy Cline <jeremy@jcline.org> - 4.19.0-0.rc4.git0.1
Jeremy Cline e71205
- Linux v4.19-rc4
Jeremy Cline e71205
Jeremy Cline 835692
* Mon Sep 10 2018 Jeremy Cline <jeremy@jcline.org> - 4.19.0-0.rc3.git0.1
Jeremy Cline 835692
- Linux v4.19-rc3
Jeremy Cline 835692
Jeremy Cline edf9fd
* Mon Sep 03 2018 Jeremy Cline <jeremy@jcline.org> - 4.19.0-0.rc2.git0.1
Jeremy Cline edf9fd
- Linux v4.19-rc2
Jeremy Cline edf9fd
Jeremy Cline 461167
* Mon Aug 27 2018 Jeremy Cline <jeremy@jcline.org> - 4.19.0-0.rc1.git0.1
Jeremy Cline 461167
- Linux v4.19-rc1
Jeremy Cline 461167
Laura Abbott 36d94d
* Mon Aug 13 2018 Laura Abbott <labbott@redhat.com> - 4.18.0-1
Laura Abbott 36d94d
- Linux v4.18
Laura Abbott 36d94d
Laura Abbott 1ae616
* Mon Aug 06 2018 Laura Abbott <labbott@redhat.com> - 4.18.0-0.rc8.git0.1
Laura Abbott 1ae616
- Linux v4.18-rc8
Laura Abbott 1ae616
Laura Abbott 938fc9
* Mon Jul 16 2018 Laura Abbott <labbott@redhat.com> - 4.18.0-0.rc6.git0.1
Laura Abbott 938fc9
- Linux v4.18-rc6
Laura Abbott 938fc9
Laura Abbott 828ac8
* Mon Jul 16 2018 Laura Abbott <labbott@redhat.com> - 4.18.0-0.rc5.git0.1
Laura Abbott 828ac8
- Linux v4.18-rc5
Laura Abbott 828ac8
Fedora Release Engineering 893060
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.18.0-0.rc4.git0.2
Fedora Release Engineering 893060
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Fedora Release Engineering 893060
Laura Abbott e990a2
* Mon Jul 09 2018 Laura Abbott <labbott@redhat.com> - 4.18.0-0.rc4.git0.1
Laura Abbott e990a2
- Linux v4.18-rc4
Laura Abbott e990a2
Petr Písař d007cb
* Tue Jul 03 2018 Petr Pisar <ppisar@redhat.com> - 4.18.0-0.rc3.git0.2
Petr Písař d007cb
- Perl 5.28 rebuild
Petr Písař d007cb
Laura Abbott e556ea
* Mon Jul 02 2018 Laura Abbott <labbott@redhat.com> - 4.18.0-0.rc3.git0.1
Laura Abbott e556ea
- Linux v4.18-rc3
Laura Abbott e556ea
Jeremy Cline a9f3f7
* Fri Jun 29 2018 Jeremy Cline <jcline@redhat.com> - 4.18.0-0.rc2.git0.3
Jeremy Cline a9f3f7
- Fix the build for Python 3.7 (rhbz 1593431)
Jeremy Cline a9f3f7
e3e5bb
* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 4.18.0-0.rc2.git0.2
e3e5bb
- Perl 5.28 rebuild
e3e5bb
Laura Abbott ab2e7a
* Mon Jun 25 2018 Laura Abbott <labbott@redhat.com> - 4.18.0-0.rc2.git0.1
Laura Abbott ab2e7a
- Linux v4.18-rc2
Laura Abbott ab2e7a
Miro Hrončok 4d9de7
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.18.0-0.rc1.git0.2
Miro Hrončok 4d9de7
- Rebuilt for Python 3.7
Miro Hrončok 4d9de7
Laura Abbott 6fb56e
* Mon Jun 18 2018 Laura Abbott <labbott@redhat.com> - 4.18.0-0.rc1.git0.1
Laura Abbott 6fb56e
- Linux v4.18-rc1
Laura Abbott 6fb56e
Justin M. Forbes 63543a
* Mon Jun 04 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.17.0-1
Justin M. Forbes 63543a
- Linux v4.17
Justin M. Forbes 63543a
Justin M. Forbes bb02e2
* Tue May 29 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.17.0-0.rc7.git0.1
Justin M. Forbes bb02e2
- Linux v4.17-rc7
Justin M. Forbes bb02e2
Justin M. Forbes 0d856d
* Tue May 22 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.17.0-0.rc6.git0.1
Justin M. Forbes 0d856d
- Linux v4.17-rc6
Justin M. Forbes 0d856d
Justin M. Forbes 5c9008
* Mon May 14 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.17.0-0.rc5.git0.1
Justin M. Forbes 5c9008
- Linux v4.17-rc5
Justin M. Forbes 5c9008
Justin M. Forbes fadb0b
* Mon May 07 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.17.0-0.rc4.git0.1
Justin M. Forbes fadb0b
- Linux v4.17-rc4
Justin M. Forbes fadb0b
Justin M. Forbes 7fa35d
* Mon Apr 23 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.17.0-0.rc2.git0.1
Justin M. Forbes 7fa35d
- Linux v4.17-rc2
Justin M. Forbes 7fa35d
Justin M. Forbes 0ca1f0
* Mon Apr 16 2018 Justin M. Forbes <jforbes@fedoraproject.org> - 4.17.0-0.rc1.git0.1
Justin M. Forbes 0ca1f0
- Linux v4.17-rc1
Justin M. Forbes 0ca1f0
Jeremy Cline 518ce3
* Mon Apr 02 2018 Jeremy Cline <jeremy@jcline.org> - 4.16.0-1
Jeremy Cline 518ce3
- Linux 4.16
Jeremy Cline 518ce3
- New bpftool sub-package
Jeremy Cline 518ce3
Jeremy Cline 690b0c
* Mon Mar 26 2018 Jeremy Cline <jeremy@jcline.org> - 4.16.0-0.rc7.git0.1
Jeremy Cline 690b0c
- Linux 4.16-rc7
Jeremy Cline 690b0c
Jeremy Cline 73e96e
* Mon Mar 19 2018 Jeremy Cline <jeremy@jcline.org> - 4.16.0-0.rc6.git0.1
Jeremy Cline 73e96e
- Linux 4.16-rc6
Jeremy Cline 73e96e
Jeremy Cline 5704a4
* Mon Mar 12 2018 Jeremy Cline <jeremy@jcline.org> - 4.16.0-0.rc5.git0.1
Jeremy Cline 5704a4
- Linux 4.16-rc5
Jeremy Cline 5704a4
Jeremy Cline f84208
* Tue Mar 06 2018 Jeremy Cline <jeremy@jcline.org> - 4.16.0-0.rc4.git0.1
Jeremy Cline f84208
- Linux 4.16-rc4
Jeremy Cline f84208
Jeremy Cline 84f42d
* Mon Feb 26 2018 Jeremy Cline <jeremy@jcline.org> - 4.16.0-0.rc3.git0.1
Jeremy Cline 84f42d
- Linux 4.16-rc3
Jeremy Cline 84f42d
Jeremy Cline 0b0d2c
* Mon Feb 19 2018 Jeremy Cline <jeremy@jcline.org> - 4.16.0-0.rc2.git0.1
Jeremy Cline 0b0d2c
- Linux 4.16-rc2
Jeremy Cline 0b0d2c
Laura Abbott f93386
* Mon Jan 29 2018 Laura Abbott <labbott@redhat.com> - 4.15.0-1
Laura Abbott f93386
- Linux v4.15
Laura Abbott f93386
Laura Abbott a8ce68
* Tue Jan 23 2018 Laura Abbott <labbott@redhat.com> - 4.15.0-0.rc9.git0.1
Laura Abbott a8ce68
- Linux 4.15-rc9
Laura Abbott a8ce68
Björn Esser 861533
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 4.15.0-0.rc8.git0.2
Björn Esser 861533
- Rebuilt for switch to libxcrypt
Björn Esser 861533
Laura Abbott 517085
* Tue Jan 16 2018 Laura Abbott <labbott@redhat.com> - 4.15.0-0.rc8.git0.1
Laura Abbott 517085
- Linux 4.15-rc8
Laura Abbott 517085
Laura Abbott 50e856
* Fri Jan 05 2018 Laura Abbott <labbott@redhat.com> - 4.15.0-0.rc7.git0.1
Laura Abbott a8f134
- Fork from the kernel package