2007-01-16 00:24:42 +01:00
|
|
|
#
|
2010-11-05 14:44:41 +01:00
|
|
|
# spec file for package man-pages (Version 3.30)
|
2007-01-16 00:24:42 +01:00
|
|
|
#
|
2010-02-19 16:15:02 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 22:19:12 +02:00
|
|
|
|
2007-01-16 00:24:42 +01:00
|
|
|
Name: man-pages
|
2007-08-10 16:58:06 +02:00
|
|
|
BuildRequires: fdupes
|
2007-09-14 16:03:13 +02:00
|
|
|
Url: http://www.kernel.org/pub/linux/docs/manpages/
|
2010-02-19 16:15:02 +01:00
|
|
|
License: BSD3c(or similar) ; GPLv2+ ; Other uncritical OpenSource License
|
2007-01-16 00:24:42 +01:00
|
|
|
Group: Documentation/Man
|
2007-09-14 16:03:13 +02:00
|
|
|
AutoReqProv: on
|
2010-12-06 11:03:29 +01:00
|
|
|
Version: 3.32
|
2010-06-22 17:56:58 +02:00
|
|
|
Release: 1
|
2008-09-08 18:07:20 +02:00
|
|
|
Summary: Linux Manual Pages
|
2007-01-16 00:24:42 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Source: man-pages-%{version}.tar.bz2
|
|
|
|
Source1: shadow.5
|
2007-09-14 16:03:13 +02:00
|
|
|
Source2: gai.conf.5
|
2010-02-19 16:15:02 +01:00
|
|
|
Source3: iconv.1
|
2007-01-16 00:24:42 +01:00
|
|
|
Patch: man-pages.eal3.diff
|
2007-09-14 16:03:13 +02:00
|
|
|
Patch3: %{name}_gai.conf-reference.patch
|
2008-07-15 23:14:50 +02:00
|
|
|
Patch5: %{name}-tty_ioctl.patch
|
2009-08-21 17:20:20 +02:00
|
|
|
Patch6: %{name}-resolv.conf.patch
|
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);
|
|
|
|
Section 5, file formats and protocols (e.g., wtmp, /etc/passwd, nfs);
|
|
|
|
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
|
|
|
|
|
|
|
|
2008-09-08 18:07:20 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
"Michael Kerrisk" <mtk.manpages@googlemail.com>
|
2007-01-16 00:24:42 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch -p2
|
2007-09-14 16:03:13 +02:00
|
|
|
%patch3
|
2008-07-15 23:14:50 +02:00
|
|
|
%patch5 -p1
|
2009-08-21 17:20:20 +02:00
|
|
|
%patch6
|
2008-04-10 22:19:12 +02:00
|
|
|
find -name "*.orig" | xargs rm -fv
|
2007-01-16 00:24:42 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
cp %SOURCE1 man5/
|
2007-09-14 16:03:13 +02:00
|
|
|
cp %{SOURCE2} man5/
|
2010-02-19 16:15:02 +01:00
|
|
|
cp %{SOURCE3} man1/
|
2007-01-16 00:24:42 +01:00
|
|
|
# not actual anymore
|
|
|
|
rm -f man2/ioctl_list.2
|
|
|
|
# nfs-utils
|
|
|
|
rm -f man5/exports.5
|
|
|
|
# coreutils, diffutils
|
2009-01-21 02:33:57 +01:00
|
|
|
rm -f man1/vdir.1 man1/touch.1 man1/rmdir.1 man1/rm.1 man1/mv.1 man1/mknod.1 man1/mkfifo.1 man1/mkdir.1 man1/ls.1 man1/ln.1 man1/install.1 man1/du.1 man1/dircolors.1 man1/dir.1 man1/diff.1 man1/df.1 man1/dd.1 man1/cp.1 man1/chown.1 man1/chmod.1 man1/chgrp.1 man3/getaddrinfo.3.orig man3/{getifaddrs.3,freeifaddrs.3}
|
2007-01-16 00:24:42 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}
|
2008-09-08 18:07:20 +02:00
|
|
|
for i in man? ; do
|
2007-01-16 00:24:42 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/$i
|
|
|
|
cp -p $i/* $RPM_BUILD_ROOT%{_mandir}/$i/
|
|
|
|
done
|
|
|
|
cd $RPM_BUILD_ROOT%{_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
|
2007-08-10 16:58:06 +02:00
|
|
|
%fdupes -s $RPM_BUILD_ROOT
|
|
|
|
|
2007-01-16 00:24:42 +01:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
%doc %{_mandir}/man*/*.gz
|
|
|
|
%doc README
|
|
|
|
%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
|