|
@@ -15,7 +15,8 @@
|
|
|
|
|
|
%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
|
|
%define see_base For a description of MySQL see the base MySQL RPM or http://www.mysql.com
|
|
|
|
|
|
-%define mysql_version 5.5.24
|
|
+%define mysql_base_version 5.5
|
|
|
|
+%define mysql_version 5.5.27
|
|
%define client_version 18
|
|
%define client_version 18
|
|
|
|
|
|
%if %{?_dist_release}!="vl5"
|
|
%if %{?_dist_release}!="vl5"
|
|
@@ -42,6 +43,7 @@ URL: http://www.mysql.com/
|
|
Source: mysql-%{version}.tar.gz
|
|
Source: mysql-%{version}.tar.gz
|
|
# Don't depend on lib::mtr*
|
|
# Don't depend on lib::mtr*
|
|
Source998: perl-requires-%{name}.sh
|
|
Source998: perl-requires-%{name}.sh
|
|
|
|
+Source1000: macros.mysql.in
|
|
Patch0: mysql-5.5.15-jp-all.patch
|
|
Patch0: mysql-5.5.15-jp-all.patch
|
|
|
|
|
|
# lib64 patch for vine
|
|
# lib64 patch for vine
|
|
@@ -78,8 +80,8 @@ Release: %{release}
|
|
Summary: MySQL: a very fast and reliable SQL database server
|
|
Summary: MySQL: a very fast and reliable SQL database server
|
|
Group: Applications/Databases
|
|
Group: Applications/Databases
|
|
Requires: fileutils sh-utils net-tools
|
|
Requires: fileutils sh-utils net-tools
|
|
-Provides: msqlormysql mysql-server mysql MySQL MySQL5-server
|
|
+Provides: mysql-server mysql MySQL MySQL5-server mysqlserver-%{mysql_base_version}
|
|
-Obsoletes: MySQL mysql mysql-server MySQL5-server MySQL-Max
|
|
+Obsoletes: MySQL mysql mysql-server MySQL5-server
|
|
|
|
|
|
%description server
|
|
%description server
|
|
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
|
|
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
|
|
@@ -108,13 +110,24 @@ package "MySQL-client" as well!
|
|
Summary: MySQL - Client
|
|
Summary: MySQL - Client
|
|
Group: Applications/Databases
|
|
Group: Applications/Databases
|
|
Obsoletes: mysql-client MySQL5-client
|
|
Obsoletes: mysql-client MySQL5-client
|
|
-Provides: mysql-client MySQL5-client
|
|
+Provides: mysql-client MySQL5-client mysqlclient-%{mysql_base_version}
|
|
|
|
|
|
%description client
|
|
%description client
|
|
This package contains the standard MySQL clients and administration tools.
|
|
This package contains the standard MySQL clients and administration tools.
|
|
|
|
|
|
%{see_base}
|
|
%{see_base}
|
|
|
|
|
|
|
|
+%package source
|
|
|
|
+Summary: MySQL - Source
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: MySQL-devel = %{version}-%{release}
|
|
|
|
+AutoReqProv: no
|
|
|
|
+
|
|
|
|
+%description source
|
|
|
|
+This package contains the sources files of MySQL.
|
|
|
|
+
|
|
|
|
+%{see_base}
|
|
|
|
+
|
|
%package test
|
|
%package test
|
|
Requires: %{name}-client = %{version}-%{release} perl-DBI perl
|
|
Requires: %{name}-client = %{version}-%{release} perl-DBI perl
|
|
Summary: MySQL - Test suite
|
|
Summary: MySQL - Test suite
|
|
@@ -127,7 +140,6 @@ This package contains the MySQL regression test suite.
|
|
|
|
|
|
%{see_base}
|
|
%{see_base}
|
|
|
|
|
|
-
|
|
|
|
%package devel
|
|
%package devel
|
|
Summary: MySQL - Development header files and libraries
|
|
Summary: MySQL - Development header files and libraries
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
@@ -289,6 +301,17 @@ touch $RBR%{_sysconfdir}/my.cnf
|
|
# files' warning.
|
|
# files' warning.
|
|
rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
|
|
rm -f $RBR%{_mandir}/man1/make_win_bin_dist.1*
|
|
|
|
|
|
|
|
+mkdir -p $RBR%{_datadir}/%{name}-source
|
|
|
|
+pushd $RBR%{_datadir}/%{name}-source
|
|
|
|
+tar zxf %{SOURCE0}
|
|
|
|
+find $RBR%{_datadir}/%{name}-source -type f -exec chmod ugo-x {} \;
|
|
|
|
+popd
|
|
|
|
+
|
|
|
|
+mkdir -p $RBR%{_sysconfdir}/rpm
|
|
|
|
+sed -e 's/@BASEVERSION@/%{mysql_base_version}/' -e 's/@VERSION@/%{version}/' -e 's/@RELEASE@/%{release}/' < %{SOURCE1000} > $RBR%{_sysconfdir}/rpm/macros.mysql
|
|
|
|
+
|
|
|
|
+rm -f $RBR%{_libdir}/mysql/plugin/daemon_example.ini
|
|
|
|
+
|
|
##############################################################################
|
|
##############################################################################
|
|
|
|
|
|
|
|
|
|
@@ -501,6 +524,10 @@ fi
|
|
%doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
|
|
%doc %attr(644, root, man) %{_mandir}/man1/mysqlshow.1*
|
|
%doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
|
|
%doc %attr(644, root, man) %{_mandir}/man1/mysqlslap.1*
|
|
|
|
|
|
|
|
+%files source
|
|
|
|
+%defattr(-, root, root, 0755)
|
|
|
|
+%{_datadir}/MySQL-source
|
|
|
|
+
|
|
%files devel -f optional-files-devel
|
|
%files devel -f optional-files-devel
|
|
%defattr(-, root, root, 0755)
|
|
%defattr(-, root, root, 0755)
|
|
%doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
|
|
%doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
|
|
@@ -511,6 +538,7 @@ fi
|
|
%{_includedir}/mysql/*
|
|
%{_includedir}/mysql/*
|
|
%{_datadir}/aclocal/mysql.m4
|
|
%{_datadir}/aclocal/mysql.m4
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.so
|
|
|
|
+%{_sysconfdir}/rpm/*
|
|
%exclude %{_libdir}/*.a
|
|
%exclude %{_libdir}/*.a
|
|
|
|
|
|
%files -n %{libpkgname}
|
|
%files -n %{libpkgname}
|
|
@@ -541,6 +569,14 @@ fi
|
|
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
|
|
%doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Sep 15 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.27-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- added a sub-package 'MySQL-source".
|
|
|
|
+- added some macros for rpm.
|
|
|
|
+
|
|
|
|
+* Thu Jun 21 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.25-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Thu May 10 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.24-1
|
|
* Thu May 10 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.5.24-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|