Browse Source

MySQL-5.5.27-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6810 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 11 years ago
parent
commit
57c949443f
1 changed files with 41 additions and 5 deletions
  1. 41 5
      M/MySQL/MySQL-vl.spec

+ 41 - 5
M/MySQL/MySQL-vl.spec

@@ -15,7 +15,8 @@
 
 %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
 
 %if %{?_dist_release}!="vl5"
@@ -42,6 +43,7 @@ URL:		http://www.mysql.com/
 Source:		mysql-%{version}.tar.gz
 # Don't depend on lib::mtr*
 Source998:	perl-requires-%{name}.sh
+Source1000:	macros.mysql.in
 Patch0:		mysql-5.5.15-jp-all.patch
 
 # lib64 patch for vine
@@ -78,8 +80,8 @@ Release: %{release}
 Summary:	MySQL: a very fast and reliable SQL database server
 Group:		Applications/Databases
 Requires:	fileutils sh-utils net-tools
-Provides:	msqlormysql mysql-server mysql MySQL MySQL5-server
-Obsoletes:	MySQL mysql mysql-server MySQL5-server MySQL-Max
+Provides:	mysql-server mysql MySQL MySQL5-server mysqlserver-%{mysql_base_version}
+Obsoletes:	MySQL mysql mysql-server MySQL5-server
 
 %description server
 The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
@@ -108,13 +110,24 @@ package "MySQL-client" as well!
 Summary: MySQL - Client
 Group: Applications/Databases
 Obsoletes: mysql-client MySQL5-client
-Provides: mysql-client MySQL5-client
+Provides: mysql-client MySQL5-client  mysqlclient-%{mysql_base_version}
 
 %description client
 This package contains the standard MySQL clients and administration tools. 
 
 %{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
 Requires: %{name}-client = %{version}-%{release} perl-DBI perl
 Summary: MySQL - Test suite
@@ -127,7 +140,6 @@ This package contains the MySQL regression test suite.
 
 %{see_base}
 
-
 %package devel
 Summary: MySQL - Development header files and libraries
 Group: Development/Libraries
@@ -289,6 +301,17 @@ touch $RBR%{_sysconfdir}/my.cnf
 # files' warning.
 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/mysqlslap.1*
 
+%files source
+%defattr(-, root, root, 0755)
+%{_datadir}/MySQL-source
+
 %files devel -f optional-files-devel
 %defattr(-, root, root, 0755)
 %doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
@@ -511,6 +538,7 @@ fi
 %{_includedir}/mysql/*
 %{_datadir}/aclocal/mysql.m4
 %{_libdir}/*.so
+%{_sysconfdir}/rpm/*
 %exclude %{_libdir}/*.a
 
 %files -n %{libpkgname}
@@ -541,6 +569,14 @@ fi
 %doc %attr(644, root, man) %{_mandir}/man1/mysqltest_embedded.1*
 
 %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
 - new upstream release.