Blame SPECS/oracleasm.spec

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