[packages/test/newkernel] - when kernel modules are part of package build, add @_kernel_ver_str to release tag
baggins
baggins at pld-linux.org
Mon Oct 21 12:10:13 CEST 2013
commit de22599c9215c5e9ba1e14fd73ba55eeaefef8d3
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Oct 21 12:09:26 2013 +0200
- when kernel modules are part of package build, add @_kernel_ver_str to release tag
test.spec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/test.spec b/test.spec
index 1da3891..cf6d495 100644
--- a/test.spec
+++ b/test.spec
@@ -61,7 +61,7 @@ touch kernel%{_alt_kernel}-net-%{pname}.list\
Summary: testing something
Name: %{pname}
Version: 1
-Release: %{rel}
+Release: %{rel}%{?with_kernel:@%{_kernel_ver_str}}
License: GPL
Group: Applications/System
URL: http://www.pld-linux.org/
@@ -71,7 +71,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
testing something
-%{expand:%kpkg}
+%{?with_kernel:%{expand:%kpkg}}
%prep
%setup -qcT
@@ -80,7 +80,7 @@ testing something
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT
-%{expand:%bkpkg}
+%{?with_kernel:%{expand:%bkpkg}}
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/test.git/commitdiff/de22599c9215c5e9ba1e14fd73ba55eeaefef8d3
More information about the pld-cvs-commit
mailing list