man-pages/man-pages.spec
Petr Gajdos dba3241d02 Accepting request 1124364 from home:dirkmueller:Factory
- update to 6.05.01:
  * Ignore dot-dirs within $MANDIR

              Add documentation for the the PR_SET_TAGGED_ADDR_CTRL and
    s390_guarded_storage.2
        Document cgroup v2 delegation via the 'nsdelegate' mount
  * removed pages:
    * unshare.2: Document CLONE_NEWPID, CLONE_NEWUSER, CLONE_THREAD,
  * new and rewritten pages:
- complete description of /proc/[pid]/smaps fields
  * new and rewritten pages:
     + open_by_handle_at.2
     + Document _LARGEFILE_SOURCE (feature_test_macros.7)
  * Document PACKET_QDISC_BYPASS
- added fanotify_init.2, fanotify_mark.2, open_by_handle_at.2,
  * Various pages that formerly lacked the information now have
  * Peng Haitao has submitted patches to around 50 pages that note
    functions that are thread-safe or thread-unsafe. For this
    purpose, the man-pages add a new section, ATTRIBUTES, as
    described in the man-pages(7) manual page. Peng Haitao's
    substantial work is ongoing, and more pages will add this
- update to 2.60 [#288732]
- workaround in spec file: remove deprecated
- Auto-Update to version
- updated specfile
- fix test
- don't stop for missing man-pages present in system
- no COPYING file in source anymore, adapt specfile
- Rename ldpman to man-pages
- ready for autobuild

OBS-URL: https://build.opensuse.org/request/show/1124364
OBS-URL: https://build.opensuse.org/package/show/Documentation/man-pages?expand=0&rev=232
2023-11-09 09:21:03 +00:00

111 lines
3.3 KiB
RPMSpec

#
# spec file for package man-pages
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: man-pages
Version: 6.05.01
Release: 0
Summary: Linux Manual Pages
License: BSD-3-Clause AND GPL-2.0-or-later AND MIT
Group: Documentation/Man
URL: https://www.kernel.org/doc/man-pages/download.html
#Git-Clone: git://git.kernel.org/pub/scm/docs/man-pages/man-pages
#Git-Web: http://git.kernel.org/cgit/docs/man-pages/man-pages.git/
Source0: https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/man-pages-%{version}.tar.xz
Source1: https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/man-pages-%{version}.tar.sign
# https://lore.kernel.org/all/1257e092-79af-3624-2f6a-fb5fd69e5c18@gmail.com/#t
Source2: %{name}.keyring
Patch0: %{name}.eal3.diff
Patch1: %{name}_gai.conf-reference.patch
# [bsc#1154701]
Patch2: man-pages-tcp_fack.patch
BuildRequires: fdupes
Supplements: (man and patterns-base-documentation)
BuildArch: noarch
%description
A large collection of man pages (documentation) from the Linux
Documentation Project (LDP). The man pages are organized into the
following sections: Section 1, user commands (intro only); Section 2,
system calls; Section 3, libc calls; Section 4, devices (e.g., hd, sd);
Section 5, file formats and protocols (e.g., wtmp, %{_sysconfdir}/passwd, nfs);
Section 6, games (intro only); Section 7, conventions, macro packages,
etc. (e.g., nroff, ascii); and Section 8, system administration (intro
only).
%prep
%setup -q
%patch0 -p2
%patch1
%patch2 -p1
find -name "*.orig" | xargs rm -fv
%build
# glibc
rm man3/{getifaddrs.3,freeifaddrs.3,crypt.3,crypt_r.3}
# remove .so link to bzero.3, conflicts with libbsd
rm man3/explicit_bzero.3
# already in bpftool package
rm man7/bpf-helpers.7
# bsc#1188724
rm man5/motd.5
# conflicts with mandoc
mkdir man7mp
mv man7/man.7 man7mp/man.7mp
%install
for i in man[0-9]*; do
mkdir -p "%{buildroot}/%{_mandir}/$i"
cp -p "$i"/* "%{buildroot}/%{_mandir}/$i/"
done
cd "%{buildroot}/%{_mandir}/"
RETVAL=0
ARE_MISSING=""
for i in */* ; do
FOUND=0
grep "^.so man" "$i" && FOUND=1
if [ "$FOUND" == 1 ] ; then
if [ ! -f `grep "^.so man" "$i" | awk '{print $2}'` ]; then
ARE_MISSING="$i $ARE_MISSING"
RETVAL=1
fi
fi
done
echo ""
echo "The following manual pages are now missing (for .so reference):"
echo "$ARE_MISSING"
echo ""
if [ "$RETVAL" -ne 0 ] ; then
exit "$RETVAL"
fi
# Remove duplicates
%fdupes -s %{buildroot}/%{_prefix}
%files
%defattr(644,root,root,755)
%doc README Changes Changes.old CONTRIBUTING lsm
%license LICENSES/*.txt
%dir %{_mandir}/man7mp
%dir %{_mandir}/man2type
%dir %{_mandir}/man3const
%dir %{_mandir}/man3head
%dir %{_mandir}/man3type
%{_mandir}/man*/*.gz
%changelog