2011-10-05 07:01:45 +02:00
|
|
|
#
|
2011-10-25 07:02:09 +02:00
|
|
|
# spec file for package kernel-docs
|
2011-10-05 07:01:45 +02:00
|
|
|
#
|
2021-01-06 08:32:02 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2011-10-05 07:01:45 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-04-26 07:43:07 +02:00
|
|
|
%define srcversion 5.12
|
2021-06-03 10:09:30 +02:00
|
|
|
%define patchversion 5.12.9
|
2011-10-05 07:01:45 +02:00
|
|
|
%define variant %{nil}
|
|
|
|
|
|
|
|
%include %_sourcedir/kernel-spec-macros
|
|
|
|
|
2017-09-08 08:03:12 +02:00
|
|
|
%define build_html 1
|
2017-07-12 17:21:12 +02:00
|
|
|
%define build_pdf 0
|
2016-10-04 10:11:34 +02:00
|
|
|
|
2019-03-19 09:08:50 +01:00
|
|
|
%(chmod +x %_sourcedir/{guards,apply-patches,check-for-config-changes,group-source-files.pl,split-modules,modversions,kabi.pl,mkspec,compute-PATCHVERSION.sh,arch-symbols,log.sh,try-disable-staging-driver,compress-vmlinux.sh,mkspec-dtb,check-module-license,klp-symbols,splitflist,mergedep,moddep,modflist,kernel-subpackage-build})
|
2017-02-21 08:08:23 +01:00
|
|
|
|
2011-10-05 07:01:45 +02:00
|
|
|
Name: kernel-docs
|
2017-09-08 08:03:12 +02:00
|
|
|
Summary: Kernel Documentation
|
2014-02-02 08:01:46 +01:00
|
|
|
License: GPL-2.0
|
|
|
|
Group: Documentation/Man
|
2021-06-03 10:09:30 +02:00
|
|
|
Version: 5.12.9
|
2013-10-03 08:02:42 +02:00
|
|
|
%if 0%{?is_kotd}
|
2021-06-03 10:09:30 +02:00
|
|
|
Release: <RELEASE>.gf17eb01
|
2013-10-03 08:02:42 +02:00
|
|
|
%else
|
2014-11-01 08:04:35 +01:00
|
|
|
Release: 0
|
2013-10-03 08:02:42 +02:00
|
|
|
%endif
|
2017-09-13 08:02:42 +02:00
|
|
|
# TW (4.13 or later) no longer needs xmlto
|
2017-09-20 08:02:56 +02:00
|
|
|
%if 0%{?sle_version}
|
2017-09-13 08:02:42 +02:00
|
|
|
BuildRequires: xmlto
|
|
|
|
%endif
|
2017-09-08 08:03:12 +02:00
|
|
|
%if %build_pdf || %build_html
|
2017-07-12 17:21:12 +02:00
|
|
|
# ReST handling
|
2018-05-24 08:03:09 +02:00
|
|
|
BuildRequires: ImageMagick
|
2017-02-21 08:08:23 +01:00
|
|
|
BuildRequires: graphviz
|
2017-09-08 08:03:12 +02:00
|
|
|
BuildRequires: graphviz-gd
|
|
|
|
BuildRequires: graphviz-gnome
|
2020-05-09 10:05:13 +02:00
|
|
|
BuildRequires: python3-Sphinx < 3
|
2021-05-10 10:03:27 +02:00
|
|
|
BuildRequires: texlive-amscls
|
2017-09-08 08:03:12 +02:00
|
|
|
BuildRequires: texlive-anyfontsize
|
2017-07-12 17:21:12 +02:00
|
|
|
%if %build_pdf
|
2017-09-08 08:03:12 +02:00
|
|
|
BuildRequires: python3-Sphinx-latex
|
|
|
|
BuildRequires: texlive-adjustbox
|
|
|
|
BuildRequires: texlive-dejavu
|
|
|
|
BuildRequires: texlive-dejavu-fonts
|
|
|
|
BuildRequires: texlive-glyphlist
|
|
|
|
BuildRequires: texlive-makeindex
|
|
|
|
BuildRequires: texlive-varwidth
|
|
|
|
BuildRequires: texlive-xetex
|
|
|
|
BuildRequires: texlive-zapfding
|
|
|
|
%endif
|
2016-06-26 16:47:43 +02:00
|
|
|
%endif
|
2011-10-05 07:01:45 +02:00
|
|
|
Url: http://www.kernel.org/
|
|
|
|
Provides: %name = %version-%source_rel
|
2021-06-03 10:09:30 +02:00
|
|
|
Provides: %name-srchash-f17eb01161845e938845a4d96c1b159c5b7e2368
|
2011-10-05 07:01:45 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2019-03-04 09:21:45 +01:00
|
|
|
Source0: http://www.kernel.org/pub/linux/kernel/v5.x/linux-%srcversion.tar.xz
|
2017-09-13 08:02:42 +02:00
|
|
|
Source2: source-post.sh
|
|
|
|
Source3: kernel-source.rpmlintrc
|
|
|
|
Source8: devel-pre.sh
|
|
|
|
Source9: devel-post.sh
|
|
|
|
Source10: preun.sh
|
|
|
|
Source11: postun.sh
|
|
|
|
Source12: pre.sh
|
|
|
|
Source13: post.sh
|
|
|
|
Source14: series.conf
|
|
|
|
Source16: guards
|
|
|
|
Source17: apply-patches
|
|
|
|
Source21: config.conf
|
|
|
|
Source23: supported.conf
|
|
|
|
Source33: check-for-config-changes
|
|
|
|
Source35: group-source-files.pl
|
|
|
|
Source36: README.PATCH-POLICY.SUSE
|
|
|
|
Source37: README.SUSE
|
|
|
|
Source38: README.KSYMS
|
|
|
|
Source39: config-options.changes.txt
|
|
|
|
Source40: source-timestamp
|
|
|
|
Source46: split-modules
|
|
|
|
Source47: modversions
|
|
|
|
Source48: macros.kernel-source
|
|
|
|
Source49: kernel-module-subpackage
|
|
|
|
Source50: kabi.pl
|
|
|
|
Source51: mkspec
|
|
|
|
Source52: kernel-source%variant.changes
|
|
|
|
Source53: kernel-source.spec.in
|
|
|
|
Source54: kernel-binary.spec.in
|
|
|
|
Source55: kernel-syms.spec.in
|
|
|
|
Source56: kernel-docs.spec.in
|
|
|
|
Source57: kernel-cert-subpackage
|
|
|
|
Source58: constraints.in
|
|
|
|
Source60: config.sh
|
|
|
|
Source61: compute-PATCHVERSION.sh
|
|
|
|
Source62: old-flavors
|
|
|
|
Source63: arch-symbols
|
|
|
|
Source64: package-descriptions
|
|
|
|
Source65: kernel-spec-macros
|
|
|
|
Source67: log.sh
|
|
|
|
Source68: host-memcpy-hack.h
|
|
|
|
Source69: try-disable-staging-driver
|
|
|
|
Source70: kernel-obs-build.spec.in
|
|
|
|
Source71: kernel-obs-qa.spec.in
|
|
|
|
Source72: compress-vmlinux.sh
|
|
|
|
Source73: dtb.spec.in.in
|
|
|
|
Source74: mkspec-dtb
|
2018-04-04 08:43:11 +02:00
|
|
|
Source75: release-projects
|
|
|
|
Source76: check-module-license
|
2018-04-19 23:07:42 +02:00
|
|
|
Source77: klp-symbols
|
2018-05-24 08:03:09 +02:00
|
|
|
Source78: modules.fips
|
2019-03-19 09:08:50 +01:00
|
|
|
Source79: splitflist
|
|
|
|
Source80: mergedep
|
|
|
|
Source81: moddep
|
|
|
|
Source82: modflist
|
|
|
|
Source83: kernel-subpackage-build
|
|
|
|
Source84: kernel-subpackage-spec
|
|
|
|
Source85: kernel-default-base.spec.txt
|
2017-09-13 08:02:42 +02:00
|
|
|
Source100: config.tar.bz2
|
|
|
|
Source101: config.addon.tar.bz2
|
|
|
|
Source102: patches.arch.tar.bz2
|
|
|
|
Source103: patches.drivers.tar.bz2
|
|
|
|
Source104: patches.fixes.tar.bz2
|
|
|
|
Source105: patches.rpmify.tar.bz2
|
|
|
|
Source106: patches.suse.tar.bz2
|
|
|
|
Source108: patches.addon.tar.bz2
|
|
|
|
Source109: patches.kernel.org.tar.bz2
|
|
|
|
Source110: patches.apparmor.tar.bz2
|
|
|
|
Source111: patches.rt.tar.bz2
|
|
|
|
Source113: patches.kabi.tar.bz2
|
|
|
|
Source120: kabi.tar.bz2
|
|
|
|
Source121: sysctl.tar.bz2
|
|
|
|
# These files are found in the kernel-source package:
|
|
|
|
NoSource: 0
|
|
|
|
NoSource: 2
|
|
|
|
NoSource: 3
|
|
|
|
NoSource: 8
|
|
|
|
NoSource: 9
|
|
|
|
NoSource: 10
|
|
|
|
NoSource: 11
|
|
|
|
NoSource: 12
|
|
|
|
NoSource: 13
|
|
|
|
NoSource: 14
|
|
|
|
NoSource: 16
|
|
|
|
NoSource: 17
|
|
|
|
NoSource: 21
|
|
|
|
NoSource: 23
|
|
|
|
NoSource: 33
|
|
|
|
NoSource: 35
|
|
|
|
NoSource: 36
|
|
|
|
NoSource: 37
|
|
|
|
NoSource: 38
|
|
|
|
NoSource: 39
|
|
|
|
NoSource: 40
|
|
|
|
NoSource: 46
|
|
|
|
NoSource: 47
|
|
|
|
NoSource: 48
|
|
|
|
NoSource: 49
|
|
|
|
NoSource: 50
|
|
|
|
NoSource: 51
|
|
|
|
NoSource: 52
|
|
|
|
NoSource: 53
|
|
|
|
NoSource: 54
|
|
|
|
NoSource: 55
|
|
|
|
NoSource: 56
|
|
|
|
NoSource: 57
|
|
|
|
NoSource: 58
|
|
|
|
NoSource: 60
|
|
|
|
NoSource: 61
|
|
|
|
NoSource: 62
|
|
|
|
NoSource: 63
|
|
|
|
NoSource: 64
|
|
|
|
NoSource: 65
|
|
|
|
NoSource: 67
|
|
|
|
NoSource: 68
|
|
|
|
NoSource: 69
|
|
|
|
NoSource: 70
|
|
|
|
NoSource: 71
|
|
|
|
NoSource: 72
|
|
|
|
NoSource: 73
|
|
|
|
NoSource: 74
|
2018-04-04 08:43:11 +02:00
|
|
|
NoSource: 75
|
|
|
|
NoSource: 76
|
2018-04-19 23:07:42 +02:00
|
|
|
NoSource: 77
|
2018-05-24 08:03:09 +02:00
|
|
|
NoSource: 78
|
2019-02-15 10:39:41 +01:00
|
|
|
NoSource: 79
|
|
|
|
NoSource: 80
|
|
|
|
NoSource: 81
|
|
|
|
NoSource: 82
|
|
|
|
NoSource: 83
|
|
|
|
NoSource: 84
|
|
|
|
NoSource: 85
|
2017-09-13 08:02:42 +02:00
|
|
|
NoSource: 100
|
|
|
|
NoSource: 101
|
|
|
|
NoSource: 102
|
|
|
|
NoSource: 103
|
|
|
|
NoSource: 104
|
|
|
|
NoSource: 105
|
|
|
|
NoSource: 106
|
|
|
|
NoSource: 108
|
|
|
|
NoSource: 109
|
|
|
|
NoSource: 110
|
|
|
|
NoSource: 111
|
|
|
|
NoSource: 113
|
|
|
|
NoSource: 120
|
|
|
|
NoSource: 121
|
2011-10-05 07:01:45 +02:00
|
|
|
|
|
|
|
%description
|
2017-09-08 08:03:12 +02:00
|
|
|
A few basic documents from the current kernel sources.
|
2011-10-05 07:01:45 +02:00
|
|
|
|
2014-12-11 08:04:19 +01:00
|
|
|
%source_timestamp
|
2016-06-26 16:47:43 +02:00
|
|
|
|
2017-07-12 17:21:12 +02:00
|
|
|
%if %build_pdf
|
2016-06-26 16:47:43 +02:00
|
|
|
%package pdf
|
|
|
|
Summary: Kernel Documentation (PDF)
|
|
|
|
Group: Documentation/Other
|
|
|
|
|
|
|
|
%description pdf
|
|
|
|
These are PDF documents built from the current kernel sources.
|
|
|
|
|
|
|
|
%source_timestamp
|
2017-07-12 17:21:12 +02:00
|
|
|
%endif
|
2016-06-26 16:47:43 +02:00
|
|
|
|
2017-09-08 08:03:12 +02:00
|
|
|
%if %build_html
|
2016-06-26 16:47:43 +02:00
|
|
|
%package html
|
|
|
|
Summary: Kernel Documentation (HTML)
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description html
|
|
|
|
These are HTML documents built from the current kernel sources.
|
|
|
|
|
|
|
|
%source_timestamp
|
2017-09-08 08:03:12 +02:00
|
|
|
%endif
|
2016-06-26 16:47:43 +02:00
|
|
|
|
2011-10-05 07:01:45 +02:00
|
|
|
%prep
|
2017-09-13 08:02:42 +02:00
|
|
|
%setup -q -c -T -a 0 -a 100 -a 101 -a 102 -a 103 -a 104 -a 105 -a 106 -a 108 -a 109 -a 110 -a 111 -a 113 -a 120 -a 121
|
|
|
|
cp -a linux-%srcversion/{COPYING,CREDITS,MAINTAINERS,README} .
|
|
|
|
cd linux-%srcversion
|
|
|
|
%_sourcedir/apply-patches %_sourcedir/series.conf %my_builddir %symbols
|
2011-10-05 07:01:45 +02:00
|
|
|
|
|
|
|
%build
|
2017-09-13 08:02:42 +02:00
|
|
|
cd linux-%srcversion
|
2021-05-10 10:03:27 +02:00
|
|
|
export LANG=en_US.utf8
|
2017-09-08 08:03:12 +02:00
|
|
|
%if %build_html
|
2016-06-26 16:47:43 +02:00
|
|
|
mkdir -p html
|
2020-01-28 09:05:57 +01:00
|
|
|
make %{?make_arg} O=$PWD/html PYTHON=python3 htmldocs
|
2017-09-08 08:03:12 +02:00
|
|
|
%endif
|
2017-07-12 17:21:12 +02:00
|
|
|
%if %build_pdf
|
2016-06-26 16:47:43 +02:00
|
|
|
mkdir -p pdf
|
2020-01-28 09:05:57 +01:00
|
|
|
make %{?make_arg} O=$PWD/pdf PYTHON=python3 pdfdocs
|
2016-06-26 16:47:43 +02:00
|
|
|
%endif
|
2011-10-05 07:01:45 +02:00
|
|
|
|
|
|
|
%install
|
2017-09-13 08:02:42 +02:00
|
|
|
cd linux-%srcversion
|
2017-09-08 08:03:12 +02:00
|
|
|
%if %build_html
|
2017-07-12 17:21:12 +02:00
|
|
|
install -d $RPM_BUILD_ROOT%{_datadir}/doc/kernel/html/rst
|
|
|
|
cp -a html/Documentation/output/* $RPM_BUILD_ROOT%{_datadir}/doc/kernel/html/rst || true
|
2017-09-08 08:03:12 +02:00
|
|
|
%endif
|
2014-12-11 08:04:19 +01:00
|
|
|
|
2017-07-12 17:21:12 +02:00
|
|
|
%if %build_pdf
|
2016-06-26 16:47:43 +02:00
|
|
|
install -d $RPM_BUILD_ROOT%{_datadir}/doc/kernel/pdf
|
2017-09-08 08:03:12 +02:00
|
|
|
for i in pdf/Documentation/output/latex/*.pdf; do
|
|
|
|
cp -a $i $RPM_BUILD_ROOT%{_datadir}/doc/kernel/pdf
|
2016-10-04 10:11:34 +02:00
|
|
|
done
|
|
|
|
%endif
|
2011-10-05 07:01:45 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2017-02-21 08:08:23 +01:00
|
|
|
%doc COPYING CREDITS MAINTAINERS README
|
2014-12-11 08:04:19 +01:00
|
|
|
|
2017-07-12 17:21:12 +02:00
|
|
|
%if %build_pdf
|
2016-06-26 16:47:43 +02:00
|
|
|
%files pdf
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/doc/kernel
|
|
|
|
%docdir %{_datadir}/doc/kernel/pdf
|
|
|
|
%{_datadir}/doc/kernel/pdf
|
2017-07-12 17:21:12 +02:00
|
|
|
%endif
|
2016-06-26 16:47:43 +02:00
|
|
|
|
2017-09-08 08:03:12 +02:00
|
|
|
%if %build_html
|
2016-06-26 16:47:43 +02:00
|
|
|
%files html
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/doc/kernel
|
|
|
|
%docdir %{_datadir}/doc/kernel/html
|
|
|
|
%{_datadir}/doc/kernel/html
|
2017-09-08 08:03:12 +02:00
|
|
|
%endif
|
2016-06-26 16:47:43 +02:00
|
|
|
|
2011-10-05 07:01:45 +02:00
|
|
|
%changelog
|