SPECS: mysql-proxy.spec - add tests, lua patch - am regen fails

glen glen at pld-linux.org
Wed Nov 21 11:22:09 CET 2007


Author: glen                         Date: Wed Nov 21 10:22:09 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add tests, lua patch
- am regen fails

---- Files affected:
SPECS:
   mysql-proxy.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/mysql-proxy.spec
diff -u SPECS/mysql-proxy.spec:1.6 SPECS/mysql-proxy.spec:1.7
--- SPECS/mysql-proxy.spec:1.6	Wed Nov 21 10:51:19 2007
+++ SPECS/mysql-proxy.spec	Wed Nov 21 11:22:04 2007
@@ -1,6 +1,10 @@
 # $Revision$, $Date$
 # TODO
 # - initscript probably
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+#
 Summary:	MySQL Proxy
 Summary(pl.UTF-8):	Proxy MySQL
 Name:		mysql-proxy
@@ -10,10 +14,14 @@
 Group:		Applications
 Source0:	http://mysql.tonnikala.org/Downloads/MySQL-Proxy/%{name}-%{version}.tar.gz
 # Source0-md5:	b76ad6f059f78b9aaca49c8c29cb2719
+Patch0:		%{name}-lua.patch
 URL:		http://forge.mysql.com/wiki/MySQL_Proxy
+BuildRequires:	autoconf
+BuildRequires:	automake
 BuildRequires:	glib2-devel >= 1:2.4.0
 BuildRequires:	libevent-devel
 BuildRequires:	lua51-devel
+%{?with_tests:BuildRequires:	lua51}
 BuildRequires:	mysql-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -34,11 +42,17 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
 	--with-lua=lua51
 %{__make}
+%{?with_tests:%{__make} check}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -53,7 +67,7 @@
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README THANKS
+%doc AUTHORS ChangeLog NEWS README README.TESTS THANKS
 %attr(755,root,root) %{_sbindir}/mysql-proxy
 %{_datadir}/%{name}
 
@@ -63,6 +77,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2007-11-21 10:22:04  glen
+- add tests, lua patch
+- am regen fails
+
 Revision 1.6  2007-11-21 09:51:19  glen
 - update to 0.6.0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/mysql-proxy.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list