## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: tlpi Version: 221220 Release: %autorelease Summary: Utilities to display namespaces and control groups License: GPLv3+ URL: https://man7.org/tlpi/index.html Source: https://man7.org/tlpi/code/download/tlpi-%version-dist.tar.gz Patch: Makefile.patch BuildRequires: gcc-go BuildRequires: libacl-devel BuildRequires: libcap-devel BuildRequires: libseccomp-devel Requires: tlpi-licenses %global examplesdir %_pkgdocdir/examples %description The book The Linux Programming Interface and training courses given by man7.org are accompanied with a set of code examples. Some of these examples are useful in their own right. This package includes the following utilities. - pid_namespaces Show the PID namespace hierarchy. - namespace_of Show the namespace memberships of one or more processes in the context of the user or PID namespace hierarchy. See the bundled source code for further documentation. - userns_overview Display a hierarchical view of the user namespaces on the system along with the member processes for each namespace. - view_v2_cgroups Display one or more subtrees in the cgroups v2 hierarchy. The following info is displayed for each cgroup: the cgroup type, the controllers enabled in the cgroup, and the process and thread members of the cgroup. %package examples Summary: Example code from the tlpi package BuildArch: noarch Requires: tlpi-licenses %description examples The book The Linux Programming Interface and training courses given by man7.org are accompanied with a set of code examples. This package include these examples in source code form. The package is probably mostly useful in conjunction with the book. %package examples-bin Summary: Compiled examples from the tlpi package Recommends: tlpi-examples = %version-%release Requires: tlpi-licenses %description examples-bin The book The Linux Programming Interface and training courses given by man7.org are accompanied with a set of code examples. This package include the binaries built from these sources. They are installed with a prefix "tlpi-