1 | Name: libmariadb |
---|
2 | Version: 3.0.7 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Epoch: 1 |
---|
5 | Summary: The MariaDB Native Client library (C driver) |
---|
6 | Group: System Environment/Libraries |
---|
7 | License: LGPLv2+ |
---|
8 | Vendor: Project Vine |
---|
9 | Distribution: Vine Linux |
---|
10 | Packager: tomop |
---|
11 | Source: https://downloads.mariadb.org/interstitial/connector-c-%{version}/mariadb-connector-c-%{version}-src.tar.gz |
---|
12 | Source2: my.cnf |
---|
13 | Source3: client.cnf |
---|
14 | Url: http://mariadb.org/ |
---|
15 | # More information: https://mariadb.com/kb/en/mariadb/building-connectorc-from-source/ |
---|
16 | |
---|
17 | Requires: mariadb-common |
---|
18 | BuildRequires: zlib-devel cmake openssl-devel gcc-c++ |
---|
19 | # Remote-IO plugin |
---|
20 | BuildRequires: curl-devel |
---|
21 | |
---|
22 | %description |
---|
23 | The MariaDB Native Client library (C driver) is used to connect applications |
---|
24 | developed in C/C++ to MariaDB and MySQL databases. |
---|
25 | |
---|
26 | |
---|
27 | %package devel |
---|
28 | Summary: Development files for mariadb-connector-c |
---|
29 | Group: Development/Libraries |
---|
30 | Provides: libmysqlclient-devel = %{epoch}:%{version}-%{release} |
---|
31 | Obsoletes: libmysqlclient-devel |
---|
32 | Requires: %{name} = %{epoch}:%{version}-%{release} |
---|
33 | Requires: openssl-devel |
---|
34 | |
---|
35 | %description devel |
---|
36 | Development files for mariadb-connector-c. |
---|
37 | Contains everything needed to build against libmariadb.so >=3 client library. |
---|
38 | |
---|
39 | |
---|
40 | |
---|
41 | %package -n mariadb-common |
---|
42 | Summary: Configuration files for packages that use /etc/my.cnf as a configuration file |
---|
43 | BuildArch: noarch |
---|
44 | |
---|
45 | %description -n mariadb-common |
---|
46 | This package delivers /etc/my.cnf that includes other configuration files |
---|
47 | from the /etc/my.cnf.d directory and ships this directory as well. |
---|
48 | Other packages should only put their files into /etc/my.cnf.d directory |
---|
49 | and require this package, so the /etc/my.cnf file is present. |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | %prep |
---|
54 | %setup -q -n mariadb-connector-c-%{version}-src |
---|
55 | |
---|
56 | # Remove unsused parts |
---|
57 | rm -r win zlib win-iconv examples |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | %build |
---|
62 | |
---|
63 | # https://jira.mariadb.org/browse/MDEV-13836: |
---|
64 | # The server has (used to have for ages) some magic around the port number. |
---|
65 | # If it's 0, the default port value will use getservbyname("mysql", "tcp"), that is, whatever is written in /etc/services. |
---|
66 | # If it's a positive number, say, 3306, it will be 3306, no matter what /etc/services say. |
---|
67 | # I don't know if that behavior makes much sense, /etc/services wasn't supposed to be a system configuration file. |
---|
68 | |
---|
69 | # The INSTALL_xxx macros have to be specified relative to CMAKE_INSTALL_PREFIX |
---|
70 | # so we can't use %%{_datadir} and so forth here. |
---|
71 | |
---|
72 | %cmake . \ |
---|
73 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
---|
74 | -DCMAKE_SYSTEM_PROCESSOR="%{_arch}" \ |
---|
75 | \ |
---|
76 | -DMARIADB_UNIX_ADDR=%{_sharedstatedir}/mysql/mysql.sock \ |
---|
77 | -DMARIADB_PORT=3306 \ |
---|
78 | \ |
---|
79 | -DWITH_EXTERNAL_ZLIB=YES \ |
---|
80 | -DWITH_SSL=OPENSSL \ |
---|
81 | -DWITH_MYSQLCOMPAT=ON \ |
---|
82 | \ |
---|
83 | -DINSTALL_LAYOUT=RPM \ |
---|
84 | -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ |
---|
85 | -DINSTALL_BINDIR="bin" \ |
---|
86 | -DINSTALL_LIBDIR="%{_lib}" \ |
---|
87 | -DINSTALL_INCLUDEDIR="include/mysql" \ |
---|
88 | -DINSTALL_PLUGINDIR="%{_lib}/mariadb/plugin" \ |
---|
89 | \ |
---|
90 | -DWITH_UNITTEST=ON |
---|
91 | |
---|
92 | |
---|
93 | |
---|
94 | #cmake -LAH |
---|
95 | |
---|
96 | make %{?_smp_mflags} |
---|
97 | |
---|
98 | |
---|
99 | |
---|
100 | %install |
---|
101 | rm -rf %{buildroot} |
---|
102 | |
---|
103 | make install DESTDIR=%{buildroot} |
---|
104 | |
---|
105 | #multilib_fix_c_header --file %{_includedir}/mysql/mariadb_version.h |
---|
106 | |
---|
107 | %ifarch x86_64 |
---|
108 | mv -f %{buildroot}%{_prefix}/lib/pkgconfig %{buildroot}%{_libdir}/ |
---|
109 | %endif |
---|
110 | sed -e 's/libmariadb/libmysqlclient/' < %{buildroot}%{_libdir}/pkgconfig/libmariadb.pc > %{buildroot}%{_libdir}/pkgconfig/libmysqlclient.pc |
---|
111 | |
---|
112 | # Remove static linked libraries and symlinks to them |
---|
113 | rm %{buildroot}%{_libdir}/lib*.a |
---|
114 | |
---|
115 | # Add a compatibility symlinks |
---|
116 | ln -s mariadb_config %{buildroot}%{_bindir}/mysql_config |
---|
117 | ln -s mariadb_version.h %{buildroot}%{_includedir}/mysql/mysql_version.h |
---|
118 | |
---|
119 | # Install config files |
---|
120 | install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/my.cnf |
---|
121 | install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/my.cnf.d/client.cnf |
---|
122 | |
---|
123 | |
---|
124 | %check |
---|
125 | # Check the generated configuration on the actual machine |
---|
126 | %{buildroot}%{_bindir}/mariadb_config |
---|
127 | |
---|
128 | # Run the unit tests |
---|
129 | # - don't run mytap tests |
---|
130 | # - ignore the testsuite result for now. Enable tests now, fix them later. |
---|
131 | pushd unittest/libmariadb/ |
---|
132 | ctest || : |
---|
133 | popd |
---|
134 | |
---|
135 | |
---|
136 | |
---|
137 | # https://fedoraproject.org/wiki/Packaging:Directory_Replacement |
---|
138 | %pretrans -p <lua> |
---|
139 | path = "%{_libdir}/mariadb" |
---|
140 | st = posix.stat(path) |
---|
141 | if st and st.type == "link" then |
---|
142 | os.remove(path) |
---|
143 | end |
---|
144 | path = "%{_libdir}/mysql" |
---|
145 | st = posix.stat(path) |
---|
146 | if st and st.type == "link" then |
---|
147 | os.remove(path) |
---|
148 | end |
---|
149 | |
---|
150 | |
---|
151 | |
---|
152 | %files |
---|
153 | %{_libdir}/libmariadb.so.* |
---|
154 | |
---|
155 | %dir %{_libdir}/mariadb |
---|
156 | %dir %{_libdir}/mariadb/plugin |
---|
157 | %{_libdir}/mariadb/plugin/* |
---|
158 | |
---|
159 | %doc README |
---|
160 | %license COPYING.LIB |
---|
161 | |
---|
162 | |
---|
163 | |
---|
164 | %files devel |
---|
165 | # Binary which provides compiler info for software compiling against this library |
---|
166 | %{_bindir}/mariadb_config |
---|
167 | %{_bindir}/mysql_config |
---|
168 | |
---|
169 | # Symlinks to the versioned library |
---|
170 | %{_libdir}/libmariadb.so |
---|
171 | %{_libdir}/libmysqlclient.so |
---|
172 | %{_libdir}/libmysqlclient_r.so |
---|
173 | |
---|
174 | # pkgconfig files |
---|
175 | %dir %{_libdir}/pkgconfig |
---|
176 | %{_libdir}/pkgconfig/* |
---|
177 | |
---|
178 | # Header files |
---|
179 | %dir %{_includedir}/mysql |
---|
180 | %{_includedir}/mysql/* |
---|
181 | |
---|
182 | %license COPYING.LIB |
---|
183 | |
---|
184 | |
---|
185 | %files -n mariadb-common |
---|
186 | %dir %{_sysconfdir}/my.cnf.d |
---|
187 | %config(noreplace) %{_sysconfdir}/my.cnf |
---|
188 | %config(noreplace) %{_sysconfdir}/my.cnf.d/client.cnf |
---|
189 | |
---|
190 | |
---|
191 | |
---|
192 | # RPMLint issues from 2.3.2 release tracked on the upstream JIRA: |
---|
193 | # https://jira.mariadb.org/browse/CONC-232 |
---|
194 | # https://jira.mariadb.org/browse/CONC-234 |
---|
195 | # RPMLint issues from 3.0.2 release tracked on the upstream JIRA: |
---|
196 | # https://jira.mariadb.org/browse/CONC-287 |
---|
197 | # https://jira.mariadb.org/browse/CONC-291 |
---|
198 | |
---|
199 | %changelog |
---|
200 | * Tue Nov 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.0.7-1 |
---|
201 | - new upstream release. |
---|
202 | - dropped Patch0: fixed in upstream. |
---|
203 | |
---|
204 | * Mon Nov 05 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.0.6-3 |
---|
205 | - initial built for Vine Linux. |
---|
206 | |
---|
207 | * Tue Sep 04 2018 Michal Schorm <mschorm@redhat.com> - 3.0.6-2 |
---|
208 | - Fix parallel installability of x86_64 and i686 devel package |
---|
209 | |
---|
210 | * Fri Aug 03 2018 Michal Schorm <mschorm@redhat.com> - 3.0.6-1 |
---|
211 | - Rebase to 3.0.6 |
---|
212 | |
---|
213 | * Tue Jul 17 2018 Honza Horak <hhorak@redhat.com> - 3.0.5-3 |
---|
214 | - Add -config sub-package that delivers system-wide /etc/my.cnf and |
---|
215 | /etc/my.cnf.d directory, that other packages should use |
---|
216 | This package also obsoletes mariadb-config |
---|
217 | |
---|
218 | * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.5-2 |
---|
219 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
---|
220 | |
---|
221 | * Fri Jun 08 2018 Michal Schorm <mschorm@redhat.com> - 3.0.5-1 |
---|
222 | - Rebase to 3.0.5 |
---|
223 | |
---|
224 | * Thu Apr 26 2018 Michal Schorm <mschorm@redhat.com> - 3.0.4-1 |
---|
225 | - Rebase to 3.0.4 |
---|
226 | |
---|
227 | * Mon Apr 23 2018 Michal Schorm <mschorm@redhat.com> - 3.0.3-4 |
---|
228 | - Further fix of the '--plugindir' output from the config binary |
---|
229 | Realted: #1569159 |
---|
230 | |
---|
231 | * Wed Mar 21 2018 Richard W.M. Jones <rjones@redhat.com> - 3.0.3-3 |
---|
232 | - Fix plugin install directory (INSTALL_PLUGINDIR not PLUGIN_INSTALL_DIR). |
---|
233 | |
---|
234 | * Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-2 |
---|
235 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
---|
236 | |
---|
237 | * Fri Jan 19 2018 Michal Schorm <mschorm@redhat.com> - 3.0.3-1 |
---|
238 | - Rebase to 3.0.3 |
---|
239 | |
---|
240 | * Mon Nov 27 2017 Honza Horak <hhorak@redhat.com> - 3.0.2-21 |
---|
241 | - Remove unneeded dependency on xmlto |
---|
242 | |
---|
243 | * Tue Nov 14 2017 Pavel Raiskup <praiskup@redhat.com> - 3.0.2-19 |
---|
244 | - drop misleading provides |
---|
245 | |
---|
246 | * Wed Nov 08 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-19 |
---|
247 | - Move the scriptlet to the correct package |
---|
248 | |
---|
249 | * Thu Nov 02 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-18 |
---|
250 | - Fix typo in require |
---|
251 | |
---|
252 | * Wed Nov 01 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-17 |
---|
253 | - Use correct require for OpenSSL |
---|
254 | |
---|
255 | * Wed Nov 01 2017 Merlin Mathesius <mmathesi@redhat.com> - 3.0.2-16 |
---|
256 | - Correct typo in spec file conditional |
---|
257 | |
---|
258 | * Tue Oct 31 2017 Merlin Mathesius <mmathesi@redhat.com> - 3.0.2-15 |
---|
259 | - Cleanup spec file conditionals |
---|
260 | |
---|
261 | * Tue Oct 31 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-14 |
---|
262 | - Remove Requires for openssl. Managed by RPM. |
---|
263 | |
---|
264 | * Mon Oct 30 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-13 |
---|
265 | - Update scriplet dealing with symlinks as Guidelines suggests |
---|
266 | Related: #1501933 |
---|
267 | |
---|
268 | * Thu Oct 26 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-12 |
---|
269 | - Move library directly to libdir, don't create any symlinks to directories |
---|
270 | - Update scritplets, so they only check for old symlinks to directories |
---|
271 | Related: #1501933 |
---|
272 | - Add 'Conflicts' with mariadb package on F<28 |
---|
273 | Related: #1506441 |
---|
274 | |
---|
275 | * Mon Oct 09 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-11 |
---|
276 | - Fix ldconfig path |
---|
277 | |
---|
278 | * Wed Oct 04 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-10 |
---|
279 | - Add scriptlets to handle errors in /usr/lib64/ created by older versions |
---|
280 | of mariadb and mariadb-connector-c pakages |
---|
281 | |
---|
282 | * Wed Sep 20 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-9 |
---|
283 | - Add symlinks so more packages will build succesfully |
---|
284 | - Change libdir from .../lib64/mariadb to mysql |
---|
285 | Related: #1497234 |
---|
286 | |
---|
287 | * Wed Sep 13 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-7 |
---|
288 | - Move header files to the same location, as they would be in mariadb-server |
---|
289 | - Add provides "libmysqlclient.so" |
---|
290 | |
---|
291 | * Tue Sep 05 2017 Honza Horak <hhorak@redhat.com> - 3.0.2-5 |
---|
292 | - Remove a symlink /usr/lib64/mysql that conflicts with mariadb-libs |
---|
293 | |
---|
294 | * Mon Aug 14 2017 Honza Horak <hhorak@redhat.com> - 3.0.2-4 |
---|
295 | - Add compatibility symlinks |
---|
296 | |
---|
297 | * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3 |
---|
298 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild |
---|
299 | |
---|
300 | * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2 |
---|
301 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
302 | |
---|
303 | * Wed Jun 07 2017 Michal Schorm <mschorm@redhat.com> - 3.0.2-1 |
---|
304 | - Rebase to version 3.0.2 |
---|
305 | - Library libmariadb.so.3 introduced |
---|
306 | - Plugin Remote-IO enabled |
---|
307 | |
---|
308 | * Wed Jun 07 2017 Michal Schorm <mschorm@redhat.com> - 2.3.3-1 |
---|
309 | - Rebase to version 2.3.3 |
---|
310 | - Patch dropped, solved by upstream; https://jira.mariadb.org/browse/CONC-231 |
---|
311 | |
---|
312 | * Tue Feb 07 2017 Michal Schorm <mschorm@redhat.com> - 2.3.2-2 |
---|
313 | - Fix based on output from RPMLint in previous version |
---|
314 | |
---|
315 | * Tue Jan 24 2017 Michal Schorm <mschorm@redhat.com> - 2.3.2-1 |
---|
316 | - Rebase to version 2.3.2, patch needed (fixed by upstream in later versions) |
---|
317 | - Plugin dir moved from /libdir/plugin to /libdir/mariadb/plugin |
---|
318 | |
---|
319 | * Thu Oct 27 2016 Michal Schorm <mschorm@redhat.com> - 2.3.1-3 |
---|
320 | - Fixed ownership of {_libdir}/mariadb (this dir must me owned by package) |
---|
321 | - Fixed ownership of {_sysconfigdir}/ld.so.conf.d (this dir must me owned by package) |
---|
322 | - Fixed redundnace on lines with {_sysconfigdir}/ld.so.conf.d |
---|
323 | - Fixed ownership of {_bindir} (only one program is owned, so let's be accurate) |
---|
324 | - Some comments added, for me and future maintainers |
---|
325 | |
---|
326 | * Mon Oct 17 2016 Michal Schorm <mschorm@redhat.com> - 2.3.1-2 |
---|
327 | - Fixed ownership of {_libdir}/mariadb directory and cosmetic specfile changes |
---|
328 | |
---|
329 | * Tue Sep 13 2016 Michal Schorm <mschorm@redhat.com> - 2.3.1-1 |
---|
330 | - Rebase to version 2.3.1 |
---|
331 | |
---|
332 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2 |
---|
333 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
334 | |
---|
335 | * Thu Jul 23 2015 Matej Mužila <mmuzila@redhat.com> - 2.1.0-1 |
---|
336 | - Rebase to version 2.1.0 |
---|
337 | |
---|
338 | * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-3 |
---|
339 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
340 | |
---|
341 | * Wed Sep 24 2014 Matej Mužila <mmuzila@redhat.com> - 2.0.0-2 |
---|
342 | - Fixed html IDs in documentation |
---|
343 | |
---|
344 | * Tue Aug 26 2014 Matej Mužila <mmuzila@redhat.com> - 2.0.0-2 |
---|
345 | - Initial version for 2.0.0 |
---|