SPECS/mysql/mysql.spec
529cb292
 Summary:        MySQL.
 Name:           mysql
2336a3cb
 Version:        5.7.23
 Release:        1%{?dist}
529cb292
 License:        GPLv2
 Group:          Applications/Databases
 Vendor:         VMware, Inc.
 Distribution:   Photon
 Url:            http://www.mysql.com
9a114b11
 Source0:        https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-boost-%{version}.tar.gz
2336a3cb
 %define         sha1 mysql-boost=e88edced7261412e66fc5570ed375bb3a36494bf
529cb292
 
 BuildRequires:  cmake
 BuildRequires:  openssl-devel
 BuildRequires:  zlib-devel
 
 %description
 MySQL is a free, widely used SQL engine. It can be used as a fast database as well as a rock-solid DBMS using a modular engine architecture.
 
 %package devel
a26f86e3
 Summary:        Development headers for mysql
529cb292
 Requires:       %{name} = %{version}-%{release}
 
 %description devel
 Development headers for developing applications linking to maridb
 
 
 %prep
 %setup -q %{name}-boost-%{version}
 
 %build
 cmake . \
       -DCMAKE_INSTALL_PREFIX=/usr   \
       -DWITH_BOOST=boost/boost_1_59_0 \
       -DINSTALL_MANDIR=share/man \
       -DINSTALL_DOCDIR=share/doc \
       -DINSTALL_DOCREADMEDIR=share/doc \
       -DINSTALL_SUPPORTFILESDIR=share/support-files \
       -DCMAKE_BUILD_TYPE=RELEASE \
       -DWITH_EMBEDDED_SERVER=OFF
 
 make %{?_smp_mflags}
 %install
 make DESTDIR=%{buildroot} install
 
 %check
83c5a3d0
 make test
529cb292
 
 %files
 %defattr(-,root,root)
 %doc COPYING  README
 %{_libdir}/plugin/*
 %{_libdir}/libmysqlclient.so.*
 %{_bindir}/*
 %{_mandir}/man1/*
 %{_mandir}/man8/*
 %{_datadir}/support-files/*
 %exclude /usr/mysql-test
 %exclude /usr/docs
 %exclude /usr/share
 
 %files devel
 %{_libdir}/libmysqlclient.so
 %{_libdir}/*.a
 %{_includedir}/*
 %{_libdir}/pkgconfig/mysqlclient.pc
 
 %changelog
2336a3cb
 *   Wed Aug 08 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 5.7.23-1
 -   Update to version 5.7.23 to get it to build with gcc 7.3
21ced524
 *   Thu Jan 25 2018 Divya Thaluru <dthaluru@vmware.com> 5.7.20-2
 -   Added patch for CVE-2018-2696
9a114b11
 *   Wed Oct 25 2017 Xiaolin Li <xiaolinl@vmware.com> 5.7.20-1
 -   Update to version 5.7.20
a26f86e3
 *   Fri Oct 13 2017 Alexey Makhalov <amakhalov@vmware.com> 5.7.18-3
 -   Fix typo in description
83c5a3d0
 *   Fri Jul 14 2017 Xiaolin Li <xiaolinl@vmware.com> 5.7.18-2
 -   Run make test in the %check section
529cb292
 *   Tue Jun 13 2017 Xiaolin Li <xiaolinl@vmware.com> 5.7.18-1
 -   Initial packaging for Photon