fix .spec

This commit is contained in:
Timofey Turenko
2014-03-06 13:14:16 +02:00
parent 895ef4548e
commit 993f3375fa

View File

@ -2,7 +2,6 @@
%define name maxscale
%define release ##RELEASE_TAG##
%define version ##VERSION_TAG##
%define buildroot %{_topdir}/%{name}-%{version}-%{release}root
%define install_path /usr/local/sbin/
BuildRoot: %{buildroot}
@ -15,7 +14,7 @@ Source: %{name}-%{version}-%{release}.tar.gz
Prefix: /
Group: Development/Tools
#Requires:
BuildRequires: gcc gcc-c++ ncurses-devel bison glibc-devel cmake libgcc perl make libtool openssl-devel
BuildRequires: gcc gcc-c++ ncurses-devel bison glibc-devel cmake libgcc perl make libtool openssl-devel libaio
%description
MaxScale
@ -25,12 +24,13 @@ MaxScale
%setup -q
%build
MARIADB_SRC_PATH=/home/ec2-user/.jenkins/jobs/MariaDB_for_MaxScale/workspace
make ROOT_PATH=`pwd` MARIADB_SRC_PATH=$MARIADB_SRC_PATH depend
make ROOT_PATH=`pwd` MARIADB_SRC_PATH=$MARIADB_SRC_PATH
ln -s /lib64/libaio.so.1 /lib64/libaio.so
make ROOT_PATH=`pwd` depend
make ROOT_PATH=`pwd`
make DEST=`pwd`/binaries ROOT_PATH=`pwd` MARIADB_SRC_PATH=$MARIADB_SRC_PATH install
%post
ln -s /lib64/libaio.so.1 /lib64/libaio.so
%install
mkdir -p $RPM_BUILD_ROOT%{install_path}
@ -43,4 +43,3 @@ cp -r binaries/* $RPM_BUILD_ROOT%{install_path}
%{install_path}
%changelog