Blame SPECS/oracleasm.spec

aa146a
%define kmod_name		oracleasm
aa146a
%define kmod_driver_version	2.0.8
e38888
%define kmod_rpm_release	28
aa146a
%define kmod_git_hash		73eec1df4b6aec6e850db5015d74dbf6dee01e01
e38888
%define kmod_kernel_version	3.10.0-1133.el7
e38888
%define kernel_version		3.10.0-1133.el7
aa146a
%define kmod_kbuild_dir		drivers/block/oracleasm
aa146a
aa146a
aa146a
%{!?dist: %define dist .el7}
aa146a
aa146a
Source0:	%{kmod_name}-%{kmod_driver_version}.tar.bz2
aa146a
Source1:	%{kmod_name}.files
aa146a
Source2:	depmodconf
aa146a
Source3:	find-requires.ksyms
aa146a
Source4:	find-provides.ksyms
aa146a
Source5:	kmodtool
aa146a
Source6:	symbols.greylist-x86_64
aa146a
Source7:	oracleasm.preamble
aa146a
aa146a
Patch0:         oracleasm.patch
aa146a
Patch1:         classify-device-connectivity-issues-as-global-errors.patch
aa146a
Patch2:         use-after-free-asm-request.patch
aa146a
aa146a
%define __find_requires %_sourcedir/find-requires.ksyms
aa146a
%define __find_provides %_sourcedir/find-provides.ksyms %{kmod_name} %{?epoch:%{epoch}:}%{version}-%{release}
aa146a
aa146a
Name:		%{kmod_name}
aa146a
Version:	%{kmod_driver_version}
aa146a
Release:	%{kmod_rpm_release}%{?dist}
aa146a
Summary:	%{kmod_name} kernel module
aa146a
aa146a
Group:		System/Kernel
aa146a
License:	GPLv2
aa146a
URL:		http://www.kernel.org/
aa146a
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
aa146a
BuildRequires:	%kernel_module_package_buildreqs
aa146a
ExclusiveArch:  x86_64
aa146a
aa146a
aa146a
# Build only for standard kernel variant(s); for debug packages, append "debug"
aa146a
# after "default" (separated by space)
aa146a
%kernel_module_package -s %{SOURCE5} -f %{SOURCE1} -p %{SOURCE7} default
aa146a
aa146a
%description
aa146a
%{kmod_name} - driver update
aa146a
aa146a
%prep
aa146a
%setup
aa146a
%patch0 -p1
aa146a
%patch1 -p1
aa146a
%patch2 -p1
aa146a
aa146a
set -- *
aa146a
mkdir source
aa146a
mv "$@" source/
aa146a
cp %{SOURCE6} source/
aa146a
mkdir obj
aa146a
aa146a
%build
aa146a
for flavor in %flavors_to_build; do
aa146a
	rm -rf obj/$flavor
aa146a
	cp -r source obj/$flavor
aa146a
aa146a
	# update symvers file if existing
aa146a
	symvers=source/Module.symvers-%{_target_cpu}
aa146a
	if [ -e $symvers ]; then
aa146a
		cp $symvers obj/$flavor/%{kmod_kbuild_dir}/Module.symvers
aa146a
	fi
aa146a
aa146a
	make -C %{kernel_source $flavor} M=$PWD/obj/$flavor/%{kmod_kbuild_dir} \
aa146a
		NOSTDINC_FLAGS="-I $PWD/obj/$flavor/include"
aa146a
aa146a
	# mark modules executable so that strip-to-file can strip them
aa146a
	find obj/$flavor/%{kmod_kbuild_dir} -name "*.ko" -type f -exec chmod u+x '{}' +
aa146a
done
aa146a
aa146a
%{SOURCE2} %{name} %{kmod_kernel_version} obj > source/depmod.conf
aa146a
aa146a
greylist=source/symbols.greylist-%{_target_cpu}
aa146a
if [ -f $greylist ]; then
aa146a
	cp $greylist source/symbols.greylist
aa146a
else
aa146a
	touch source/symbols.greylist
aa146a
fi
aa146a
aa146a
if [ -d source/firmware ]; then
aa146a
	make -C source/firmware
