Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2010-12-08 17:34:25 +0100
committerMichal Marek <mmarek@suse.cz>2010-12-08 17:34:25 +0100
commit37bdc47e3acbefd88c00c76e5c76600c7787e7eb (patch)
treef508341bcf3ce5ce74794e35d95203c898199a0e
parent987c24495a9ba61ec3622aaf5f756ba8e8befd43 (diff)
- rpm/kernel-docs.spec.in: Allow to build against any version of
kernel-source
-rw-r--r--rpm/kernel-docs.spec.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpm/kernel-docs.spec.in b/rpm/kernel-docs.spec.in
index ab236b7d23..7b82c86a05 100644
--- a/rpm/kernel-docs.spec.in
+++ b/rpm/kernel-docs.spec.in
@@ -31,7 +31,7 @@ Release: @RELEASE_PREFIX@<RELEASE>
Release: @RELEASE_PREFIX@0
%endif
BuildRequires: docbook-toys docbook-utils ghostscript_any libjpeg-devel texlive transfig xmlto xorg-x11-devel
-BuildRequires: kernel-source%variant = %version-%source_rel
+BuildRequires: kernel-source%variant
Url: http://www.kernel.org/
License: GPL v2 or later
Group: Documentation/Man
@@ -61,8 +61,8 @@ EOF
# use texmf.cnf from local source
export TEXMFCNF=$RPM_BUILD_DIR
export LANG=en_US
-make -C /usr/src/linux-%kernelrelease%variant O=$PWD -k -i mandocs %{?jobs:-j%jobs}
-make -C /usr/src/linux-%kernelrelease%variant O=$PWD -k -i pdfdocs %{?jobs:-j%jobs}
+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}
%install
rm -rf $RPM_BUILD_ROOT
@@ -86,7 +86,7 @@ fi
ln -s /usr/share/man/man9/request_threaded_irq.9.gz $RPM_BUILD_ROOT/usr/share/man/man9/request_irq.9.gz
-cp -a /usr/src/linux-%kernelrelease%variant/{COPYING,CREDITS,MAINTAINERS,README,REPORTING-BUGS} .
+cp -a /usr/src/linux%variant/{COPYING,CREDITS,MAINTAINERS,README,REPORTING-BUGS} .
%clean
rm -rf $RPM_BUILD_ROOT