11 Star 0 Fork 17

src-openEuler/man-pages

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
man-pages.spec 4.30 KB
一键复制 编辑 原始数据 按行查看 历史
Funda Wang 提交于 2025-02-25 12:06 +08:00 . 6.12
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/man-pages.git
git@gitee.com:src-openeuler/man-pages.git
src-openeuler
man-pages
man-pages
master

搜索帮助