Hello community,
here is the log from the commit of package man-pages-supplement
checked in at Mon Dec 1 17:59:33 CET 2008.
--------
New Changes file:
--- /dev/null 2008-04-22 03:09:48.000000000 +0200
+++ /mounts/work_src_done/STABLE/man-pages-supplement/man-pages-supplement.changes 2008-11-25 02:25:47.000000000 +0100
@@ -0,0 +1,11 @@
+-------------------------------------------------------------------
+Tue Nov 25 02:22:34 CET 2008 - mge@suse.de
+
+- new find-script, fixes bnc#448332
+- Result: All=5105 Found=3076 Notfound=2029
+
+-------------------------------------------------------------------
+Mon Nov 24 12:55:58 CET 2008 - mge@suse.de
+
+- initial check-in
+
calling whatdependson for head-i586
New:
----
find_manpage_gaps.sh
man-pages-supplement-1.1.0.tar.bz2
man-pages-supplement.changes
man-pages-supplement.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ man-pages-supplement.spec ++++++
#
# spec file for package man-pages-supplement (Version 1.1.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: man-pages-supplement
# List of additional build dependencies
Version: 1.1.0
Release: 1
License: LGPL v2.1 or later; LGPLv2.1 or later. See find_manpage_gaps.sh
Source0: man-pages-supplement-%{version}.tar.bz2
Source1: find_manpage_gaps.sh
Group: Documentation/Man
Summary: Generic man-pages for executables without a dedicated man-page
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This packages contains man-page 'stubs' for executable without a
dedicated man-page in SUSE Linux Enterprise 11.
Authors:
--------
Matthias G. Eckermann
%prep
%setup -q
%build
%install
mkdir -p $RPM_BUILD_ROOT
cp -a usr $RPM_BUILD_ROOT/
# Write a proper %%files section and remove these two commands and
# the '-f filelist' option to %%files
echo '%%defattr(-,root,root)' >filelist
find %buildroot -type f -printf '/%%P*\n' >>filelist
%clean
rm -rf %buildroot
%files -f filelist
%defattr(-,root,root)
# This is a place for a proper filelist:
# /usr/bin/man-pages-supplement
# You can also use shell wildcards:
# /usr/share/man-pages-supplement/*
# This installs documentation files from the top build directory
# into /usr/share/doc/...
# %doc README COPYING
# The advantage of using a real filelist instead of the '-f filelist' trick is
# that rpmbuild will detect if the install section forgets to install
# something that is listed here
%changelog
* Tue Nov 25 2008 mge@suse.de
- new find-script, fixes bnc#448332
- Result: All=5105 Found=3076 Notfound=2029
* Mon Nov 24 2008 mge@suse.de
- initial check-in
++++++ find_manpage_gaps.sh ++++++
#!/bin/bash
#
# Script to find binaries without associated man-page
# Copyright (C) 2008 SUSE Linux Products GmbH
# Author: Matthias G. Eckermann
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or (at
# your option) any later version.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
# USA.
#
BASEPATH=/mnt
TMPPATH=/var/tmp/man
#
RPM="rpm --nosignature "
RPMPATH=$BASEPATH/suse
ARCHIVES=$BASEPATH/ARCHIVES.gz
MANARCH=$TMPPATH/MANARCHIVES
MANPAGES="$RPMPATH/noarch/man-pages*.rpm"
function create_man_page_pod() {
BinaryName=$1
PackageName=$2
PackageSummary=$( $RPM -qp --queryformat="%{Summary}" $RR )
PackageLicense=$( $RPM -qp --queryformat="%{LICENSE}" $RR )
PackageDescription=$( $RPM -qp --queryformat="%{DESCRIPTION}" $RR )
PackageURL=$( $RPM -qp --queryformat="%{URL}" $RR )
if [ "$PackageURL"=="(none)" ]; then
echo $PackageName | grep -i kde > /dev/null
if [ $? == 0 ]; then
PackageURL="http://www.kde.org/"
else
echo $PackageName | grep -i gnome > /dev/null
if [ $? == 0 ]; then
PackageURL="http://www.gnome.org/"
else
PackageURL=""
fi
fi
fi
cat > $TMPPATH/pod/$BinaryName.1.pod <http://www.novell.com/documentation/ and also installed on the system at F
Additional documentation for a specific package may be available at F L<$PackageURL/>
=head1 DESCRIPTION
$PackageDescription
=head1 LICENSE
$PackageLicense
=cut
EOF
}
function convert_pod2man() {
BinaryName=$1
PackageName=$2
PackagePath=$3
sed -i -e "s/Authors:/=head1 AUTHORS\\n/g" $TMPPATH/pod/$BinaryName.1.pod
sed -i -e "s/--------//g" $TMPPATH/pod/$BinaryName.1.pod
if [ "$PackagePath" == "/sbin/" ]; then
PackageGroup=8
pod2man --section=$PackageGroup --name=$BinaryName --center=$PackageName $TMPPATH/pod/$BinaryName.1.pod $TMPPATH/usr/share/man/man8/$BinaryName.$PackageGroup
else
PackageGroup=1
pod2man --section=$PackageGroup --name=$BinaryName --center=$PackageName $TMPPATH/pod/$BinaryName.1.pod $TMPPATH/usr/share/man/man1/$BinaryName.$PackageGroup
fi
}
mkdir -p $TMPPATH/pod
mkdir -p $TMPPATH/usr/share/man/man1
mkdir -p $TMPPATH/usr/share/man/man8
zgrep /usr/share/man/ $ARCHIVES > $MANARCH
ALLPACKS=0
FOUND=0
NOTFOUND=0
for RR in $( find $RPMPATH -iname "*.rpm" ); do
RESVAL=0
FOUNDIN=0
RRR=$( basename $RR | cut -d- -f1 )
PACKNAME=$( $RPM -qp --queryformat="%{NAME}" $RR )
for SUBPATH in /bin/ /sbin/; do
for BB in $( $RPM -qlp $RR | grep $SUBPATH ); do
a=$(( ALLPACKS++ ))
FOUNDIN="package"
BBB=$( basename $BB )
RESSTR=$( $RPM -qlp $RR | grep /usr/share/man/ | grep "/$BBB\." )
RESVAL=$?
if [ $RESVAL -eq 1 ]; then
FOUNDIN="docpack"
RRDOC=$( find $RPMPATH -iname "$RRR*-doc*.rpm" )
if [ ".$RRDOC"=="." ] ; then
RESVAL=1
else
RESSTR=$( $RPM -qlp $RRDOC | grep /usr/share/man/ | grep "/$BBB\." )
RESVAL=$?
fi
if [ $RESVAL -eq 1 ]; then
FOUNDIN="archive"
RESSTR=$( grep /usr/share/man/ $MANARCH | grep "/$BBB\." )
RESVAL=$?
fi
fi
if [ $RESVAL -eq 1 ] ; then
a=$(( NOTFOUND++ ))
echo "- Binary=$BBB Package=$PACKNAME"
create_man_page_pod $BBB $PACKNAME
convert_pod2man $BBB $PACKNAME $SUBPATH
else
a=$(( FOUND++ ))
echo "+ $FOUNDIN Binary=$BBB Package=$PACKNAME"
fi
done
done
done
rm -f $MANARCH
echo -e "\nResult:\nAll=$ALLPACKS Found=$FOUND Notfound=$NOTFOUND\n"
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org