From aa4897761a75c7718624d9a00ee998ba46cc31a9 Mon Sep 17 00:00:00 2001 From: Simon J Mudd Date: Wed, 8 Mar 2017 10:15:39 +0100 Subject: [PATCH] Adjust spec file to show a proper rpmbuild command Also give an example for RHEL 7 --- packaging/rpm-oel/mysql.spec.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packaging/rpm-oel/mysql.spec.in b/packaging/rpm-oel/mysql.spec.in index 748eefc50d7..4cd30eab518 100644 --- a/packaging/rpm-oel/mysql.spec.in +++ b/packaging/rpm-oel/mysql.spec.in @@ -14,8 +14,14 @@ # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston # MA 02110-1301 USA. -# Rebuild on OL5/RHEL5 needs following rpmbuild options: -# rpmbuild --define 'dist .el5' --define 'rhel 5' --define 'el5 1' mysql.spec +# To build on OL5..OL7/RHEL5..RHEL7 you need one of the following +# rpmbuild options: +# --define 'dist .el5' --define 'rhel 5' --define 'el5 1' # OL5/RHEL5 +# --define 'dist .el6' --define 'rhel 6' --define 'el6 1' # OL6/RHEL6 +# --define 'dist .el7' --define 'rhel 7' --define 'el7 1' # OL7/RHEL7 +# +# So to build for EL7/RHEL7 you would run the following: +# $ rpmbuild -ba --define 'dist .el7' --define 'rhel 7' --define 'el7 1' mysql.spec # Install cmake28 from EPEL when building on OL5/RHEL5 and OL6/RHEL6.