Author: ruben
Update of /cvs/pkgs/rpms/mysql-proxy/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24312
Modified Files:
.cvsignore mysql-proxy.spec sources
Log Message:
* Sun Jan 31 2010 Ruben Kerkhof <ruben(a)rubenkerkhof.com> 0.8.0-1
- Upstream released new version
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mysql-proxy/devel/.cvsignore,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- .cvsignore 12 Aug 2009 17:28:31 -0000 1.5
+++ .cvsignore 31 Jan 2010 19:49:36 -0000 1.6
@@ -1 +1 @@
-mysql-proxy-0.7.2.tar.gz
+mysql-proxy-0.8.0.tar.gz
Index: mysql-proxy.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mysql-proxy/devel/mysql-proxy.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- mysql-proxy.spec 12 Aug 2009 17:28:31 -0000 1.10
+++ mysql-proxy.spec 31 Jan 2010 19:49:36 -0000 1.11
@@ -1,5 +1,5 @@
Name: mysql-proxy
-Version: 0.7.2
+Version: 0.8.0
Release: 1%{?dist}
Summary: A proxy for the MySQL Client/Server protocol
@@ -9,8 +9,8 @@ URL:
http://forge.mysql.com/w
# I haven't found a link to a direct download location, only to mirrors
Source0:
http://mysql.he.net/Downloads/MySQL-Proxy/%{name}-%{version}.tar.gz
-Source1: %{name}.init
-Source2: %{name}.sysconfig
+Source1: %{name}.init
+Source2: %{name}.sysconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: lua-devel
@@ -31,13 +31,24 @@ Requires(postun): initscripts
MySQL Proxy is a simple program that sits between your client and MySQL
server(s) that can monitor, analyze or transform their communication.
Its flexibility allows for unlimited uses, common ones include: load balancing,
-failover, query analysis, query filtering and modification and many more.
+fail-over, query analysis, query filtering and modification and many more.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name} = %{version}-%{release}
+Requires: pkgconfig
+
+
+%description devel
+Development files for %{name}
+
%prep
%setup -q -n %{name}-%{version}
sed -i 's/g_build_filename(base_dir, "lib"/g_build_filename(base_dir,
"%{_lib}"/g' src/chassis.c
sed -i 's/g_build_filename(srv->base_dir,
"lib"/g_build_filename(srv->base_dir, "%{_lib}"/g'
src/chassis.c
+
%build
%configure
# strip rpath
@@ -55,25 +66,30 @@ rm -v examples/Makefile* examples/CMakeL
install -Dp -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}
install -Dp -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
+
%clean
rm -rf %{buildroot}
+
%pre
getent group %{name} &>/dev/null || groupadd -r %{name} &>/dev/null
getent passwd %{name} &>/dev/null || \
useradd -r -g %{name} -d / -s /sbin/nologin \
-c "MySQL-Proxy user" %{name} &>/dev/null || :
+
%post
ldconfig
/sbin/chkconfig --add %{name} || :
+
%preun
if [ "$1" = 0 ] ; then
/sbin/service %{name} stop > /dev/null 2>&1
/sbin/chkconfig --del %{name} || :
fi
+
%postun
ldconfig
if [ "$1" -ge 1 ]; then
@@ -85,16 +101,27 @@ fi
%defattr(-,root,root,-)
%doc AUTHORS COPYING README NEWS
%doc examples/
-%{_sbindir}/%{name}
+%{_bindir}/%{name}
%{_initrddir}/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_bindir}/mysql-binlog-dump
%{_bindir}/mysql-myisam-dump
-%{_libdir}/libmysql-chassis.so*
-%{_libdir}/libmysql-proxy.so*
+%{_libdir}/libmysql-*.so.*
%{_libdir}/%{name}
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*.h
+%{_libdir}/libmysql-*.so
+%{_libdir}/pkgconfig/mysql-chassis.pc
+%{_libdir}/pkgconfig/mysql-proxy.pc
+
+
%changelog
+* Sun Jan 31 2010 Ruben Kerkhof <ruben(a)rubenkerkhof.com> 0.8.0-1
+- Upstream released new version
+
* Wed Aug 12 2009 Ruben Kerkhof <ruben(a)rubenkerkhof.com> 0.7.2-1
- Upstream released new version
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mysql-proxy/devel/sources,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- sources 12 Aug 2009 17:28:31 -0000 1.5
+++ sources 31 Jan 2010 19:49:36 -0000 1.6
@@ -1 +1 @@
-85caf142acfb4ee7ae5a8bce175579f7 mysql-proxy-0.7.2.tar.gz
+b6a9748d72e8db7fe3789fbdd60ff451 mysql-proxy-0.8.0.tar.gz