[packages/linux-fusion] - add -kernel suffix to (srpm) package name when building kernel modules on builders - autogenerate

baggins baggins at pld-linux.org
Mon Oct 28 13:42:58 CET 2013


commit 8d9a6cc4b608797a84248e7a85c6780de7ca7ca8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Oct 28 13:42:26 2013 +0100

    - add -kernel suffix to (srpm) package name when building kernel modules on builders
    - autogenerate kernel BRs
    - rel 13

 linux-fusion.spec | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/linux-fusion.spec b/linux-fusion.spec
index a56312d..848f04f 100644
--- a/linux-fusion.spec
+++ b/linux-fusion.spec
@@ -34,25 +34,24 @@ exit 1
 %define		_enable_debug_packages	0
 %endif
 
+%define		kbrs	%(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo "BuildRequires:kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2" ; done)
 %define		kpkg	%(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%kernel_pkg ; done)
 %define		bkpkg	%(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%build_kernel_pkg ; done)
 
-%define		rel	12
+%define		rel	13
 %define		pname	linux-fusion
 Summary:	Fusion and One Linux kernel modules
 Summary(pl.UTF-8):	Moduły Fusion i One dla jądra Linuksa
-Name:		%{pname}%{_alt_kernel}
+Name:		%{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel}
 Version:	9.0.2
-Release:	%{rel}%{?with_kernel:@%{_kernel_ver_str}}
+Release:	%{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}}
 License:	GPL v2+
 Group:		Base/Kernel
 Source0:	http://www.directfb.org/downloads/Core/linux-fusion/%{pname}-%{version}.tar.gz
 # Source0-md5:	f025373d2fe6d58e572f27410dadcf1f
 URL:		http://www.directfb.org/
-%if %{with kernel}
-%{?with_dist_kernel:BuildRequires:	kernel-module-build >= 3:2.6.20.2}
+%{?with_dist_kernel:%{expand:%kbrs}}
 BuildRequires:	rpmbuild(macros) >= 1.678
-%endif
 BuildRequires:	sed >= 4.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/linux-fusion.git/commitdiff/8d9a6cc4b608797a84248e7a85c6780de7ca7ca8



More information about the pld-cvs-commit mailing list