代码拉取完成,页面将自动刷新
Name: man-pages
Version: 6.12
Release: 1
Summary: Linux kernel and user-space C library interfaces documentation
License: GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND LGPL-3.0-or-later AND LGPL-3.0-only AND LGPL-3.0-linking-exception AND MIT AND Spencer-94
URL: https://www.kernel.org/doc/man-pages/
Source0: https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/%{name}-%{version}.tar.xz
BuildRequires: make
BuildArch: noarch
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/update-alternatives
Conflicts: attr < 2.4.47-11
Conflicts: keyutils-libs < 1.5.10
Obsoletes: %{name}-help < 6.10
%description
The Linux man-pages project documents the Linux kernel and C library interface that
are employed by user-space programs.With respect to the C library, the primary focus is
the GNU C library (glibc), although, where known, documentation of variations on
other C libraries available for Linux is also included.
%prep
%autosetup -p1
%install
%make_install prefix=%{_prefix} -R
rm -f %{buildroot}%{_mandir}/man3/crypt_r.3*
rm -f %{buildroot}%{_mandir}/man3/crypt.3*
rm -f %{buildroot}%{_mandir}/man7/bpf-helpers.7*
rm -f %{buildroot}%{_mandir}/man3/MAX.3*
rm -f %{buildroot}%{_mandir}/man3/MIN.3*
# rename files for alternative usage
mv %{buildroot}%{_mandir}/man7/man.7 %{buildroot}%{_mandir}/man7/man.%{name}.7
touch %{buildroot}%{_mandir}/man7/man.7
%files
%doc README Changes
%{_bindir}/diffman-git
%{_bindir}/mansect
%{_bindir}/pdfman
%{_bindir}/sortman
%ghost %{_mandir}/man7/man.7*
%{_mandir}/man*/*
%pre
# remove alternativized files if they are not symlinks
[ -L %{_mandir}/man7/man.7.gz ] || rm -f %{_mandir}/man7/man.7.gz >/dev/null 2>&1 || :
%post
# set up the alternatives files
%{_sbindir}/update-alternatives --install %{_mandir}/man7/man.7.gz man.7.gz %{_mandir}/man7/man.%{name}.7.gz 300 \
>/dev/null 2>&1 || :
%preun
if [ $1 -eq 0 ]; then
%{_sbindir}/update-alternatives --remove man.7.gz %{_mandir}/man7/man.%{name}.7.gz >/dev/null 2>&1 || :
fi
%postun
if [ $1 -ge 1 ]; then
if [ "$(readlink %{_sysconfdir}/alternatives/man.7.gz)" == "%{_mandir}/man7/man.%{name}.7.gz" ]; then
%{_sbindir}/update-alternatives --set man.7.gz %{_mandir}/man7/man.%{name}.7.gz >/dev/null 2>&1 || :
fi
fi
%changelog
* Tue Feb 25 2025 Funda Wang <fundawang@yeah.net> - 6.12-1
- update to 6.12
* Sat Feb 15 2025 Funda Wang <fundawang@yeah.net> - 6.11-1
- update to 6.11
* Thu Jan 23 2025 Funda Wang <fundawang@yeah.net> - 6.10-1
- update to 6.10
- no need to separated individual help package, as this package itself
named the content
- convert /usr/share/man7/man.7 into alternatives, because mandoc
also provides this file
* Tue Aug 13 2024 fuanan <fuanan3@h-partners.com> - 6.9.1-3
- License compliance rectification
* Tue Jul 16 2024 gengqihu <gengqihu2@h-partners.com> - 6.9.1-2
- revert changes in 'upgrade version to 6.9.1'
* Fri Jul 5 2024 warlcok <hunan@kylinos.cn> - 6.9.1-1
- upgrade version to 6.9.1
* Tue Dec 19 2023 renhongxun <renhongxun@h-partners.com> - 6.05.01-1
- upgrade version to 6.05.01
* Tue Jul 18 2023 zhangchenglin <zhangchenglin@kylinos.cn> - 6.04.01-1
- Update to version 6.04.01
* Wed Jan 18 2023 renhongxun <renhongxun@h-partners.com> - 6.02-1
- upgrade version to 6.02
* Thu Nov 10 2022 renhongxun <renhongxun@h-partners.com> - 5.13-3
- exclude some redundant pages from help
* Tue Mar 15 2022 renhongxun <renhongxun@h-partners.com> - 5.13-2
- split help pkg from main pkg
* Mon Nov 29 2021 liudabo <liudabo1@huawei.com> - 5.13-1
- upgrade version to 5.13
* Thu Jan 28 2021 liudabo <liudabo1@huawei.com> - 5.10-1
- upgrade version to 5.10
* Thu Dec 10 2020 shixuantong<shixuantong@huawei.com> - 5.02-6
- Modify Source0
* Wed Apr 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.02-5
- Merge subpackages into main package
* Mon Feb 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.02-4
- Add necessary BuildRequire
* Mon Jan 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.02-3
- Delete useless files.
* Tue Sep 03 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.02-2
- remove conflictive man files
* Tue Sep 03 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.02-1
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。