File kernel-devel.spec of Package kernel-devel

#
# spec file for package kernel-devel
#
# Copyright (c) 2018 SUSE LINUX 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://bugs.opensuse.org/
#

# Source:         https://yum.oracle.com/repo/OracleLinux/OL7/UEKR5/x86_64/getPackage/kernel-uek-devel-%{version}-%{release}.%{_arch}.rpm
#1818.2.1.el7uek

Name: kernel-devel
Version: %{uek_version}
Release: 1902.305.4.el7uek
BuildArch: x86_64
License: GPLv2
Group: System Environment/Kernel
Source:         https://yum.oracle.com/repo/OracleLinux/OL7/UEKR5/x86_64/getPackage/kernel-uek-devel-%{version}-1902.305.4.el7uek.%{_arch}.rpm
BuildRequires:  rpm cpio
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Vendor: Oracle America
URL: http://www.kernel.org/
Summary: Development package for building kernel modules to match the kernel
# We switch off AutoReq, as we don't want the dtrace dependencies ...
# Thus use the dependencies that rpmbuild would otherwise collect minus the libdtrace stuff ...
#Requires: /bin/bash /bin/sh /usr/bin/awk /usr/bin/env /usr/bin/perl /usr/bin/python libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.8)(64bit) libcrypto.so.10()(64bit) libcrypto.so.10(libcrypto.so.10)(64bit) libdw.so.1()(64bit) libdw.so.1(ELFUTILS_0.122)(64bit) libdw.so.1(ELFUTILS_0.143)(64bit) libdw.so.1(ELFUTILS_0.156)(64bit) libelf.so.1()(64bit) libelf.so.1(ELFUTILS_1.0)(64bit) libelf.so.1(ELFUTILS_1.5)(64bit) libglib-2.0.so.0()(64bit) libz.so.1()(64bit) perl(Cwd) perl(Fcntl) perl(File::Basename) perl(File::Find) perl(File::Spec) perl(File::Temp) perl(Getopt::Long) perl(Getopt::Std) perl(IO::Handle) perl(Math::BigInt) perl(POSIX) perl(Term::ANSIColor) perl(bytes) perl(constant) perl(strict) perl(warnings) rtld(GNU_HASH)
#AutoReq: No
Provides: kernel-uek-devel

%description
This package provides kernel headers and makefiles sufficient to build modules
against the Oracle 7 UEK R5 kernel package.

%prep

%build

%install
mkdir -p $RPM_BUILD_ROOT/usr/src/kernels
cd $RPM_BUILD_ROOT
rpm2cpio %{S:0} | cpio -i --make-directories


%files
%defattr(-,root,root)
#%doc ChangeLog README COPYING
%dir /usr/src/kernels
/usr/src/kernels/%{version}-1902.305.4.el7uek.%{_arch}

%changelog

openSUSE Build Service is sponsored by