aa146a
fi
aa146a
aa146a
%install
aa146a
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
aa146a
export INSTALL_MOD_DIR=extra/%{name}
aa146a
for flavor in %flavors_to_build ; do
aa146a
	make -C %{kernel_source $flavor} modules_install \
aa146a
		M=$PWD/obj/$flavor/%{kmod_kbuild_dir}
aa146a
	# Cleanup unnecessary kernel-generated module dependency files.
aa146a
	find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \;
aa146a
done
aa146a
aa146a
install -m 644 -D source/depmod.conf $RPM_BUILD_ROOT/etc/depmod.d/%{kmod_name}.conf
aa146a
install -m 644 -D source/symbols.greylist $RPM_BUILD_ROOT/usr/share/doc/kmod-%{kmod_name}/greylist.txt
aa146a
aa146a
if [ -d source/firmware ]; then
aa146a
	make -C source/firmware INSTALL_PATH=$RPM_BUILD_ROOT INSTALL_DIR=updates install
aa146a
fi
aa146a
aa146a
%clean
aa146a
rm -rf $RPM_BUILD_ROOT
aa146a
aa146a
%changelog
e38888
* Tue Apr 14 2020 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-28
e38888
- For >= kernel-3.10.0-1133.el7
e38888
- Resolves: #1816497
e38888
aa146a
* Tue Aug 27 2019 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-27
aa146a
- For >= kernel-3.10.0-1082.el7
aa146a
- Resolves: #1746010
aa146a
aa146a
* Mon Apr 29 2019 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-26
aa146a
- Revert the addition
aa146a
  of "oracleasm-claim-FMODE_EXCL-access-on-disk-during-asm.patch"
