2007-01-16 00:24:42 +01:00
|
|
|
#
|
2011-08-04 09:23:17 +02:00
|
|
|
# spec file for package man-pages
|
2007-01-16 00:24:42 +01:00
|
|
|
#
|
2017-05-05 08:35:53 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:24:42 +01:00
|
|
|
#
|
2008-09-08 18:07:20 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:24:42 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-03-05 08:39:23 +01:00
|
|
|
|
2007-01-16 00:24:42 +01:00
|
|
|
Name: man-pages
|
2017-11-27 08:52:47 +01:00
|
|
|
Version: 4.14
|
2012-01-19 11:00:27 +01:00
|
|
|
Release: 0
|
2008-09-08 18:07:20 +02:00
|
|
|
Summary: Linux Manual Pages
|
2012-03-26 12:38:09 +02:00
|
|
|
License: BSD-3-Clause and GPL-2.0+ and MIT
|
2012-01-19 11:00:27 +01:00
|
|
|
Group: Documentation/Man
|
2014-03-17 09:05:15 +01:00
|
|
|
Url: http://www.kernel.org/doc/man-pages/download.html
|
2014-01-26 20:44:29 +01:00
|
|
|
#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/
|
2014-03-17 09:05:15 +01:00
|
|
|
Source: https://www.kernel.org/pub/linux/docs/man-pages/man-pages-%{version}.tar.xz
|
2014-10-13 09:39:01 +02:00
|
|
|
Patch0: %{name}.eal3.diff
|
|
|
|
Patch1: %{name}-remove-ioctl_list-reference.patch
|
2007-09-14 16:03:13 +02:00
|
|
|
Patch3: %{name}_gai.conf-reference.patch
|
2014-03-17 09:05:15 +01:00
|
|
|
Patch5: %{name}-tty_ioctl.patch
|
2013-08-07 16:49:37 +02:00
|
|
|
BuildRequires: fdupes
|
2014-03-17 09:05:15 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-09-14 16:03:13 +02:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:24:42 +01:00
|
|
|
|
|
|
|
%description
|
2008-09-08 18:07:20 +02:00
|
|
|
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);
|
2014-03-17 09:05:15 +01:00
|
|
|
Section 5, file formats and protocols (e.g., wtmp, %{_sysconfdir}/passwd, nfs);
|
2008-09-08 18:07:20 +02:00
|
|
|
Section 6, games (intro only); Section 7, conventions, macro packages,
|
|
|
|
etc. (e.g., nroff, ascii); and Section 8, system administration (intro
|
|
|
|
only).
|
|
|
|
|
2007-01-16 00:24:42 +01:00
|
|
|
%prep
|
2014-05-26 08:38:06 +02:00
|
|
|
%setup -q
|
2014-03-17 09:05:15 +01:00
|
|
|
%patch0 -p2
|
2016-08-01 09:44:05 +02:00
|
|
|
%patch1 -p1
|
2007-09-14 16:03:13 +02:00
|
|
|
%patch3
|
2008-07-15 23:14:50 +02:00
|
|
|
%patch5 -p1
|
2008-04-10 22:19:12 +02:00
|
|
|
find -name "*.orig" | xargs rm -fv
|
2007-01-16 00:24:42 +01:00
|
|
|
|
|
|
|
%build
|
2014-10-13 09:39:01 +02:00
|
|
|
# not current anymore (list of ioctl calls in Linux/i386 kernel 1.3.27)
|
|
|
|
# remove-ioctl_list-reference.patch removes references from ioctl.2
|
2014-06-18 16:15:41 +02:00
|
|
|
rm man2/ioctl_list.2
|
2014-06-23 14:12:40 +02:00
|
|
|
# glibc
|
2014-06-18 16:15:41 +02:00
|
|
|
rm man3/{getifaddrs.3,freeifaddrs.3,crypt.3,crypt_r.3}
|
2017-05-09 14:15:59 +02:00
|
|
|
# remove .so link to bzero.3, conflicts with libbsd
|
|
|
|
rm man3/explicit_bzero.3
|
2007-01-16 00:24:42 +01:00
|
|
|
|
|
|
|
%install
|
2008-09-08 18:07:20 +02:00
|
|
|
for i in man? ; do
|
2014-03-17 09:05:15 +01:00
|
|
|
mkdir -p "%{buildroot}/%{_mandir}/$i"
|
|
|
|
cp -p "$i"/* "%{buildroot}/%{_mandir}/$i/"
|
2007-01-16 00:24:42 +01:00
|
|
|
done
|
2014-03-17 09:05:15 +01:00
|
|
|
cd "%{buildroot}/%{_mandir}/"
|
2007-01-16 00:24:42 +01:00
|
|
|
RETVAL=0
|
|
|
|
ARE_MISSING=""
|
|
|
|
for i in */* ; do
|
|
|
|
FOUND=0
|
2014-01-26 20:44:29 +01:00
|
|
|
grep "^.so man" "$i" && FOUND=1
|
|
|
|
if [ "$FOUND" == 1 ] ; then
|
|
|
|
if [ ! -f `grep "^.so man" "$i" | awk '{print $2}'` ]; then
|
2007-01-16 00:24:42 +01:00
|
|
|
ARE_MISSING="$i $ARE_MISSING"
|
|
|
|
RETVAL=1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
echo ""
|
|
|
|
echo "The following manual pages are now missing (for .so reference):"
|
2014-01-26 20:44:29 +01:00
|
|
|
echo "$ARE_MISSING"
|
2007-01-16 00:24:42 +01:00
|
|
|
echo ""
|
2014-01-26 20:44:29 +01:00
|
|
|
if [ "$RETVAL" -ne 0 ] ; then
|
|
|
|
exit "$RETVAL"
|
2007-01-16 00:24:42 +01:00
|
|
|
fi
|
2014-03-17 09:05:15 +01:00
|
|
|
%fdupes -s %{buildroot}/%{_prefix}
|
2007-01-16 00:24:42 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(644,root,root,755)
|
2014-03-17 09:05:15 +01:00
|
|
|
%doc %{_mandir}/man*/*.gz
|
2014-02-17 08:43:29 +01:00
|
|
|
%doc README Changes Changes.old
|
2007-01-16 00:24:42 +01:00
|
|
|
%doc man-pages-*.Announce
|
|
|
|
%doc man-pages-*.lsm
|
2008-09-08 18:07:20 +02:00
|
|
|
%doc Changes
|
2007-11-22 17:53:27 +01:00
|
|
|
|
2007-05-31 21:28:06 +02:00
|
|
|
%changelog
|