Compare commits
No commits in common. "c10s" and "c8-stream-2.7" have entirely different histories.
c10s
...
c8-stream-
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
/mysql2-*-tests.txz
|
SOURCES/mysql2-0.5.3-tests.txz
|
||||||
/mysql2-*.gem
|
SOURCES/mysql2-0.5.3.gem
|
||||||
|
2
.rubygem-mysql2.metadata
Normal file
2
.rubygem-mysql2.metadata
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
efae18a40b17065bff7f04732e8165d64393531c SOURCES/mysql2-0.5.3-tests.txz
|
||||||
|
75e6935c4d9a2b1c047d9e9b69c4c6d4c7e0faef SOURCES/mysql2-0.5.3.gem
|
244
SPECS/rubygem-mysql2.spec
Normal file
244
SPECS/rubygem-mysql2.spec
Normal file
@ -0,0 +1,244 @@
|
|||||||
|
# build with tests?
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
|
# Generated from mysql2-0.3.11.gem by gem2rpm -*- rpm-spec -*-
|
||||||
|
%global gem_name mysql2
|
||||||
|
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 0.5.3
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: A simple, fast Mysql library for Ruby, binding to libmysql
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/brianmario/mysql2
|
||||||
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
# git clone --no-checkout https://github.com/brianmario/mysql2.git
|
||||||
|
# cd mysql2 && git archive -v -o mysql2-0.5.3-tests.txz 0.5.3 spec/
|
||||||
|
Source1: %{gem_name}-%{version}-tests.txz
|
||||||
|
|
||||||
|
# Required in lib/mysql2.rb
|
||||||
|
Requires: rubygem(bigdecimal)
|
||||||
|
BuildRequires: ruby(release)
|
||||||
|
BuildRequires: rubygems-devel
|
||||||
|
BuildRequires: ruby-devel
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: mariadb-connector-c-devel
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: mariadb-server
|
||||||
|
BuildRequires: rubygem(rspec)
|
||||||
|
# Used in mysql_install_db
|
||||||
|
BuildRequires: %{_bindir}/hostname
|
||||||
|
BuildRequires: rubygem(bigdecimal)
|
||||||
|
# Used in spec/em/em_spec.rb
|
||||||
|
# Comment out to prevent a build error by conflicting requests.
|
||||||
|
# Nothing provides libruby.so.2.4()(64bit) needed by rubygem-eventmachine.
|
||||||
|
#BuildRequires: rubygem(eventmachine)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
The Mysql2 gem is meant to serve the extremely common use-case of
|
||||||
|
connecting, querying and iterating on results. Some database libraries
|
||||||
|
out there serve as direct 1:1 mappings of the already complex C API\'s
|
||||||
|
available. This one is not.
|
||||||
|
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
Documentation for %{name}
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{gem_name}-%{version} -b 1
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Create the gem as gem install only works on a gem file
|
||||||
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
|
|
||||||
|
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
||||||
|
# by default, so that we can move it into the buildroot in %%install
|
||||||
|
%gem_install
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -pa .%{gem_dir}/* \
|
||||||
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{gem_extdir_mri}
|
||||||
|
cp -a .%{gem_extdir_mri}/* %{buildroot}%{gem_extdir_mri}/
|
||||||
|
|
||||||
|
# Prevent dangling symlink in -debuginfo.
|
||||||
|
rm -rf %{buildroot}%{gem_instdir}/ext
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
# Move the tests into place
|
||||||
|
ln -s %{_builddir}/spec spec
|
||||||
|
|
||||||
|
TOP_DIR=$(pwd)
|
||||||
|
# Use testing port because the standard mysqld port 3306 is occupied.
|
||||||
|
# Assign a random port to consider a case of multi builds in parallel in a host.
|
||||||
|
# https://src.fedoraproject.org/rpms/rubygem-pg/pull-request/3
|
||||||
|
MYSQL_TEST_PORT="$((13306 + ${RANDOM} % 1000))"
|
||||||
|
MYSQL_TEST_USER=$(id -un)
|
||||||
|
MYSQL_TEST_DATA_DIR="${TOP_DIR}/data"
|
||||||
|
MYSQL_TEST_SOCKET="${TOP_DIR}/mysql.sock"
|
||||||
|
MYSQL_TEST_LOG="${TOP_DIR}/mysql.log"
|
||||||
|
MYSQL_TEST_PID_FILE="${TOP_DIR}/mysql.pid"
|
||||||
|
|
||||||
|
mkdir "${MYSQL_TEST_DATA_DIR}"
|
||||||
|
mysql_install_db \
|
||||||
|
--datadir="${MYSQL_TEST_DATA_DIR}" \
|
||||||
|
--log-error="${MYSQL_TEST_LOG}"
|
||||||
|
|
||||||
|
%{_libexecdir}/mysqld \
|
||||||
|
--datadir="${MYSQL_TEST_DATA_DIR}" \
|
||||||
|
--log-error="${MYSQL_TEST_LOG}" \
|
||||||
|
--socket="${MYSQL_TEST_SOCKET}" \
|
||||||
|
--pid-file="${MYSQL_TEST_PID_FILE}" \
|
||||||
|
--port="${MYSQL_TEST_PORT}" \
|
||||||
|
--ssl &
|
||||||
|
|
||||||
|
for i in $(seq 10); do
|
||||||
|
sleep 1
|
||||||
|
if grep -q 'ready for connections.' "${MYSQL_TEST_LOG}"; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
echo "Waiting connections... ${i}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# See https://github.com/brianmario/mysql2/blob/master/.travis_setup.sh
|
||||||
|
mysql -u root \
|
||||||
|
-e 'CREATE DATABASE /*M!50701 IF NOT EXISTS */ test' \
|
||||||
|
-S "${MYSQL_TEST_SOCKET}" \
|
||||||
|
-P "${MYSQL_TEST_PORT}"
|
||||||
|
|
||||||
|
# See https://github.com/brianmario/mysql2/blob/master/tasks/rspec.rake
|
||||||
|
cat <<EOF > spec/configuration.yml
|
||||||
|
root:
|
||||||
|
host: localhost
|
||||||
|
username: root
|
||||||
|
password:
|
||||||
|
database: test
|
||||||
|
port: ${MYSQL_TEST_PORT}
|
||||||
|
socket: ${MYSQL_TEST_SOCKET}
|
||||||
|
|
||||||
|
user:
|
||||||
|
host: localhost
|
||||||
|
username: ${MYSQL_TEST_USER}
|
||||||
|
password:
|
||||||
|
database: mysql2_test
|
||||||
|
port: ${MYSQL_TEST_PORT}
|
||||||
|
socket: ${MYSQL_TEST_SOCKET}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# This test would require changes in host configuration.
|
||||||
|
sed -i '/^ it "should be able to connect via SSL options" do$/,/^ end$/ s/^/#/' \
|
||||||
|
spec/mysql2/client_spec.rb
|
||||||
|
|
||||||
|
# performance_schema.session_account_connect_attrs is unexpectedly empty.
|
||||||
|
# https://github.com/brianmario/mysql2/issues/965
|
||||||
|
sed -i '/^ it "should set default program_name in connect_attrs" do$/,/^ end$/ s/^/#/' \
|
||||||
|
spec/mysql2/client_spec.rb
|
||||||
|
sed -i '/^ it "should set custom connect_attrs" do$/,/^ end$/ s/^/#/' \
|
||||||
|
spec/mysql2/client_spec.rb
|
||||||
|
|
||||||
|
rspec -Ilib:%{buildroot}%{gem_extdir_mri} -f d spec
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
kill "$(cat "${MYSQL_TEST_PID_FILE}")"
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%{gem_libdir}
|
||||||
|
%{gem_extdir_mri}
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
%exclude %{gem_instdir}/support
|
||||||
|
%license %{gem_instdir}/LICENSE
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%doc %{gem_instdir}/README.md
|
||||||
|
%doc %{gem_instdir}/CHANGELOG.md
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri May 29 2020 Jun Aruga <jaruga@redhat.com> - 0.5.3-1
|
||||||
|
- New upstream release 0.5.3 by merging Fedora master branch (commit: 674d475)
|
||||||
|
Resolves: rhbz#1817135
|
||||||
|
|
||||||
|
* Tue Jun 11 2019 Jun Aruga <jaruga@redhat.com> - 0.5.2-1
|
||||||
|
- New upstream release 0.5.2 by merging Fedora master branch (commit: cc15309)
|
||||||
|
Resolves: rhbz#1672575
|
||||||
|
|
||||||
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.4.10-3
|
||||||
|
- Rebuilt for switch to libxcrypt
|
||||||
|
|
||||||
|
* Thu Jan 04 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.4.10-2
|
||||||
|
- F-28: rebuild for ruby25
|
||||||
|
|
||||||
|
* Thu Nov 23 2017 Jun Aruga <jaruga@redhat.com> - 0.4.10-1
|
||||||
|
- New upstream release 0.4.10
|
||||||
|
|
||||||
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.8-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.8-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 13 2017 Adam Williamson <awilliam@redhat.com> - 0.4.8-1
|
||||||
|
- New upstream release 0.4.8 (builds against MariaDB 10.2)
|
||||||
|
|
||||||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 11 2017 Vít Ondruch <vondruch@redhat.com> - 0.4.4-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
|
||||||
|
|
||||||
|
* Thu Jun 09 2016 Miroslav Suchý <msuchy@redhat.com> - 0.4.4-1
|
||||||
|
- New upstream release 0.4.4
|
||||||
|
|
||||||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 11 2016 Vít Ondruch <vondruch@redhat.com> - 0.4.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
|
||||||
|
|
||||||
|
* Tue Sep 8 2015 Miroslav Suchý <msuchy@redhat.com> 0.4.0-1
|
||||||
|
- rebase to mysql2-0.4.0
|
||||||
|
|
||||||
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.16-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 16 2015 Vít Ondruch <vondruch@redhat.com> - 0.3.16-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2
|
||||||
|
|
||||||
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.16-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.16-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon May 26 2014 Miroslav Suchý <msuchy@redhat.com> 0.3.16-1
|
||||||
|
- rebase to mysql2-0.3.16
|
||||||
|
|
||||||
|
* Tue Apr 15 2014 Vít Ondruch <vondruch@redhat.com> - 0.3.15-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
|
||||||
|
|
||||||
|
* Tue Feb 11 2014 Miroslav Suchý <msuchy@redhat.com> 0.3.15-2
|
||||||
|
- rebase to mysql2-0.3.15
|
||||||
|
|
||||||
|
* Wed Sep 11 2013 Alexander Chernyakhovsky <achernya@mit.edu> - 0.3.13-1
|
||||||
|
- Initial package
|
@ -1,29 +0,0 @@
|
|||||||
From 06512d47dc1491bf5686b2bd89a8555de9f2acc9 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jun Aruga <jaruga@redhat.com>
|
|
||||||
Date: Thu, 22 Dec 2022 16:14:39 +0100
|
|
||||||
Subject: [PATCH] Use the SSL pem files in the Git repository.
|
|
||||||
|
|
||||||
---
|
|
||||||
spec/mysql2/client_spec.rb | 6 +++---
|
|
||||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/spec/mysql2/client_spec.rb b/spec/mysql2/client_spec.rb
|
|
||||||
index 5861882..3f5cda8 100644
|
|
||||||
--- a/spec/mysql2/client_spec.rb
|
|
||||||
+++ b/spec/mysql2/client_spec.rb
|
|
||||||
@@ -153,9 +153,9 @@ RSpec.describe Mysql2::Client do # rubocop:disable Metrics/BlockLength
|
|
||||||
let(:option_overrides) do
|
|
||||||
{
|
|
||||||
'host' => 'mysql2gem.example.com', # must match the certificates
|
|
||||||
- :sslkey => '/etc/mysql/client-key.pem',
|
|
||||||
- :sslcert => '/etc/mysql/client-cert.pem',
|
|
||||||
- :sslca => '/etc/mysql/ca-cert.pem',
|
|
||||||
+ :sslkey => 'spec/ssl/client-key.pem',
|
|
||||||
+ :sslcert => 'spec/ssl/client-cert.pem',
|
|
||||||
+ :sslca => 'spec/ssl/ca-cert.pem',
|
|
||||||
:sslcipher => 'DHE-RSA-AES256-SHA',
|
|
||||||
:sslverify => true,
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.38.1
|
|
||||||
|
|
@ -1,555 +0,0 @@
|
|||||||
From a1a78e31b1a577263df6634d9ba906e790409802 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jarek Prokop <jprokop@redhat.com>
|
|
||||||
Date: Fri, 9 Feb 2024 16:42:39 +0100
|
|
||||||
Subject: [PATCH] Set CA:TRUE for ca-cert.pem used in SSL tests.
|
|
||||||
|
|
||||||
Since OpenSSL 3.2, setting CA:TRUE seems to be required, otherwise
|
|
||||||
we will get an error when trying to use CA file without the field.
|
|
||||||
Example of such error using the openssl verify command:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ openssl verify -CAfile ca-cert.pem client-cert.pem
|
|
||||||
CN=ca_mysql2gem
|
|
||||||
error 79 at 1 depth lookup: invalid CA certificate
|
|
||||||
error client-cert.pem: verification failed
|
|
||||||
```
|
|
||||||
---
|
|
||||||
spec/ssl/ca-cert.pem | 31 ++++++++++----------
|
|
||||||
spec/ssl/ca-key.pem | 55 ++++++++++++++++++-----------------
|
|
||||||
spec/ssl/ca.cnf | 4 +++
|
|
||||||
spec/ssl/cert.cnf | 4 +++
|
|
||||||
spec/ssl/client-cert.pem | 26 ++++++++---------
|
|
||||||
spec/ssl/client-key.pem | 55 ++++++++++++++++++-----------------
|
|
||||||
spec/ssl/client-req.pem | 24 +++++++--------
|
|
||||||
spec/ssl/gen_certs.sh | 6 +++-
|
|
||||||
spec/ssl/pkcs8-client-key.pem | 52 ++++++++++++++++-----------------
|
|
||||||
spec/ssl/pkcs8-server-key.pem | 52 ++++++++++++++++-----------------
|
|
||||||
spec/ssl/server-cert.pem | 26 ++++++++---------
|
|
||||||
spec/ssl/server-key.pem | 55 ++++++++++++++++++-----------------
|
|
||||||
spec/ssl/server-req.pem | 24 +++++++--------
|
|
||||||
13 files changed, 215 insertions(+), 199 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/spec/ssl/ca-cert.pem b/spec/ssl/ca-cert.pem
|
|
||||||
index cf9b8d511..632cdeb71 100644
|
|
||||||
--- a/spec/ssl/ca-cert.pem
|
|
||||||
+++ b/spec/ssl/ca-cert.pem
|
|
||||||
@@ -1,17 +1,18 @@
|
|
||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
-MIICqjCCAZICCQDbDS+Z2mpWkDANBgkqhkiG9w0BAQsFADAXMRUwEwYDVQQDDAxj
|
|
||||||
-YV9teXNxbDJnZW0wHhcNMTUwOTA5MDQ1NzIxWhcNMjUwNzE4MDQ1NzIxWjAXMRUw
|
|
||||||
-EwYDVQQDDAxjYV9teXNxbDJnZW0wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
|
|
||||||
-AoIBAQDFnpc22lPFtdPELsIffsDt8cD2Hkt47nGMcKQ9n4U98yAg+fodipyP1Bn0
|
|
||||||
-2OeaONqpttJIET7HxlGrtugPtV/O8XZHlhfAHrRUDMFZJhgnnqK+c/7fRGeB0Eqw
|
|
||||||
-ljBlRD/dDL3bFq5hVBC9QsGi5k03r+xLPKm5ccAr4WtofcoKXqEbSO6koTSrsGG5
|
|
||||||
-7inlldM2AVzrY2kXbe0jAyNvYmDL2ycN8G2wObogPWDfITQRhOxfkzKIQiEhQF2Y
|
|
||||||
-/DlhT7IbIarBIm6abf6JxZ6/Sm5XyVNEWOnryXM6rKyVeGktCxLHNmxx5eKYs440
|
|
||||||
-8hNgURa8pB+aZaiokkwhM1+jmE83AgMBAAEwDQYJKoZIhvcNAQELBQADggEBACrQ
|
|
||||||
-umqygXkkbff5Jqf6AYi30U3c+byX+IButRKXN9Ete2LPcT76o/snS9Lexf3KQsIy
|
|
||||||
-a2Tcc9adak7pBf7F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kiG9w0BAQsFAAOCAQEAQbKVJ2eDt/99lnHGr3uFgVzWr26QomGfWysHhwHf
|
|
||||||
+9pgS2KKbT7u/MGgWMi2jpXAJFCeRD2v/b5lRpeI03ZGuTJ0zqlItXzlBY6bND3KB
|
|
||||||
+AyJ5orfJu0NVwhjFZdnGH1IQVWjMW8pt8WzopYRyyfnqpbwE2e8wJUgOo9LDgJm8
|
|
||||||
+mK4bcpRVbvS2fo+g+CZ9HXzOXpL0m4gbsnPjeulmtSTXFX1/t00Hw+Gt2POB2A0h
|
|
||||||
+VNFKxS08uohPq49+MNeaTA0CjQdpG09lh7Cua/mSgzmYvWF9iYJpsBggzDUi7hab
|
|
||||||
+T07GzSz0fpfb35RAtsghgCyxaW7M3fAaztVJaKPDB4SfUw==
|
|
||||||
-----END CERTIFICATE-----
|
|
||||||
diff --git a/spec/ssl/ca-key.pem b/spec/ssl/ca-key.pem
|
|
||||||
index bbdadb7cf..5deca5740 100644
|
|
||||||
--- a/spec/ssl/ca-key.pem
|
|
||||||
+++ b/spec/ssl/ca-key.pem
|
|
||||||
@@ -1,27 +1,28 @@
|
|
||||||
------BEGIN RSA PRIVATE KEY-----
|
|
||||||
-MIIEpQIBAAKCAQEAxZ6XNtpTxbXTxC7CH37A7fHA9h5LeO5xjHCkPZ+FPfMgIPn6
|
|
||||||
-HYqcj9QZ9NjnmjjaqbbSSBE+x8ZRq7boD7VfzvF2R5YXwB60VAzBWSYYJ56ivnP+
|
|
||||||
-30RngdBKsJYwZUQ/3Qy92xauYVQQvULBouZNN6/sSzypuXHAK+FraH3KCl6hG0ju
|
|
||||||
-pKE0q7Bhue4p5ZXTNgFc62NpF23tIwMjb2Jgy9snDfBtsDm6ID1g3yE0EYTsX5My
|
|
||||||
-iEIhIUBdmPw5YU+yGyGqwSJumm3+icWev0puV8lTRFjp68lzOqyslXhpLQsSxzZs
|
|
||||||
-ceXimLOONPITYFEWvKQfmmWoqJJMITNfo5hPNwIDAQABAoIBAQClkmtFRQVdKCum
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fHaHNUs/WXgk9mHTqY9lkMrnEmO71z8LPw0q67UbiIx
|
|
||||||
+58MWCpDcOzzNrmXKEbZQ380qYezOFffuvkDKAAl2OmxSAbKLvV/5/vAAEXyBJe2u
|
|
||||||
+brUtxFuKTvZbuCZU+L04y8I=
|
|
||||||
+-----END PRIVATE KEY-----
|
|
||||||
diff --git a/spec/ssl/ca.cnf b/spec/ssl/ca.cnf
|
|
||||||
index 07374ad3e..6e98bd981 100644
|
|
||||||
--- a/spec/ssl/ca.cnf
|
|
||||||
+++ b/spec/ssl/ca.cnf
|
|
||||||
@@ -6,6 +6,10 @@ default_startdate = 2015010360000Z
|
|
||||||
[ req ]
|
|
||||||
distinguished_name = req_distinguished_name
|
|
||||||
|
|
||||||
+# Root CA certificate extensions
|
|
||||||
+[ v3_ca ]
|
|
||||||
+basicConstraints = critical, CA:true
|
|
||||||
+
|
|
||||||
[ req_distinguished_name ]
|
|
||||||
# If this isn't set, the error is error, no objects specified in config file
|
|
||||||
commonName = Common Name (hostname, IP, or your name)
|
|
||||||
diff --git a/spec/ssl/cert.cnf b/spec/ssl/cert.cnf
|
|
||||||
index ca1dce701..832ec1197 100644
|
|
||||||
--- a/spec/ssl/cert.cnf
|
|
||||||
+++ b/spec/ssl/cert.cnf
|
|
||||||
@@ -6,6 +6,10 @@ default_startdate = 2015010360000Z
|
|
||||||
[ req ]
|
|
||||||
distinguished_name = req_distinguished_name
|
|
||||||
|
|
||||||
+# Root CA certificate extensions
|
|
||||||
+[ v3_ca ]
|
|
||||||
+basicConstraints = critical, CA:true
|
|
||||||
+
|
|
||||||
[ req_distinguished_name ]
|
|
||||||
# If this isn't set, the error is error, no objects specified in config file
|
|
||||||
commonName = Common Name (hostname, IP, or your name)
|
|
||||||
diff --git a/spec/ssl/client-cert.pem b/spec/ssl/client-cert.pem
|
|
||||||
index 3887246fe..6c46e2d7c 100644
|
|
||||||
--- a/spec/ssl/client-cert.pem
|
|
||||||
+++ b/spec/ssl/client-cert.pem
|
|
||||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ONAJNUfh2GqRLq2JOf0cyhNlsKQ3epkeUyc72knI
|
|
||||||
-oWVxPluQYvFHN+xif0FMGVLM8lz0b+6uPJDA2Km70B/iorMRVb0vbMeFrMmQ5UgM
|
|
||||||
-4tplX52P2vb6JNnektfR
|
|
||||||
+CgKCAQEAnaBhN4wLvmzVFg91HZH2PmacZVpb3I51qoiGQS7i8oiLAyvqCIjJVoCG
|
|
||||||
+CWfBk8s6WNAPiE9pqvKyUXTfpvZBlW9t4hwQImRD15Sr55/yWWnKO7SwHhY8BTeo
|
|
||||||
+QVlSBrfPnKMIjByudi/G7fR9naXoeQREAP2hl8h/gh7UBAm6kNTFxxD/1Byal/iW
|
|
||||||
+BwoYqQQYVUuYThdI0C17qYn7dthtjjGRbexouVRwN446qR9dC71A27VgNUmlFb/E
|
|
||||||
+ygmfEFPhJRNf9fSVAABkNHPhHtg5tURjcZi9ldZMr8o6643hY1kW1xyS3VFLIcP6
|
|
||||||
+2Cing0f0/Cjh5jg4l5uEcN/AUpbw+QIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQA2
|
|
||||||
+4Hh2Qf3eDcKZCvjHmwgCXkhFpZtgpBTgEyPfl0UKwrgkdBiqGY6jywCIsDvp0DrN
|
|
||||||
+OL7Ybk+tdDE95HUfC4W7MBa2wS5WCksIjq+8N4Q61np8gine01IUofjeBSlkNgkF
|
|
||||||
+phtOVeadCky3UlBBGXBSwaPC+uyHlXEOlmfm1YOP0QboqzMorEl4ZECxFVtkyKbu
|
|
||||||
+tud9BDitIcb7x2JjrLlmnltE3JQ+WI9iyL0EAXDloIPUkeyf123lFGNSXDCEj2Ru
|
|
||||||
+8wzQjNDGYiMrwYFib+6d0UE1ED2KLn7TN5lHhgC/H3RUv3dAIgciuysqepTC25DV
|
|
||||||
+soLMzebCsw4UprXFCUbz
|
|
||||||
-----END CERTIFICATE-----
|
|
||||||
diff --git a/spec/ssl/client-key.pem b/spec/ssl/client-key.pem
|
|
||||||
index d75294225..ad4af278c 100644
|
|
||||||
--- a/spec/ssl/client-key.pem
|
|
||||||
+++ b/spec/ssl/client-key.pem
|
|
||||||
@@ -1,27 +1,28 @@
|
|
||||||
------BEGIN RSA PRIVATE KEY-----
|
|
||||||
-MIIEowIBAAKCAQEA1ZuBf1FVJqil7/LvnXqPd43ujo0xqbFy7QrqmM5U/UM3ggMC
|
|
||||||
-f2Gr2/WoZJGPTk1NFaiUyM5mhSlgi0/SGPEp9JMUuH+Uiv9UwmOFl9Em3FXQQ8SG
|
|
||||||
-7fV7651uAUskNgfEqoy+f+uvi1P155rHNDx7Yw6i+wwfpLGTU0boMnLL6cO/KcIb
|
|
||||||
-Zlx4/2Lqr5sYbpIqhz46bbG+fIhvepruH9h7WVWqAibTqymYrA3T03O/HWTOqfq0
|
|
||||||
-3gM7Oe3tJvJbqX2LecQvi2SbQoX8c2MrQ6X7xDe2Ajh7Yx9DQ1gqClTglbPFHNiW
|
|
||||||
-PcGACg+W2ptCY/Q2SdP5h1dtj5Sw5VwL3dvCjQIDAQABAoIBAEWhGjZZWctvQCAW
|
|
||||||
-bbtEv012a6P2LJEnMdJJM6253IRuC8MKnh7NxMq/qjOWK0OX+R+tQ0qt1Udk9H6U
|
|
||||||
-92SAAHAkHaYCmHYywvtWm66gU+2Q34Gnp2AcHFfyinBLgTNHlvkNRe/G8QMWzFrB
|
|
||||||
-3luNt57Tn5b8Hbh+1gpYW8pOF2BMgIsLRK+8b26TKUWrSCc/ZxOSY4wmrNybxkgr
|
|
||||||
-HGt27lwIN0cvJZbmQvHevNzzCn+bYoo2K1MQj34xHbZ2NLqKqFVlSJtr9+BHffAc
|
|
||||||
-fkcf+V+D+FkitUVkha9qXa02wtLzYSF+Q5Ef3kQQs6hs/HOdN16g17l9QC6Mk1vm
|
|
||||||
-a9yV5CECgYEA/9FglQmFimwBCOWEvjkZzoXFusuvRWRgAPU/1c9DAYRS2GfOkjlH
|
|
||||||
-RPAltczdXh4EQ0NkCqHH7JWgrdXGonKg4fcITumdwcYKV5QfmKBO4onAboEM0Wq7
|
|
||||||
-wjifuga7npQhPnGvkXFDamVz5McQPObvV42VAUwk1N00gOYw/46ryLkCgYEA1cJv
|
|
||||||
-jHAq0DKlUGXKyZ+ixsogRpwTQvND/qUquSLgD/KgfeT+70AnsEF6DbVLKoaJ35CF
|
|
||||||
-ju83VYLfeBljq+E/lgmAyaChplORRXcu+xPQE4rbp0MbsoBOYGNWLFAw3twGsQf9
|
|
||||||
-iuAtCVxij/hhj4FWRebYHMnV6Min2VPbZdASNnUCgYBIiX8gY3XJPTzB4ArWwWwu
|
|
||||||
-4kGh6NWHEKIkQ2ZZYw615GZ1VGH/llw+EPYwaamvYUWGKRq55QvCat8Hy6EqOOSj
|
|
||||||
-jh99+MIxyszt7mNTLMmRdMvqyY7v5prcxJ+N6RDUM16FzUiiLgKWrbPCACv7iOP+
|
|
||||||
-6HeCyat77ElR73OfUz4kiQKBgH+2r9cEnU/PMp4ac1KLokGLOkV1srxpg9J89E2w
|
|
||||||
-3JYqrGELlJV1i0DvnfDaxJIf1/hO7L09h537l3C2Gqry5X7LJrtQ0cQCYeVTFCrG
|
|
||||||
-56cFa78/hSjdJ/bG4xGOx+QfKZBT6dQzpDTXkbva9s86w0T4a16n6LowSLi8NXVb
|
|
||||||
-H8aRAoGBAKzlt6deB+ASIrGH6mM0eLxF1OcNTB+rE4AJxoUyO1oAmCv9UeK3IzwP
|
|
||||||
-ohhmo/kEOSCVG6WE+6+r9mojcoHu3ZrobVKl59R7KMdzunMXqxZcXeTqjvqdTtV7
|
|
||||||
-rWuEz/TKIe7o0Tx19XVGuNftyx2pLuspSAAbZ+YAQJtzmLzsGkss
|
|
||||||
------END RSA PRIVATE KEY-----
|
|
||||||
+-----BEGIN PRIVATE KEY-----
|
|
||||||
+MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCdoGE3jAu+bNUW
|
|
||||||
+D3UdkfY+ZpxlWlvcjnWqiIZBLuLyiIsDK+oIiMlWgIYJZ8GT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Rdv4+7U1tqg2ZQ52zjMliZvEDriPZ40vhONBXYyKtx1HZ9OexDOLKUzzY
|
|
||||||
+c1MMobj+RwKBgBFWPwdvhANBSS720MePnwLTZQ+sFOJTTiLKyghRE0hzOp4AABMj
|
|
||||||
+PESI/WnqyRIsFPjE3meXwvyN86wE7pz+WpoOP++Z8zAbfXpzO7IPsgdv/mV1L64g
|
|
||||||
+swzdvg6LtvL2okaOiVbHhNR08rfO8Cn+3E/WMk9ocoCvCqT4TA0/A2OzAoGBAILO
|
|
||||||
+TpgzxgcPM6NrpWkc+R4N64NJLwz5WEJQVMnQKWfVaAGL+WIR2ri4S0OA6iKa7CMt
|
|
||||||
+cx/EE6fQP6ynxj8102F0ZDt1jKwRuWLI5aVwZGGsrIGkQxAdVciYnDo/29gPzFCz
|
|
||||||
+HmpXuQy9fR8Olp2aXiARpXQZ4EbswPj7D7X7rf0HAoGAQhhg0xfIuOrLRXrhfFEg
|
|
||||||
+NzASVKvtCEMDbJD4mWCOuqe7Jlvi/qmXZ9YnuKOmGukGV0/ePtLI1+Hcstr4kexb
|
|
||||||
+lUJYZQlB9e0Ft87UD16TuGHAMBKdtXQKuBjMeI0C43kSBq0XuiyY9b44ADH/up07
|
|
||||||
+vkqwfAOUVKCHp4KOOruW9cc=
|
|
||||||
+-----END PRIVATE KEY-----
|
|
||||||
diff --git a/spec/ssl/client-req.pem b/spec/ssl/client-req.pem
|
|
||||||
index fc077486b..38774a53e 100644
|
|
||||||
--- a/spec/ssl/client-req.pem
|
|
||||||
+++ b/spec/ssl/client-req.pem
|
|
||||||
@@ -1,15 +1,15 @@
|
|
||||||
-----BEGIN CERTIFICATE REQUEST-----
|
|
||||||
MIICZTCCAU0CAQAwIDEeMBwGA1UEAwwVbXlzcWwyZ2VtLmV4YW1wbGUuY29tMIIB
|
|
||||||
-IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1ZuBf1FVJqil7/LvnXqPd43u
|
|
||||||
-jo0xqbFy7Qrqm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Yn7dthtjjGR
|
|
||||||
+bexouVRwN446qR9dC71A27VgNUmlFb/EygmfEFPhJRNf9fSVAABkNHPhHtg5tURj
|
|
||||||
+cZi9ldZMr8o6643hY1kW1xyS3VFLIcP62Cing0f0/Cjh5jg4l5uEcN/AUpbw+QID
|
|
||||||
+AQABoAAwDQYJKoZIhvcNAQELBQADggEBACPgLE417R3dHf9eiwVtoOSzm8ltNBbz
|
|
||||||
+5dRqiHDMEXuH+aGiNtTI1BI9akXrgjyN+nXWK09jZsWJ/+8mj+NcGS8JfdQdVn0c
|
|
||||||
+Ov/kmxoVwNEzj3mboL0amM7kQv6zRa1hKk7l5ZE+5G/EvWU2xF0qrHvGLvphgL0D
|
|
||||||
++/PBJomMHAMYF5MUEOLtnwdslMS0OyAQCHu/swDhIj8jSCkoz4M8gpB2cV+VOHCG
|
|
||||||
+hW2sxlF67cgXLBXCgU0TP6bZbByPb8pEVax2808+wl3fCiM2IwcRtM3WTkSbESuN
|
|
||||||
+CjFO7OeUq4o1Dtiw2uBfNpe+dviGvDeyIBfUmkzqJH3BBpQyGHWU9YE=
|
|
||||||
-----END CERTIFICATE REQUEST-----
|
|
||||||
diff --git a/spec/ssl/gen_certs.sh b/spec/ssl/gen_certs.sh
|
|
||||||
index 3d48da014..4996b845d 100644
|
|
||||||
--- a/spec/ssl/gen_certs.sh
|
|
||||||
+++ b/spec/ssl/gen_certs.sh
|
|
||||||
@@ -10,6 +10,10 @@ default_startdate = 2015010360000Z
|
|
||||||
[ req ]
|
|
||||||
distinguished_name = req_distinguished_name
|
|
||||||
|
|
||||||
+# Root CA certificate extensions
|
|
||||||
+[ v3_ca ]
|
|
||||||
+basicConstraints = critical, CA:true
|
|
||||||
+
|
|
||||||
[ req_distinguished_name ]
|
|
||||||
# If this isn't set, the error is "error, no objects specified in config file"
|
|
||||||
commonName = Common Name (hostname, IP, or your name)
|
|
||||||
@@ -35,7 +39,7 @@ commonName_default = mysql2gem.example.com
|
|
||||||
|
|
||||||
# Generate a set of certificates
|
|
||||||
openssl genrsa -out ca-key.pem 2048
|
|
||||||
-openssl req -new -x509 -nodes -days 3600 -key ca-key.pem -out ca-cert.pem -batch -config ca.cnf
|
|
||||||
+openssl req -new -x509 -nodes -extensions v3_ca -days 3600 -key ca-key.pem -out ca-cert.pem -batch -config ca.cnf
|
|
||||||
openssl req -newkey rsa:2048 -days 3600 -nodes -keyout pkcs8-server-key.pem -out server-req.pem -batch -config cert.cnf
|
|
||||||
openssl x509 -req -in server-req.pem -days 3600 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 -out server-cert.pem
|
|
||||||
openssl req -newkey rsa:2048 -days 3600 -nodes -keyout pkcs8-client-key.pem -out client-req.pem -batch -config cert.cnf
|
|
||||||
diff --git a/spec/ssl/pkcs8-client-key.pem b/spec/ssl/pkcs8-client-key.pem
|
|
||||||
index a4858b4a0..ad4af278c 100644
|
|
||||||
--- a/spec/ssl/pkcs8-client-key.pem
|
|
||||||
+++ b/spec/ssl/pkcs8-client-key.pem
|
|
||||||
@@ -1,28 +1,28 @@
|
|
||||||
-----BEGIN PRIVATE KEY-----
|
|
||||||
-MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDVm4F/UVUmqKXv
|
|
||||||
-8u+deo93je6OjTGpsXLtCuqYzlT9QzeCAwJ/Yavb9ahkkY9OTU0VqJTIzmaFKWCL
|
|
||||||
-T9IY8Sn0kxS4f5SK/1TCY4WX0SbcVdBDxIbt9XvrnW4BSyQ2B8SqjL5/66+LU/Xn
|
|
||||||
-msc0PHtjDqL7DB+ksZNTRugycsvpw78pwhtmXHj/YuqvmxhukiqHPjptsb58iG96
|
|
||||||
-mu4f2HtZVaoCJtOrKZisDdPTc78dZM6p+rTeAzs57e0m8lupfYt5xC+LZJtChfxz
|
|
||||||
-YytDpfvEN7YCOHtjH0NDWCoKVOCVs8Uc2JY9wYAKD5bam0Jj9DZJ0/mHV22PlLDl
|
|
||||||
-XAvd28KNAgMBAAECggEARaEa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QlB9e0Ft87UD16TuGHAMBKdtXQKuBjMeI0C43kSBq0XuiyY9b44ADH/up07
|
|
||||||
+vkqwfAOUVKCHp4KOOruW9cc=
|
|
||||||
-----END PRIVATE KEY-----
|
|
||||||
diff --git a/spec/ssl/pkcs8-server-key.pem b/spec/ssl/pkcs8-server-key.pem
|
|
||||||
index c803fba65..95eeb77c6 100644
|
|
||||||
--- a/spec/ssl/pkcs8-server-key.pem
|
|
||||||
+++ b/spec/ssl/pkcs8-server-key.pem
|
|
||||||
@@ -1,28 +1,28 @@
|
|
||||||
-----BEGIN PRIVATE KEY-----
|
|
||||||
-MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCtyxWYD01zMQby
|
|
||||||
-RwzqzrGypf/x/rhNUT70HChE9TpojPmCe9e38eSvz1+0kGWb4VGKB705mPsY8yry
|
|
||||||
-IO/T2StZI11Ddh7qGbiXJFFeU3s4lrcis3qZTZNvui8hPVmGRjn6TRe6FkX0B/lF
|
|
||||||
-Ip0TV3X2aSAIU7oZpn6qmn4WZFFKgy/EVuDzeaf/RvTrfhnOhbBwhX+93WXt50fK
|
|
||||||
-73YFBEUJ4hOO0VoB34O/555OHY4/FRjTWTusL2LgxcTcE/GRGk9BPBN4cfhmlJHB
|
|
||||||
-hTSiXkGOyLGv8kbrYffockDhkiPJbMSdWIRV+ZpQX3YXf2y3lGOGbWptgMi3ttzh
|
|
||||||
-6RaKmoZJAgMBAAECggEAFhAyLZvDuVwABcH/Yc/bv1JTq+UqgKZP1627bwWy5JMB
|
|
||||||
-Gg+e0ztiTO+GtuWeAKwaLevNmgJR3lkAmryTtdFcL3TN4kKcqhuZ05ZIvjDa89Qu
|
|
||||||
-a7ldVxkCHq0ETrP7KZDAy4X9/SHWv6RDgQNj7ZCs6RtvdZ8rgRYh/oaeezlBGLRZ
|
|
||||||
-OIeWWHTYk8CMhu+tzR+BHZdXUEHo/sZHwmpdhQQ0HtXs87Eo51waVwHL0BgXT+ak
|
|
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aj0mnhKephpJQ+Khd77g/GT6ZAqxkxi
|
|
||||||
+drhTfKlSou0oEEd34ZuK7d6mCwKBgQC8UrbCErc+r4Ff48/0BfbJWZ7sN/HP/QtI
|
|
||||||
+R2V9v3VpGqMX93v+YhQepxpd4PSkxluEmbbwYkA81un1ot7ndNkLIN0x59P9tVR0
|
|
||||||
+ghXuLmLwxExM5ekrfPt7gbkhwUCwRTogjocm6VoF541tn+ll724XtBdewhyXEUm7
|
|
||||||
+IG0/tLU2gQKBgQCx3avaNprq7bIxVW/Jtk361AdroZvOJx068KnUQSEYnzzLEsDE
|
|
||||||
+4QXCNiyks5H7kuZTfG3K0zJ3xs1nbMacjgUYeKNqnbNC5tfvgE0TsL9xTJnRdxsg
|
|
||||||
+ZJwWGBYr0GmMOjMz+7iecbE9WwZ+wGPz5LWcze6HSiBblMOOn3GNEJvAbwKBgHXS
|
|
||||||
+3ksgAIv0rGH9Gz9Wd+fT7Y1nFyCE9gkbulDpd6DxrHazPV2TqXjgHav8sbNh8yJM
|
|
||||||
+NdvB7OTjpW8snn97aMwAnMO7grOqPpPCS8xAM2Dlv8Mg2Th/Mqw8JkMLMNjYBx0V
|
|
||||||
+b1OWDd/B1odu1E0VdvDXmQONOOv/Qf0UtaV0/yeBAoGAaUO9xrblsqEmP+2lqsiv
|
|
||||||
+qwNLk5PICaoXwIacFdhc8YhC5OoXxRmLlyJmz72aKLTnNH+ZYsNYcJlhexhxpxq5
|
|
||||||
+vsxdk7rO741EDuFAk1Hsx1Q2G2+q6VWIWQhsn5eTGdas2qdNrKoNwN3wuALPPeeQ
|
|
||||||
+l7yIJxi7Qn24xh+Bjdp1CDU=
|
|
||||||
-----END PRIVATE KEY-----
|
|
||||||
diff --git a/spec/ssl/server-cert.pem b/spec/ssl/server-cert.pem
|
|
||||||
index 9ec690dd3..746bd5446 100644
|
|
||||||
--- a/spec/ssl/server-cert.pem
|
|
||||||
+++ b/spec/ssl/server-cert.pem
|
|
||||||
@@ -1,17 +1,17 @@
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
|
|
||||||
-XVqgvIKG4deUpdl7oUBRz79spAi1OpHWiNmW3b+8nKJoHTfYkKzCebeLdI++xSjX
|
|
||||||
-jXNryv5xK88LFIPKL/7e
|
|
||||||
+CgKCAQEAq72O8qvgU/WUj/cjnQFX4Mddn95cHDv5uhfkf2ftG1Ur1bW2IjtcZ/t5
|
|
||||||
+fK8/ME+vnwVVayMabqRVD2WpW9AT9O45qoQu2IAY4GndL5FKYdaXgifp7SWLYsaQ
|
|
||||||
+GTmY+9Gk/9gio7hpJlhZy68q8QZqaZR3mtQcCyba1oEBCXGhaoidZWxo4p7naPHW
|
|
||||||
+ObWe4ssmfnZPPkyg7Ff9acrgDnpimA2N+I1H9SxOduaUkfwXAxmAnc6QbDi7KkSn
|
|
||||||
+/uXfHGStOSOqGGCpAMKDN0MJsKS0pvaaBVJaPN7jA1ORR++oVhcJHeTxPKEm3SnK
|
|
||||||
+endADIfy9E0ulfZRjOfI1vYO9f79iwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQBc
|
|
||||||
+sRGEk10OWCm8MlfyWLmj3dAokO/LC1Ya6wP9gCtepvkum4hISKFmJpLYokUXpyOa
|
|
||||||
+GnUJ96eyHVg5OKz2r1rEra2E6oiP6FW6WCe8tVQEfsV6B7LkJ0O2X5us1kY+gmo6
|
|
||||||
+ch2/BDWROhjV5LgSPkuCNfNS2mkKo0vEg3xovYBNlqBveyrRnkPcR1qANt3RV3JR
|
|
||||||
+ADfqPGNU6IFoKiFZhK5wjwjUl2p1a12aw6C3e/O2UeJDsSEucN6yjEa/KZhlBfpH
|
|
||||||
+4RSSRpSuWeGu2ndSaVwFYX44//v8vnW7+pFDWB0LFbv+Jd9qji0chaFWh3jJKNas
|
|
||||||
+vALqzCG44enapVb/7m4i
|
|
||||||
-----END CERTIFICATE-----
|
|
||||||
diff --git a/spec/ssl/server-key.pem b/spec/ssl/server-key.pem
|
|
||||||
index 8bc45372b..95eeb77c6 100644
|
|
||||||
--- a/spec/ssl/server-key.pem
|
|
||||||
+++ b/spec/ssl/server-key.pem
|
|
||||||
@@ -1,27 +1,28 @@
|
|
||||||
------BEGIN RSA PRIVATE KEY-----
|
|
||||||
-MIIEpQIBAAKCAQEArcsVmA9NczEG8kcM6s6xsqX/8f64TVE+9BwoRPU6aIz5gnvX
|
|
||||||
-t/Hkr89ftJBlm+FRige9OZj7GPMq8iDv09krWSNdQ3Ye6hm4lyRRXlN7OJa3IrN6
|
|
||||||
-mU2Tb7ovIT1ZhkY5+k0XuhZF9Af5RSKdE1d19mkgCFO6GaZ+qpp+FmRRSoMvxFbg
|
|
||||||
-83mn/0b0634ZzoWwcIV/vd1l7edHyu92BQRFCeITjtFaAd+Dv+eeTh2OPxUY01k7
|
|
||||||
-rC9i4MXE3BPxkRpPQTwTeHH4ZpSRwYU0ol5Bjsixr/JG62H36HJA4ZIjyWzEnViE
|
|
||||||
-VfmaUF92F39st5Rjhm1qbYDIt7bc4ekWipqGSQIDAQABAoIBABYQMi2bw7lcAAXB
|
|
||||||
-/2HP279SU6vlKoCmT9etu28FsuSTARoPntM7YkzvhrblngCsGi3rzZoCUd5ZAJq8
|
|
||||||
-k7XRXC90zeJCnKobmdOWSL4w2vPULmu5XVcZAh6tBE6z+ymQwMuF/f0h1r+kQ4ED
|
|
||||||
-Y+2QrOkbb3WfK4EWIf6Gnns5QRi0WTiHllh02JPAjIbvrc0fgR2XV1BB6P7GR8Jq
|
|
||||||
-XYUENB7V7POxKOdcGlcBy9AYF0/mpL+6W4XurBoDYKIsefS7vVm2s8VyMkWAzJGX
|
|
||||||
-4NHwmrkTBtOVr2nrqJ5P85QvPBINzMkCFvPgaHuzNsiPnoEWHjNkwgZ69ge5/H0x
|
|
||||||
-v8UBCgECgYEA3voYGFm6IenowmqwAVDnfdA//2i7W8rtBwUOmDYjz1L1ZhDHw1bH
|
|
||||||
-McOgV07UVqR2EsbD1fiKVDO90rf3LkZqz9Qzk0+LCSX/ZbzYN+fjnHhh0XtIVVFP
|
|
||||||
-ZlagTGy8+TTj8MVpauHkoCvnACqt4OZaeOyBcV9EfoPnb5O2IUsuPq8CgYEAx4hA
|
|
||||||
-S42WoWNdND33y8oCML8G08qCvVDI0jp9bBqjn/Whe/c0CCEYRJjzf43vY6pwHH/P
|
|
||||||
-or0tXS2KFG6KLJu9ted+PVMOkvQuN0SJ9Yi2URjuwXqtyjq3aeDRZ4d0LIKB+I6d
|
|
||||||
-YKeMOkMgQtrmAXUFwPRqVEdvmOOQSClUh0FeCIcCgYEA0C4oOPPtOKSvUHVThqcG
|
|
||||||
-uwyn88rQws8fpiIukiZaIMOPoo+gMtzedbP0DA/paEt8geNaDHhUjnEQlaB1A5tz
|
|
||||||
-Nj8lODBX217CqTY7mVbDx98NVQwJaL7VpvLSDwinFvUurClkVwo47uKOdjViykvH
|
|
||||||
-xIbsA/GyfXyhpCcBMOyEbLkCgYEAlA+H3kiPiOyJwfVlxiP9YhyuPUSdpUun6VAb
|
|
||||||
-t7dAybbkgG+cfZfJQUXaEkHJbMSRcqRo+BK28diUCLtJ7vYWXUANTgYu318wWDSU
|
|
||||||
-xs0OtLjymkGlalYNuhRobxF1ZH3nYgC5yXoqtSUQcGusl1I11cvIhweHSQU8EEAT
|
|
||||||
-CFa6J0sCgYEAzj2JJanc0b/ruF7pFlrLyuxi4/YbsHR9DSOYKLhjG+Tk4H1aOuvr
|
|
||||||
-q6uKmHB0TeL3HcWz/SqCTwbyoXcfgwN+iNhEbP//doCM+pXDbKpnQMxwF9cs6eCM
|
|
||||||
-hRrI82iom50K37e4W/Sn4PVcqQW/xt9ce5pvoGZuET9423ATw59MVP8=
|
|
||||||
------END RSA PRIVATE KEY-----
|
|
||||||
+-----BEGIN PRIVATE KEY-----
|
|
||||||
+MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCrvY7yq+BT9ZSP
|
|
||||||
+9yOdAVfgx12f3lwcO/m6F+R/Z+0bVSvVtbYiO1xn+3l8rz8wT6+fBVVrIxpupFUP
|
|
||||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VoF541tn+ll724XtBdewhyXEUm7
|
|
||||||
+IG0/tLU2gQKBgQCx3avaNprq7bIxVW/Jtk361AdroZvOJx068KnUQSEYnzzLEsDE
|
|
||||||
+4QXCNiyks5H7kuZTfG3K0zJ3xs1nbMacjgUYeKNqnbNC5tfvgE0TsL9xTJnRdxsg
|
|
||||||
+ZJwWGBYr0GmMOjMz+7iecbE9WwZ+wGPz5LWcze6HSiBblMOOn3GNEJvAbwKBgHXS
|
|
||||||
+3ksgAIv0rGH9Gz9Wd+fT7Y1nFyCE9gkbulDpd6DxrHazPV2TqXjgHav8sbNh8yJM
|
|
||||||
+NdvB7OTjpW8snn97aMwAnMO7grOqPpPCS8xAM2Dlv8Mg2Th/Mqw8JkMLMNjYBx0V
|
|
||||||
+b1OWDd/B1odu1E0VdvDXmQONOOv/Qf0UtaV0/yeBAoGAaUO9xrblsqEmP+2lqsiv
|
|
||||||
+qwNLk5PICaoXwIacFdhc8YhC5OoXxRmLlyJmz72aKLTnNH+ZYsNYcJlhexhxpxq5
|
|
||||||
+vsxdk7rO741EDuFAk1Hsx1Q2G2+q6VWIWQhsn5eTGdas2qdNrKoNwN3wuALPPeeQ
|
|
||||||
+l7yIJxi7Qn24xh+Bjdp1CDU=
|
|
||||||
+-----END PRIVATE KEY-----
|
|
||||||
diff --git a/spec/ssl/server-req.pem b/spec/ssl/server-req.pem
|
|
||||||
index 94675507d..1600bfe65 100644
|
|
||||||
--- a/spec/ssl/server-req.pem
|
|
||||||
+++ b/spec/ssl/server-req.pem
|
|
||||||
@@ -1,15 +1,15 @@
|
|
||||||
-----BEGIN CERTIFICATE REQUEST-----
|
|
||||||
MIICZTCCAU0CAQAwIDEeMBwGA1UEAwwVbXlzcWwyZ2VtLmV4YW1wbGUuY29tMIIB
|
|
||||||
-IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArcsVmA9NczEG8kcM6s6xsqX/
|
|
||||||
-8f64TVE+9BwoRPU6aIz5gnvXt/Hkr89ftJBl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I1H9SxOduaUkfwXAxmAnc6QbDi7KkSn/uXfHGStOSOqGGCpAMKDN0MJsKS0pvaa
|
|
||||||
+BVJaPN7jA1ORR++oVhcJHeTxPKEm3SnKendADIfy9E0ulfZRjOfI1vYO9f79iwID
|
|
||||||
+AQABoAAwDQYJKoZIhvcNAQELBQADggEBAIAzuYloX5Pwi+5n73yhaw5V+jMABiuw
|
|
||||||
+rYI2LziLBqw4vuvjEqvyr80Y9H2fLHOfVRaFnU6PaMkkH/p8d8YBD4/ZRGSd3oHX
|
|
||||||
+hlNltqyTCx1LNIUCXkl18jfPK3sVwwC07cLqSxQP8diauaDE59F6lsP3L0Gbwntd
|
|
||||||
+brSVJcY+5JGuWMx2BDXECxu6E7D/8drvPQa6EXDJjk1WVF/69I3TWhfX4/a5zIrc
|
|
||||||
+bJDTRBl5yQA0dpPmr/d8Di4mqAqeecVPNXi/CWkDQl3PoBp7O69T6VG3R00krgQr
|
|
||||||
+rXzbPJsEDLm7ynu/TWMamSCOUiMH5CBVBVXJSTVevGFK+gdjXf8LJ/0=
|
|
||||||
-----END CERTIFICATE REQUEST-----
|
|
@ -1,361 +0,0 @@
|
|||||||
# build with tests?
|
|
||||||
%bcond_without tests
|
|
||||||
|
|
||||||
# Generated from mysql2-0.3.11.gem by gem2rpm -*- rpm-spec -*-
|
|
||||||
%global gem_name mysql2
|
|
||||||
|
|
||||||
Name: rubygem-%{gem_name}
|
|
||||||
Version: 0.5.5
|
|
||||||
Release: 6%{?dist}
|
|
||||||
Summary: A simple, fast Mysql library for Ruby, binding to libmysql
|
|
||||||
License: MIT
|
|
||||||
URL: https://github.com/brianmario/mysql2
|
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
||||||
# git clone --no-checkout https://github.com/brianmario/mysql2.git
|
|
||||||
# cd mysql2 && git archive -v -o mysql2-0.5.5-tests.txz 0.5.5 spec/
|
|
||||||
Source1: %{gem_name}-%{version}-tests.txz
|
|
||||||
# Use the SSL pem files in the upstream repositry for the SSL tests.
|
|
||||||
# https://github.com/brianmario/mysql2/pull/1293
|
|
||||||
Patch0: rubygem-mysql2-0.5.4-use-ssl-pem-files-in-repo.patch
|
|
||||||
# openssl 3.2 requires CA:TRUE
|
|
||||||
# https://github.com/brianmario/mysql2/pull/1357
|
|
||||||
Patch1: rubygem-mysql2-0.5.5-openssl-CA-TRUE.patch
|
|
||||||
|
|
||||||
# Required in lib/mysql2.rb
|
|
||||||
Requires: rubygem(bigdecimal)
|
|
||||||
BuildRequires: ruby(release)
|
|
||||||
BuildRequires: rubygems-devel
|
|
||||||
BuildRequires: ruby-devel
|
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: mariadb-connector-c-devel
|
|
||||||
%if %{with tests}
|
|
||||||
BuildRequires: mariadb-server
|
|
||||||
BuildRequires: rubygem(rspec)
|
|
||||||
# Used in mysql_install_db
|
|
||||||
BuildRequires: %{_bindir}/hostname
|
|
||||||
BuildRequires: rubygem(bigdecimal)
|
|
||||||
%if !0%{?rhel}
|
|
||||||
# Used in spec/em/em_spec.rb as optional dependency.
|
|
||||||
# If rubygem-eventmachine is not present, the tests in the file are skipped.
|
|
||||||
BuildRequires: rubygem(eventmachine)
|
|
||||||
%endif
|
|
||||||
# Used in spec/ssl/gen_certs.sh
|
|
||||||
BuildRequires: %{_bindir}/openssl
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
|
||||||
The Mysql2 gem is meant to serve the extremely common use-case of
|
|
||||||
connecting, querying and iterating on results. Some database libraries
|
|
||||||
out there serve as direct 1:1 mappings of the already complex C API\'s
|
|
||||||
available. This one is not.
|
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
|
||||||
Summary: Documentation for %{name}
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%description doc
|
|
||||||
Documentation for %{name}
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n %{gem_name}-%{version} -b 1
|
|
||||||
|
|
||||||
pushd %{_builddir}/spec
|
|
||||||
%patch0 -p2
|
|
||||||
%patch1 -p2
|
|
||||||
popd
|
|
||||||
|
|
||||||
%build
|
|
||||||
gem build ../%{gem_name}-%{version}.gemspec
|
|
||||||
%gem_install
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
|
||||||
mkdir -p %{buildroot}%{gem_dir}
|
|
||||||
cp -pa .%{gem_dir}/* \
|
|
||||||
%{buildroot}%{gem_dir}/
|
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{gem_extdir_mri}/%{gem_name}
|
|
||||||
cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/
|
|
||||||
cp -a .%{gem_extdir_mri}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name}
|
|
||||||
|
|
||||||
# Prevent dangling symlink in -debuginfo.
|
|
||||||
rm -rf %{buildroot}%{gem_instdir}/ext
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with tests}
|
|
||||||
%check
|
|
||||||
pushd .%{gem_instdir}
|
|
||||||
# Move the tests into place
|
|
||||||
ln -s %{_builddir}/spec spec
|
|
||||||
|
|
||||||
TOP_DIR=$(pwd)
|
|
||||||
|
|
||||||
# Regenerate the SSL certification files from the localhost, as we cannot set
|
|
||||||
# the host mysql2gem.example.com required for the SSL tests.
|
|
||||||
# https://github.com/brianmario/mysql2/pull/1296
|
|
||||||
sed -i '/host/ s/mysql2gem\.example\.com/localhost/' spec/mysql2/client_spec.rb
|
|
||||||
sed -i '/commonName_default/ s/mysql2gem\.example\.com/localhost/' spec/ssl/gen_certs.sh
|
|
||||||
pushd spec/ssl
|
|
||||||
bash gen_certs.sh
|
|
||||||
popd
|
|
||||||
|
|
||||||
# See https://github.com/brianmario/mysql2/blob/master/ci/ssl.sh
|
|
||||||
echo "
|
|
||||||
[mysqld]
|
|
||||||
ssl-ca=${TOP_DIR}/spec/ssl/ca-cert.pem
|
|
||||||
ssl-cert=${TOP_DIR}/spec/ssl/server-cert.pem
|
|
||||||
ssl-key=${TOP_DIR}/spec/ssl/server-key.pem
|
|
||||||
" > ~/.my.cnf
|
|
||||||
|
|
||||||
# Use testing port because the standard mysqld port 3306 is occupied.
|
|
||||||
# Assign a random port to consider a case of multi builds in parallel in a host.
|
|
||||||
# https://src.fedoraproject.org/rpms/rubygem-pg/pull-request/3
|
|
||||||
MYSQL_TEST_PORT="$((13306 + ${RANDOM} % 1000))"
|
|
||||||
MYSQL_TEST_USER=$(id -un)
|
|
||||||
MYSQL_TEST_DATA_DIR="${TOP_DIR}/data"
|
|
||||||
MYSQL_TEST_SOCKET="${TOP_DIR}/mysql.sock"
|
|
||||||
MYSQL_TEST_LOG="${TOP_DIR}/mysql.log"
|
|
||||||
MYSQL_TEST_PID_FILE="${TOP_DIR}/mysql.pid"
|
|
||||||
|
|
||||||
mkdir "${MYSQL_TEST_DATA_DIR}"
|
|
||||||
# See https://mariadb.com/kb/en/authentication-from-mariadb-10-4/#configuring-mariadb-install-db-to-revert-to-the-previous-authentication-method
|
|
||||||
mysql_install_db \
|
|
||||||
--auth-root-authentication-method=normal \
|
|
||||||
--datadir="${MYSQL_TEST_DATA_DIR}" \
|
|
||||||
--log-error="${MYSQL_TEST_LOG}"
|
|
||||||
|
|
||||||
%{_libexecdir}/mysqld \
|
|
||||||
--datadir="${MYSQL_TEST_DATA_DIR}" \
|
|
||||||
--log-error="${MYSQL_TEST_LOG}" \
|
|
||||||
--socket="${MYSQL_TEST_SOCKET}" \
|
|
||||||
--pid-file="${MYSQL_TEST_PID_FILE}" \
|
|
||||||
--port="${MYSQL_TEST_PORT}" \
|
|
||||||
--ssl &
|
|
||||||
|
|
||||||
conn_found=false
|
|
||||||
for i in $(seq 10); do
|
|
||||||
echo "Waiting for the DB server to accept connections... ${i}"
|
|
||||||
sleep 1
|
|
||||||
if grep -q 'ready for connections' "${MYSQL_TEST_LOG}"; then
|
|
||||||
conn_found=true
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if ! "${conn_found}"; then
|
|
||||||
echo "ERROR: Failed to connect the DB server."
|
|
||||||
cat "${MYSQL_TEST_LOG}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# See https://github.com/brianmario/mysql2/blob/master/ci/setup.sh
|
|
||||||
mysql -u root \
|
|
||||||
-e 'CREATE DATABASE /*M!50701 IF NOT EXISTS */ test' \
|
|
||||||
-S "${MYSQL_TEST_SOCKET}" \
|
|
||||||
-P "${MYSQL_TEST_PORT}"
|
|
||||||
|
|
||||||
# See https://github.com/brianmario/mysql2/blob/master/tasks/rspec.rake
|
|
||||||
cat <<EOF > spec/configuration.yml
|
|
||||||
root:
|
|
||||||
host: localhost
|
|
||||||
username: root
|
|
||||||
password:
|
|
||||||
database: test
|
|
||||||
port: ${MYSQL_TEST_PORT}
|
|
||||||
socket: ${MYSQL_TEST_SOCKET}
|
|
||||||
|
|
||||||
user:
|
|
||||||
host: localhost
|
|
||||||
username: ${MYSQL_TEST_USER}
|
|
||||||
password:
|
|
||||||
database: mysql2_test
|
|
||||||
port: ${MYSQL_TEST_PORT}
|
|
||||||
socket: ${MYSQL_TEST_SOCKET}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
rspec -Ilib:%{buildroot}%{gem_extdir_mri} -f d spec
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Clean up
|
|
||||||
kill "$(cat "${MYSQL_TEST_PID_FILE}")"
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
|
||||||
%dir %{gem_instdir}
|
|
||||||
%{gem_libdir}
|
|
||||||
%{gem_extdir_mri}
|
|
||||||
%exclude %{gem_cache}
|
|
||||||
%{gem_spec}
|
|
||||||
%exclude %{gem_instdir}/support
|
|
||||||
%license %{gem_instdir}/LICENSE
|
|
||||||
|
|
||||||
%files doc
|
|
||||||
%doc %{gem_docdir}
|
|
||||||
%doc %{gem_instdir}/README.md
|
|
||||||
%doc %{gem_instdir}/CHANGELOG.md
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.5.5-6
|
|
||||||
- Bump release for October 2024 mass rebuild:
|
|
||||||
Resolves: RHEL-64018
|
|
||||||
|
|
||||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.5.5-5
|
|
||||||
- Bump release for June 2024 mass rebuild
|
|
||||||
|
|
||||||
* Fri Feb 09 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 0.5.5-4
|
|
||||||
- Adapt tests to mariadb 10.11
|
|
||||||
- Avoid rubygem-eventmachine build dependency in RHEL
|
|
||||||
- Adapt tests to openssl 3.2
|
|
||||||
|
|
||||||
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.5-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jan 03 2024 Vít Ondruch <vondruch@redhat.com> - 0.5.5-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.3
|
|
||||||
|
|
||||||
* Wed Oct 25 2023 Jarek Prokop <jprokop@redhat.com> - 0.5.5-1
|
|
||||||
- Upgrade to rubygem-mysql2 0.5.5.
|
|
||||||
Resolves: rhbz#2163026
|
|
||||||
|
|
||||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-6
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 03 2023 Vít Ondruch <vondruch@redhat.com> - 0.5.4-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.2
|
|
||||||
|
|
||||||
* Fri Dec 16 2022 Jun Aruga <jaruga@redhat.com> - 0.5.4-3
|
|
||||||
- Fix the broken SSL tests with MariaDB 10.5.18.
|
|
||||||
Resolves: rhbz#2144488
|
|
||||||
|
|
||||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed May 04 2022 Jarek Prokop <jprokop@redhat.com> - 0.5.4-1
|
|
||||||
- Upgrade to rubygem-mysql2 0.5.4.
|
|
||||||
Resolves: rhbz#2081426
|
|
||||||
|
|
||||||
* Wed Apr 06 2022 Jun Aruga <jaruga@redhat.com> - 0.5.3-12
|
|
||||||
- Remove gem_make.out and mkmf.log files from the binary RPM package.
|
|
||||||
|
|
||||||
* Thu Feb 17 2022 Pavel Valena <pvalena@redhat.com> - 0.5.3-11
|
|
||||||
- Fix test assertion for mariadb-connector-c
|
|
||||||
|
|
||||||
* Wed Jan 26 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.5.3-10
|
|
||||||
- F-36: rebuild against ruby31
|
|
||||||
- Apply upstream patch : Update Mysql2::Result spec for Ruby 3.1
|
|
||||||
|
|
||||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-9
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-8
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Feb 11 2021 Vít Ondruch <vondruch@redhat.com> - 0.5.3-7
|
|
||||||
- Fix FTBFS due to MariaDB 10.5+ incompatibilies.
|
|
||||||
Resolves: rhbz#1914515
|
|
||||||
Resolves: rhbz#1923277
|
|
||||||
|
|
||||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-7
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 7 03:21:32 CET 2021 Pavel Valena <pvalena@redhat.com> - 0.5.3-6
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0
|
|
||||||
|
|
||||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 2 2020 Alex Chernyakhovsky <achernya@mit.edu> - 0.5.3-4
|
|
||||||
- Update tests to build and run on F32
|
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jan 17 2020 Vít Ondruch <vondruch@redhat.com> - 0.5.3-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.7
|
|
||||||
|
|
||||||
* Mon Dec 02 2019 Jun Aruga <jaruga@redhat.com> - 0.5.3-1
|
|
||||||
- New upstream release 0.5.3
|
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jan 21 2019 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.5.2-2
|
|
||||||
- F-30: rebuild against ruby26
|
|
||||||
|
|
||||||
* Thu Jul 19 2018 Jun Aruga <jaruga@redhat.com> - 0.5.2-1
|
|
||||||
- New upstream release 0.5.2
|
|
||||||
|
|
||||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.10-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Jan 20 2018 Björn Esser <besser82@fedoraproject.org> - 0.4.10-3
|
|
||||||
- Rebuilt for switch to libxcrypt
|
|
||||||
|
|
||||||
* Thu Jan 04 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.4.10-2
|
|
||||||
- F-28: rebuild for ruby25
|
|
||||||
|
|
||||||
* Thu Nov 23 2017 Jun Aruga <jaruga@redhat.com> - 0.4.10-1
|
|
||||||
- New upstream release 0.4.10
|
|
||||||
|
|
||||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.8-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.8-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 13 2017 Adam Williamson <awilliam@redhat.com> - 0.4.8-1
|
|
||||||
- New upstream release 0.4.8 (builds against MariaDB 10.2)
|
|
||||||
|
|
||||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Jan 11 2017 Vít Ondruch <vondruch@redhat.com> - 0.4.4-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
|
|
||||||
|
|
||||||
* Thu Jun 09 2016 Miroslav Suchý <msuchy@redhat.com> - 0.4.4-1
|
|
||||||
- New upstream release 0.4.4
|
|
||||||
|
|
||||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jan 11 2016 Vít Ondruch <vondruch@redhat.com> - 0.4.0-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
|
|
||||||
|
|
||||||
* Tue Sep 8 2015 Miroslav Suchý <msuchy@redhat.com> 0.4.0-1
|
|
||||||
- rebase to mysql2-0.4.0
|
|
||||||
|
|
||||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.16-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jan 16 2015 Vít Ondruch <vondruch@redhat.com> - 0.3.16-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2
|
|
||||||
|
|
||||||
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.16-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.16-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon May 26 2014 Miroslav Suchý <msuchy@redhat.com> 0.3.16-1
|
|
||||||
- rebase to mysql2-0.3.16
|
|
||||||
|
|
||||||
* Tue Apr 15 2014 Vít Ondruch <vondruch@redhat.com> - 0.3.15-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
|
|
||||||
|
|
||||||
* Tue Feb 11 2014 Miroslav Suchý <msuchy@redhat.com> 0.3.15-2
|
|
||||||
- rebase to mysql2-0.3.15
|
|
||||||
|
|
||||||
* Wed Sep 11 2013 Alexander Chernyakhovsky <achernya@mit.edu> - 0.3.13-1
|
|
||||||
- Initial package
|
|
2
sources
2
sources
@ -1,2 +0,0 @@
|
|||||||
SHA512 (mysql2-0.5.5.gem) = a3865bf670c8fbb1942b631ff6eea8c26a9fa8b4d25da0faca84cb9d9c7c44eb98cd29ace83a62596eec0a522899b01044715e900d1389809b65e40fb09b258f
|
|
||||||
SHA512 (mysql2-0.5.5-tests.txz) = 0d6a81324a6466dafb859bb05e6cfc50e9758ead5cf7b50afea16f61568e0a2b9c17f22820aaa4c36c285abe00f855e87a3c7bd0934602cebbb98f299680a2c5
|
|
Loading…
Reference in New Issue
Block a user