aa146a
  as it introduces regressions ("ERROR: -15 ... asm_open error
aa146a
  Operation not permitted").
aa146a
- Rebuilt against kernel-3.10.0-1043.el7
aa146a
- Resolves: #1700382
aa146a
aa146a
* Tue Mar 12 2019 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-25
aa146a
- Add "oracleasm-claim-FMODE_EXCL-access-on-disk-during-asm.patch"
aa146a
- Resolves: #1684223
aa146a
aa146a
* Tue Feb 05 2019 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-24
aa146a
- Add "use-after-free-asm-request.patch"
aa146a
- (oracleasm: Fix use after free for request processing timer)
aa146a
- Resolves: #1672733
aa146a
aa146a
* Tue Jun 19 2018 Eugene Syromiatnikov <esyr@redhat.com> 2.0.8-22
aa146a
- For >= kernel-3.10.0-907.el7
aa146a
- Resolves: #1568406
aa146a
aa146a
* Thu Feb 22 2018 Petr Oros <poros@redhat.com> 2.0.8-21
aa146a
- For >= kernel-3.10.0-855.el7
aa146a
- Resolves: #1498103
aa146a
aa146a
* Tue Nov 14 2017 Petr Oros <poros@redhat.com> 2.0.8-20
aa146a
- For >= kernel-3.10.0-783.el7
aa146a
- Resolves: #1498103
aa146a
aa146a
* Mon Jun 26 2017 Petr Oros <poros@redhat.com> 2.0.8-19
aa146a
- For >= kernel-3.10.0-685.el7
aa146a
- Resolves: #1441193
aa146a
aa146a
* Thu Apr 13 2017 Petr Oros <poros@redhat.com> 2.0.8-18
aa146a
- For >= kernel-3.10.0-650.el7
aa146a
- Resolves: #1441193
aa146a
aa146a
* Mon Sep 26 2016 Petr Oros <poros@redhat.com> 2.0.8-17
aa146a
- For >= kernel-3.10.0-510.el7
aa146a
- Resolves: #1354376
aa146a
aa146a
* Mon Jul 11 2016 Petr Oros <poros@redhat.com> 2.0.8-16
aa146a
- For >= kernel-3.10.0-461.el7
aa146a
- Resolves: #1354376
aa146a
aa146a
* Mon Oct 26 2015 Petr Oros <poros@redhat.com> 2.0.8-15
aa146a
- For >= kernel-3.10.0-326.el7
aa146a
- Resolves: #1265218
aa146a
aa146a
* Tue Sep 22 2015 Petr Oros <poros@redhat.com> 2.0.8-14
aa146a
- Classify device connectivity issues as global errors
aa146a
- For >= kernel-3.10.0-319.el7
aa146a
- Resolves: #1265218
aa146a
aa146a
* Wed Sep 9 2015 Petr Oros <poros@redhat.com> 2.0.8-13
aa146a
- rebuild for >= kernel-3.10.0-315.el7
aa146a
- Resolves: #1245327
aa146a
aa146a
* Thu Sep 3 2015 Petr Oros <poros@redhat.com> 2.0.8-12
aa146a
- rebuild for kernel-3.10.0-313.el7
aa146a
- Resolves: #1245327
aa146a
aa146a
* Wed Aug 19 2015 Petr Oros <poros@redhat.com> 2.0.8-11
aa146a
- rebuild for kernel-3.10.0-306.0.1.el7
aa146a
- Resolves: #1245327
aa146a
aa146a
* Tue Aug 18 2015 Petr Oros <poros@redhat.com> 2.0.8-10
aa146a
- rebuild for kernel-3.10.0-306.el7
aa146a
- Resolves: #1245327
aa146a
aa146a
* Tue Aug 4 2015 Petr Oros <poros@redhat.com> 2.0.8-9
aa146a
- rebuild for kernel-3.10.0-302.el7
aa146a
- Resolves: #1245327
aa146a
aa146a
* Fri Jan 30 2015 Dave Anderson <anderson@redhat.com> 2.0.8-8
aa146a
- rebuild for kernel-3.10.0-229.el7
aa146a
aa146a
* Wed Jan 28 2015 Jan Blazek <jblazek@redhat.com> 2.0.8-7
aa146a
- rebuild for kernel-3.10.0-227.el7
aa146a
aa146a
* Mon Dec 1 2014 Weiping Pan <wpan@redhat.com> 2.0.8 5
aa146a
- build oracleasm for 7.0.z, 
aa146a
- codes from git://oss.oracle.com/git/linux-uek3-3.8.git,
aa146a
- commit 73eec1df4b6aec6e850db5015d74dbf6dee01e01
aa146a
- patch0 is to replace create_proc_entry with proc_create.
aa146a
aa146a
* Wed Aug 20 2014 Weiping Pan <wpan@redhat.com> 2.0.8 2
aa146a
- rebuild oracleasm for RHEL6.4 in brew, update the version tp 2.0.8-2
aa146a
aa146a
* Mon Aug 11 2014 Weiping Pan <wpan@redhat.com> 2.0.8.rh64 1
aa146a
- rebuild oracleasm for RHEL6.4, update the version tp 2.0.8.rh64-1
aa146a
aa146a
* Tue Jul 15 2014 Weiping Pan <wpan@redhat.com> 2.0.8.rh1 2
aa146a
- rebuild oracleasm for RHEL6.4, sync to upstream commit d368091e98dc
aa146a
- (oracleasm: Add support for new error return codes from block/SCSI)
aa146a
aa146a
* Fri Jan 24 2014 Weiping Pan <wpan@redhat.com> 2.0.8.rh1 1
aa146a
- rebuild oracleasm for RHEL6.5
aa146a
aa146a
* Tue Jan 29 2013 Jiri Benc <jbenc@redhat.com> 2.0.6.rh1 2
aa146a
- providing oracleasm to be compatible with oracleasmlib builds
aa146a
aa146a
* Thu Jan 24 2013 Jiri Benc <jbenc@redhat.com> 2.0.6.rh1 1
aa146a
- updated to a newer version with some fixes
aa146a
aa146a
* Fri Sep  2 2011 Jiri Olsa <jolsa@redhat.com> 2.0.6 5
aa146a
- kernel version fix
aa146a
aa146a
* Tue Aug 30 2011 Jiri Olsa <jolsa@redhat.com> 2.0.6 4
aa146a
- kernel version fix
aa146a
aa146a
* Tue Aug 30 2011 Jiri Olsa <jolsa@redhat.com> 2.0.6 3
aa146a
- kernel version fix
aa146a
aa146a
* Tue Aug 30 2011 Jiri Olsa <jolsa@redhat.com> 2.0.6 2
aa146a
- removed kmod- prefix
aa146a
aa146a
* Tue Jul 19 2011 Jiri Olsa <jolsa@redhat.com> 2.0.6 1
aa146a
- oracleasm DUP module