~jan-kneschke/mysql-proxy/packet-tracking-assertions

« back to all changes in this revision

Viewing changes to tags/mysql-proxy-0.6.1/mysql-proxy.spec.in

  • Committer: Kay Roepke
  • Author(s): Jan Kneschke
  • Date: 2008-01-23 22:00:28 UTC
  • Revision ID: kay@mysql.com-20080123220028-hq2xqb69apa75fnx
first round on mysql-shell based on the proxy code

this is mostly a verification if the proxy-code is flexible enough to handle 
all three scenarios of: client, server and forwarding (proxy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Simple RPM spec file for mysql-proxy
 
3
# written by Lenz Grimmer <lenz@mysql.com>
 
4
#
 
5
%define prefix   /usr
 
6
 
 
7
Summary: A Proxy for the MySQL Client/Server protocol
 
8
Name: mysql-proxy
 
9
Version: @VERSION@
 
10
Release: 0
 
11
License: GPL
 
12
Group: Applications/Networking
 
13
Source: %{name}-%{version}.tar.gz
 
14
URL: http://forge.mysql.com/wiki/MySQL_Proxy
 
15
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
16
BuildRequires: mysql-devel glib2-devel libevent
 
17
%if 0%{?suse_version} > 1010
 
18
%define with_lua 1
 
19
%endif
 
20
%if 0%{?with_lua}
 
21
BuildRequires:  lua-devel >= 5.1
 
22
%endif
 
23
 
 
24
%description
 
25
MySQL Proxy is a simple program that sits between your client and MySQL
 
26
server(s) that can monitor, analyze or transform their communication. Its
 
27
flexibility allows for unlimited uses; common ones include: load balancing;
 
28
failover; query analysis; query filtering and modification; and many more.
 
29
 
 
30
%prep
 
31
%setup
 
32
 
 
33
%build
 
34
%configure \
 
35
%if 0%{?with_lua}
 
36
  --with-lua
 
37
%else
 
38
  --without-lua
 
39
%endif
 
40
%{__make}
 
41
 
 
42
%install
 
43
%makeinstall
 
44
# we package them later in the documentation. no reason to have them here
 
45
%{__rm} -v %{buildroot}%{_datadir}/*.lua
 
46
# we dont need to package the Makefile stuff
 
47
%{__rm} -v examples/Makefile*
 
48
 
 
49
%clean
 
50
%{__rm} -rfv %{buildroot}
 
51
 
 
52
%files
 
53
%defattr(-,root,root)
 
54
%doc AUTHORS COPYING INSTALL NEWS README README.TESTS
 
55
%doc examples/
 
56
%{_sbindir}/%{name}
 
57
%{_datadir}/%{name}/