[521] | 1 | |
---|
[6103] | 2 | Vendor: Project Vine |
---|
| 3 | Distribution: Vine Linux |
---|
[8348] | 4 | Packager: tomop |
---|
[6103] | 5 | |
---|
[8348] | 6 | %define soversion 18 |
---|
| 7 | |
---|
| 8 | Name: libmysqlclient |
---|
| 9 | Summary: libraries and headers of MariaDB. |
---|
[10852] | 10 | Version: 10.1.20 |
---|
[10644] | 11 | Release: 1%{_dist_release} |
---|
[2087] | 12 | |
---|
[521] | 13 | Group: Applications/Databases |
---|
[8348] | 14 | License: GPLv2 |
---|
| 15 | URL: http://www.mariadb.org/ |
---|
[2087] | 16 | |
---|
[8348] | 17 | Source: mariadb-%{version}.tar.gz |
---|
[2087] | 18 | |
---|
[8348] | 19 | #Patch0: mysql-5.5.15-jp-all.patch |
---|
[2151] | 20 | # lib64 patch for vine |
---|
[8348] | 21 | #Patch200: pysql-5.1.44-lib64.patch |
---|
[2151] | 22 | |
---|
[8348] | 23 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 24 | BuildRequires: perl, readline-devel, libaio-devel, libevent-devel |
---|
| 25 | BuildRequires: gcc-c++, ncurses-devel, zlib-devel, openssl-devel |
---|
| 26 | BuildRequires: groff, cmake, bison |
---|
| 27 | Requires: fileutils sh-utils |
---|
[521] | 28 | |
---|
| 29 | %description |
---|
[8348] | 30 | build client libraries and headers of MariaDB. |
---|
[521] | 31 | |
---|
| 32 | |
---|
[8348] | 33 | %package -n mariadb-common |
---|
| 34 | Summary: The configuration file of MariaDB server and clients |
---|
| 35 | Group: Applications/System |
---|
[521] | 36 | |
---|
[8348] | 37 | %description -n mariadb-common |
---|
| 38 | This package contains the configuration file for MariaDB server and |
---|
| 39 | clients. |
---|
[521] | 40 | |
---|
| 41 | |
---|
[8348] | 42 | %package -n libmysqlclient%{soversion} |
---|
| 43 | Summary: The shared libraries required for MariaDB/MySQL clients |
---|
| 44 | Group: System Environment/Libraries |
---|
| 45 | Requires: mariadb-common |
---|
| 46 | Obsoletes: MySQL-shared < 5.5.0 |
---|
[521] | 47 | |
---|
[8348] | 48 | %description -n libmysqlclient%{soversion} |
---|
| 49 | This package contains the shared libraries which certain languages |
---|
| 50 | and applications need to dynamically load and use MariaDB/MySQL. |
---|
[521] | 51 | |
---|
| 52 | |
---|
| 53 | %package devel |
---|
[8348] | 54 | Summary: libraries and headers for MariaDB/MySQL clients |
---|
[2087] | 55 | Group: Development/Libraries |
---|
[8348] | 56 | Requires: libmysqlclient%{soversion} = %{version}-%{release} |
---|
[3541] | 57 | Requires: openssl-devel, zlib-devel |
---|
[8460] | 58 | Provides: MySQL-devel mysql-devel MySQL5-devel |
---|
| 59 | Obsoletes: MySQL-devel mysql-devel MySQL5-devel |
---|
| 60 | Conflicts: mariadb-devel |
---|
[521] | 61 | |
---|
| 62 | %description devel |
---|
[8348] | 63 | This package contains the development header files and libraries |
---|
| 64 | necessary to develop MariaDB/MySQL client applications. |
---|
[521] | 65 | |
---|
| 66 | |
---|
| 67 | %prep |
---|
[8348] | 68 | %setup -q -n mariadb-%{version} |
---|
[521] | 69 | |
---|
[8348] | 70 | #%patch0 -p1 -b .jp |
---|
[521] | 71 | |
---|
| 72 | |
---|
| 73 | %build |
---|
| 74 | |
---|
[4643] | 75 | # Be strict about variables, bail at earliest opportunity, etc. |
---|
| 76 | set -eu |
---|
[521] | 77 | |
---|
[4643] | 78 | # Optional package files |
---|
| 79 | touch optional-files-devel |
---|
[521] | 80 | |
---|
[4643] | 81 | export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}} |
---|
| 82 | export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}} |
---|
| 83 | export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}} |
---|
| 84 | export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}} |
---|
| 85 | export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-} |
---|
[521] | 86 | |
---|
[4643] | 87 | # Build full release |
---|
| 88 | mkdir release |
---|
[521] | 89 | ( |
---|
[4643] | 90 | cd release |
---|
| 91 | # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before |
---|
| 92 | # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM |
---|
[8348] | 93 | ${CMAKE} ../ \ |
---|
| 94 | -DINSTALL_LAYOUT=RPM \ |
---|
| 95 | -DCMAKE_BUILD_TYPE=Release \ |
---|
| 96 | -DINSTALL_UNIX_ADDRDIR="/var/lib/mysql/mysql.sock" \ |
---|
| 97 | -DMANUFACTURER="Vine Linux MariaDB RPM" \ |
---|
| 98 | -DWITH_PIC="ON" \ |
---|
| 99 | -DWITHOUT_SERVER="yes" \ |
---|
| 100 | -DWITH_ZLIB="system" \ |
---|
| 101 | -DWITH_LIBEVENT="system" \ |
---|
| 102 | -DWITH_LOCALES="yes" \ |
---|
| 103 | -DWITH_UNIT_TESTS="no" |
---|
| 104 | |
---|
| 105 | # -DWITH_PCRE="system" |
---|
| 106 | |
---|
[4643] | 107 | echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG |
---|
[8348] | 108 | make %{?_smp_mflags} |
---|
| 109 | # make %{?_smp_mflags} -C libmysql |
---|
| 110 | # make %{?_smp_mflags} -C include |
---|
[521] | 111 | ) |
---|
| 112 | |
---|
| 113 | |
---|
[4643] | 114 | ############################################################################## |
---|
[521] | 115 | %install |
---|
[8348] | 116 | rm -rf %{buildroot} |
---|
[521] | 117 | |
---|
| 118 | # Install all binaries |
---|
[4643] | 119 | # Install all binaries |
---|
| 120 | ( |
---|
[8348] | 121 | cd release |
---|
| 122 | make DESTDIR=%{buildroot} install |
---|
[4643] | 123 | ) |
---|
[521] | 124 | |
---|
[8348] | 125 | mv -f %{buildroot}%{_datadir}/doc ./ |
---|
[521] | 126 | |
---|
[8348] | 127 | rm -rf %{buildroot}%{_sysconfdir}/{init.d,logrotate.d} |
---|
[9840] | 128 | rm -rf %{buildroot}%{_sysconfdir}/my.cnf.d/{mysql-clients.cnf,server.cnf,enable_encryption.preset} |
---|
[8348] | 129 | rm -rf %{buildroot}%{_datadir}/{man/man8,mysql} |
---|
| 130 | rm -f %{buildroot}%{_libdir}/*.a |
---|
| 131 | find %{buildroot}%{_bindir} -type f | grep -v -e mysql_config | xargs rm -f |
---|
| 132 | find %{buildroot}%{_mandir} -type f | grep -v -e mysql_config | xargs rm -f |
---|
[521] | 133 | |
---|
[10114] | 134 | rm -rf %{buildroot}%{_libdir}/mysql/plugin |
---|
| 135 | rm -rf %{buildroot}%{_datadir}/mysql-test |
---|
| 136 | |
---|
[4643] | 137 | ############################################################################## |
---|
| 138 | |
---|
| 139 | |
---|
[8348] | 140 | %post -n libmysqlclient%{soversion} |
---|
[532] | 141 | /sbin/ldconfig |
---|
| 142 | |
---|
[8348] | 143 | %postun -n libmysqlclient%{soversion} |
---|
[532] | 144 | /sbin/ldconfig |
---|
| 145 | |
---|
[521] | 146 | %clean |
---|
[8348] | 147 | rm -rf %{buildroot} |
---|
[521] | 148 | |
---|
[8348] | 149 | %files -n mariadb-common |
---|
| 150 | %defattr(-, root, root) |
---|
| 151 | %config(noreplace) %{_sysconfdir}/my.cnf |
---|
| 152 | %dir %{_sysconfdir}/my.cnf.d |
---|
| 153 | %config(noreplace) %{_sysconfdir}/my.cnf.d/client.cnf |
---|
[521] | 154 | |
---|
[8348] | 155 | %files -n libmysqlclient%{soversion} |
---|
| 156 | %defattr(-, root, root) |
---|
[10644] | 157 | %{!?_licensedir:%global license %%doc} |
---|
| 158 | %license COPYING EXCEPTIONS-CLIENT |
---|
| 159 | %doc CREDITS README VERSION doc/* |
---|
[8348] | 160 | %{_libdir}/libmysql*.so.* |
---|
[521] | 161 | |
---|
[8348] | 162 | %files devel |
---|
| 163 | %defattr(-, root, root) |
---|
| 164 | %doc %{_mandir}/man1/mysql_config.1* |
---|
| 165 | %{_bindir}/mysql_config |
---|
[9840] | 166 | %{_datadir}/pkgconfig/mariadb.pc |
---|
[8348] | 167 | %{_includedir}/mysql |
---|
[521] | 168 | %{_datadir}/aclocal/mysql.m4 |
---|
[4643] | 169 | %{_libdir}/*.so |
---|
[521] | 170 | |
---|
| 171 | |
---|
| 172 | %changelog |
---|
[10852] | 173 | * Wed Dec 21 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.20-1 |
---|
| 174 | - new upstream release. |
---|
| 175 | |
---|
[10644] | 176 | * Tue Jul 19 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.16-1 |
---|
| 177 | - new upstream release. |
---|
| 178 | |
---|
| 179 | * Thu Jul 7 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.14-3 |
---|
| 180 | - rebuilt with new toolchain. |
---|
| 181 | |
---|
[10322] | 182 | * Sun May 22 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.14-2 |
---|
| 183 | - rebuilt with new binutils. |
---|
| 184 | |
---|
[10276] | 185 | * Wed May 11 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.14-1 |
---|
| 186 | - new upstream release. |
---|
| 187 | |
---|
[10114] | 188 | * Fri Apr 1 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.13-1 |
---|
| 189 | - new upstream release. |
---|
| 190 | |
---|
[10087] | 191 | * Tue Mar 15 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.12-1 |
---|
| 192 | - new upstream release. |
---|
| 193 | |
---|
| 194 | * Sat Jan 9 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.10-1 |
---|
| 195 | - new upstream release. |
---|
| 196 | |
---|
[9840] | 197 | * Mon Nov 30 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.1.9-1 |
---|
| 198 | - new upstream release. |
---|
| 199 | |
---|
[9707] | 200 | * Fri Aug 7 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.21-1 |
---|
| 201 | - new upstream release. |
---|
| 202 | |
---|
[9612] | 203 | * Fri Jun 19 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.20-1 |
---|
| 204 | - new upstream release. |
---|
| 205 | |
---|
[9557] | 206 | * Sun May 10 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.19-1 |
---|
| 207 | - new upstream release. |
---|
| 208 | |
---|
[9556] | 209 | * Fri May 8 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.18-1 |
---|
[9406] | 210 | - new upstream release. |
---|
| 211 | |
---|
[9556] | 212 | * Tue Mar 3 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.17-1 |
---|
| 213 | - new upstream release. |
---|
| 214 | |
---|
[9361] | 215 | * Wed Jan 28 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.16-1 |
---|
| 216 | - new upstream release. |
---|
| 217 | |
---|
[9132] | 218 | * Thu Nov 27 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.15-1 |
---|
| 219 | - new upstream release. |
---|
| 220 | |
---|
[8526] | 221 | * Sat May 31 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.11-1 |
---|
| 222 | - new upstream release. |
---|
| 223 | |
---|
[8460] | 224 | * Sun Apr 13 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.10-2 |
---|
| 225 | - fixed Conflicts: and Obsoletes:. |
---|
| 226 | |
---|
[8348] | 227 | * Mon Mar 31 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.10-1 |
---|
[7513] | 228 | - new upstream release. |
---|
| 229 | |
---|
[8348] | 230 | * Mon Mar 24 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.9-1 |
---|
[7159] | 231 | - new upstream release. |
---|
| 232 | |
---|
[8348] | 233 | * Tue Feb 11 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.8-1 |
---|
[6810] | 234 | - new upstream release. |
---|
| 235 | |
---|
[8348] | 236 | * Tue Dec 03 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 10.0.6-1 |
---|
| 237 | - initial build. |
---|