diff options
Diffstat (limited to 'test/spec_file_2.spec')
| -rw-r--r-- | test/spec_file_2.spec | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/test/spec_file_2.spec b/test/spec_file_2.spec new file mode 100644 index 0000000..f627dcd --- /dev/null +++ b/test/spec_file_2.spec @@ -0,0 +1,56 @@ +# +# spec file for package +# +# Copyright (c) 2014 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://bugzilla.novell.com/ +# + +Name: package-2 +BuildRequires: %kernel_module_package_buildreqs +License: GPL-2.0 +Group: System/Kernel +Summary: Sample Kernel Module Package +Version: 1.0 +Release: 0 +Source0: %name-%version.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%kernel_module_package -x debug -x trace -x xen + +%description +This package contains the hello.ko module. + +%prep +%setup + +set -- * +mkdir source +mv "$@" source/ +mkdir obj + +%build +for flavor in %flavors_to_build; do + rm -rf obj/$flavor + cp -r source obj/$flavor + make -C %{kernel_source $flavor} modules M=$PWD/obj/$flavor +done + +%install +export INSTALL_MOD_PATH=$RPM_BUILD_ROOT +export INSTALL_MOD_DIR=updates +for flavor in %flavors_to_build; do + make -C %{kernel_source $flavor} modules_install M=$PWD/obj/$flavor +done + +%changelog + |
