2010-01-29 14:27:16 +01:00
|
|
|
#
|
|
|
|
# spec file for package kernel-docs@VARIANT@ (Version @RPMVERSION@)
|
|
|
|
#
|
|
|
|
# Copyright (c) 2009 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-04-08 15:15:36 +02:00
|
|
|
%define patchversion @PATCHVERSION@
|
2010-06-04 15:04:05 +02:00
|
|
|
%define variant @VARIANT@%{nil}
|
2010-04-08 15:15:36 +02:00
|
|
|
|
2010-01-29 14:27:16 +01:00
|
|
|
%include %_sourcedir/kernel-spec-macros
|
|
|
|
|
2010-06-04 15:04:05 +02:00
|
|
|
Name: kernel-docs@VARIANT@
|
2010-10-28 13:10:27 +02:00
|
|
|
Summary: Kernel Documentation
|
2010-01-29 14:27:16 +01:00
|
|
|
Version: @RPMVERSION@
|
|
|
|
%if %using_buildservice
|
|
|
|
Release: @RELEASE_PREFIX@<RELEASE>
|
|
|
|
%else
|
|
|
|
Release: @RELEASE_PREFIX@0
|
|
|
|
%endif
|
2010-10-28 13:10:27 +02:00
|
|
|
BuildRequires: docbook-toys docbook-utils ghostscript_any libjpeg-devel texlive transfig xmlto xorg-x11-devel
|
2010-12-08 23:33:31 +01:00
|
|
|
BuildRequires: kernel-source%variant
|
2010-10-28 13:10:27 +02:00
|
|
|
Url: http://www.kernel.org/
|
|
|
|
License: GPL v2 or later
|
|
|
|
Group: Documentation/Man
|
|
|
|
AutoReqProv: on
|
2010-04-25 18:42:54 +02:00
|
|
|
Provides: %name = %version-%source_rel
|
2010-01-29 14:27:16 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Source: kernel-spec-macros
|
|
|
|
|
|
|
|
%description
|
|
|
|
These are the PDF documents and man pages (section 9) built from
|
|
|
|
thecurrent kernel sources.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
cp -av /etc/texmf/web2c/texmf.cnf .
|
|
|
|
cat << EOF >> texmf.cnf
|
|
|
|
main_memory.pdfjadetex = 2500000
|
|
|
|
hash_extra.pdfjadetex = 70000
|
|
|
|
max_strings.pdfjadetex = 120000
|
|
|
|
save_size.pdfjadetex = 10000
|
|
|
|
EOF
|
|
|
|
%setup -T -c
|
|
|
|
|
|
|
|
%build
|
|
|
|
# use texmf.cnf from local source
|
|
|
|
export TEXMFCNF=$RPM_BUILD_DIR
|
|
|
|
export LANG=en_US
|
2010-12-08 23:33:31 +01:00
|
|
|
make -C /usr/src/linux%variant O=$PWD -k -i mandocs %{?jobs:-j%jobs}
|
|
|
|
make -C /usr/src/linux%variant O=$PWD -k -i pdfdocs %{?jobs:-j%jobs}
|
2010-01-29 14:27:16 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
install -d $RPM_BUILD_ROOT/%{_mandir}/man9
|
|
|
|
# filter out obscure device drivers - they clutter up the rpm and don't add any real value
|
|
|
|
find Documentation/DocBook/ -name '*.9.gz' |
|
|
|
|
egrep -v 'man/(sis[69]|rio|fsl|struct_rio|RIO|mpc85|set_rx_mode|mdio_(read|write)|mii_ioctl|mca_|z8530|nand|sppp|piix|(read|write)_zs)' |
|
|
|
|
while read i ; do
|
|
|
|
cp $i $RPM_BUILD_ROOT/%{_mandir}/man9
|
|
|
|
done
|
|
|
|
install -d $RPM_BUILD_ROOT/usr/share/doc/kernel
|
|
|
|
cp -a Documentation/DocBook/*.pdf $RPM_BUILD_ROOT/usr/share/doc/kernel || true
|
|
|
|
if [ -d Documentation/kdb ] ; then
|
|
|
|
for i in Documentation/kdb/*.m* ; do
|
|
|
|
k=`basename $i`
|
|
|
|
k=${k/man/9}
|
|
|
|
k=${k/mm/9}
|
|
|
|
cp $i $RPM_BUILD_ROOT/%{_mandir}/man9/$k
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
ln -s /usr/share/man/man9/request_threaded_irq.9.gz $RPM_BUILD_ROOT/usr/share/man/man9/request_irq.9.gz
|
|
|
|
|
2010-12-08 23:33:31 +01:00
|
|
|
cp -a /usr/src/linux%variant/{COPYING,CREDITS,MAINTAINERS,README,REPORTING-BUGS} .
|
2010-01-29 14:27:16 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING CREDITS MAINTAINERS README REPORTING-BUGS
|
|
|
|
%{_mandir}/man9/*
|
|
|
|
%docdir /usr/share/doc/kernel
|
|
|
|
/usr/share/doc/kernel
|
|
|
|
|
|
|
|
%changelog
|