26
by lgrimmer
- Added RPM spec file, updated Makefile.am to include it in the source distribution |
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 |
|
171
by lgrimmer
- Applied some modifications to the RPM spec file, taken from the spec file used |
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
|
|
26
by lgrimmer
- Added RPM spec file, updated Makefile.am to include it in the source distribution |
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
|
|
171
by lgrimmer
- Applied some modifications to the RPM spec file, taken from the spec file used |
34 |
%configure \
|
35 |
%if 0%{?with_lua} |
|
36 |
--with-lua |
|
37 |
%else
|
|
38 |
--without-lua |
|
39 |
%endif
|
|
40 |
%{__make} |
|
26
by lgrimmer
- Added RPM spec file, updated Makefile.am to include it in the source distribution |
41 |
|
42 |
%install
|
|
43 |
%makeinstall
|
|
171
by lgrimmer
- Applied some modifications to the RPM spec file, taken from the spec file used |
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*
|
|
26
by lgrimmer
- Added RPM spec file, updated Makefile.am to include it in the source distribution |
48 |
|
49 |
%clean
|
|
171
by lgrimmer
- Applied some modifications to the RPM spec file, taken from the spec file used |
50 |
%{__rm} -rfv %{buildroot}
|
26
by lgrimmer
- Added RPM spec file, updated Makefile.am to include it in the source distribution |
51 |
|
52 |
%files
|
|
53 |
%defattr(-,root,root)
|
|
171
by lgrimmer
- Applied some modifications to the RPM spec file, taken from the spec file used |
54 |
%doc AUTHORS COPYING INSTALL NEWS README README.TESTS
|
55 |
%doc examples/
|
|
26
by lgrimmer
- Added RPM spec file, updated Makefile.am to include it in the source distribution |
56 |
%{_sbindir}/%{name}
|
181
by jkneschke
move the base-scripts into the pkgdata folder and include them in the |
57 |
%{_datadir}/%{name}/
|