1 Star 0 Fork 3

守一/Atlas

forked from 奇虎360/Atlas 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mysql-proxy.spec.in 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
Qihoo360 提交于 2013-06-28 16:14 . Atlas open source
#
# Simple RPM spec file for mysql-proxy
# written by Lenz Grimmer <lenz@mysql.com>
#
%define prefix /usr
Summary: A Proxy for the MySQL Client/Server protocol
Name: mysql-proxy
Version: @VERSION@
Release: 0
License: GPL
Group: Applications/Networking
Source: %{name}-%{version}.tar.gz
URL: http://forge.mysql.com/wiki/MySQL_Proxy
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: mysql-devel glib2-devel libevent
%if 0%{?suse_version} > 1010
%define with_lua 1
%endif
%if 0%{?with_lua}
BuildRequires: lua-devel >= 5.1
%endif
%description
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.
%prep
%setup
%build
%configure \
%if 0%{?with_lua}
--with-lua
%else
--without-lua
%endif
%{__make}
%install
%makeinstall
# we package them later in the documentation. no reason to have them here
%{__rm} -v %{buildroot}%{_datadir}/*.lua
# we dont need to package the Makefile stuff
%{__rm} -v examples/Makefile*
%clean
%{__rm} -rfv %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL NEWS README README.TESTS
%doc examples/
%{_bindir}/%{name}
%{_datadir}/%{name}/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/XiaoYRecluse/Atlas.git
git@gitee.com:XiaoYRecluse/Atlas.git
XiaoYRecluse
Atlas
Atlas
master

搜索帮助