Accepting request 619531 from home:hauky:branches:filesystems

minor cleanups

OBS-URL: https://build.opensuse.org/request/show/619531
OBS-URL: https://build.opensuse.org/package/show/filesystems/openafs?expand=0&rev=19
This commit is contained in:
Christof Hanke 2018-06-28 09:17:29 +00:00 committed by Git OBS Bridge
parent deab0d5754
commit 5828a742ca
2 changed files with 5 additions and 11 deletions

View File

@ -129,10 +129,7 @@ Requires(post): %insserv_prereq
Requires(post): %fillup_prereq
%if %{build_kernel_modules}
BuildRequires: kernel-source
BuildRequires: kernel-syms
BuildRequires: libelf-devel
BuildRequires: module-init-tools
BuildRequires: %{kernel_module_package_buildreqs}
%endif
%description
@ -238,9 +235,8 @@ module.
%package KMP
Summary: OpenAFS Distributed File System - kernel module
Group: System/Kernel
Requires: %{kernel_module_package_buildreqs}
%kernel_module_package -x lockdep um xen pae -p %_sourcedir/preamble -n %%{name}
%kernel_module_package -x lockdep um pae -p %{S:30}
%description KMP
This package contains the kernel module for OpenAFS. For details see
@ -387,7 +383,7 @@ for flavor in %flavors_to_build; do
pushd obj/$flavor
./configure --with-linux-kernel-build=/usr/src/linux-obj/%{_target_cpu}/$flavor --with-linux-kernel-headers=/usr/src/linux \
--disable-transarc-paths
export LINUX_MAKE_ARCH="ARCH=%{_arch}"
export LINUX_MAKE_ARCH=%{?linux_make_arch}
make
popd
done
@ -457,10 +453,9 @@ install -m 644 LICENSE %{buildroot}/usr/src/kernel-modules/openafs/LICENSE
%if %{build_kernel_modules}
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR=updates
export LINUX_MAKE_ARCH="ARCH=%{_arch}"
for flavor in %flavors_to_build; do
make -C /usr/src/linux-obj/%{_arch}/$flavor $LINUX_MAKE_ARCH modules_install \
make -C /usr/src/linux-obj/%{_arch}/$flavor %{?linux_make_arch} modules_install \
M=$PWD/`find obj/$flavor/ -name MODLOAD-\* -type d`
done
%endif

View File

@ -1,4 +1,3 @@
Requires: kernel-%1
Requires: kernel-syms modutils
Requires: %{name}-client = %{version}
Conflicts: %{name}-fuse-client = %{version}