|
|
358feff |
Summary: A high-performance MySQL proxy
|
|
|
358feff |
Name: proxysql
|
|
|
8194f50 |
Version: 2.3.2
|
|
|
c8bdc92 |
Release: 4%{?dist}
|
|
|
881bda0 |
# Proxysql Google group for free community support: https://groups.google.com/g/proxysql
|
|
|
358feff |
URL: http://www.proxysql.com/
|
|
|
358feff |
# The entire source code is GPLv3+ except deps/re2 and deps/jemalloc which is BSD
|
|
|
358feff |
# and deps/mariadb-connector-c which is LGPLv2+
|
|
|
24a2dbf |
# and prometheus-cpp which is MIT
|
|
|
24a2dbf |
License: GPLv3+ and LGPLv2+ and BSD and MIT
|
|
|
358feff |
|
|
|
9af3351 |
BuildRequires: make, automake
|
|
|
9af3351 |
BuildRequires: cmake, gcc-c++
|
|
|
9af3351 |
BuildRequires: systemd-rpm-macros
|
|
|
9af3351 |
|
|
|
9af3351 |
# Required by proxysql code
|
|
|
9af3351 |
BuildRequires: libtool
|
|
|
9af3351 |
BuildRequires: pcre-devel
|
|
|
23dd3be |
BuildRequires: zlib-devel
|
|
|
9af3351 |
BuildRequires: libev-devel
|
|
|
9af3351 |
BuildRequires: sqlite-devel
|
|
|
9af3351 |
BuildRequires: openssl-devel
|
|
|
9af3351 |
BuildRequires: libcurl-devel
|
|
|
9af3351 |
BuildRequires: libdaemon-devel
|
|
|
9af3351 |
BuildRequires: libconfig-devel, lz4-devel
|
|
|
9af3351 |
|
|
|
9af3351 |
# Used by provided (scripts) tools
|
|
|
9af3351 |
BuildRequires: perl
|
|
|
9af3351 |
|
|
|
9af3351 |
# Specific dependency for Fedora/RHEL/Centos
|
|
|
fd78e68 |
BuildRequires: gnutls-devel
|
|
|
358feff |
|
|
|
441e163 |
Suggests: mariadb, community-mysql
|
|
|
441e163 |
|
|
|
358feff |
# Build in other architectures aside from x86 is not yet supported due to some
|
|
|
358feff |
# use of assembly code, but is on the upstream roadmap to support them.
|
|
|
358feff |
# https://github.com/sysown/proxysql/issues/977
|
|
|
ce8a914 |
|
|
|
ce8a914 |
# Update 8/2021
|
|
|
ce8a914 |
# Support for arm64 has been added.
|
|
|
ce8a914 |
ExcludeArch: %{power64} s390x
|
|
|
358feff |
|
|
|
a633007 |
Provides: bundled(jemalloc) = 5.2.0
|
|
|
24a2dbf |
Provides: bundled(mariadb-connector-c) = 3.1.9
|
|
|
24a2dbf |
Provides: bundled(re2) = 20200706
|
|
|
24a2dbf |
# Provided source package for clickhouse-cpp was not officially versioned.
|
|
|
a633007 |
Provides: bundled(clickhouse-cpp)
|
|
|
24a2dbf |
Provides: bundled(prometheus-cpp) = v9.0
|
|
|
a633007 |
Provides: bundled(cityhash) = 1.1.1
|
|
|
fd78e68 |
Provides: bundled(libhttpserver) = 0.18.1
|
|
|
24a2dbf |
Provides: bundled(libmicrohttpd) = 0.9.68
|
|
|
a633007 |
|
|
|
0e75f2a |
# There is inconsistency between name and URL of file and main unpacked source folder
|
|
|
0e75f2a |
Source0: https://github.com/sysown/proxysql/archive/refs/tags/v%{version}.tar.gz
|
|
|
358feff |
Source1: proxysql.service
|
|
|
9554405 |
# Manpage for binary is missing. Instead we provide it manually.
|
|
|
9554405 |
# Link for tracking current status in upstream:
|
|
|
9554405 |
# https://github.com/sysown/proxysql/issues/3564
|
|
|
358feff |
Source2: proxysql.1
|
|
|
358feff |
|
|
|
24a2dbf |
# The upstream code bundles multiple libraries: libconfig, libdaemon, sqlite3, re2,
|
|
|
24a2dbf |
# mariadb-connector-c, pcre, clickhouse-cpp, prometheus-cpp, lz4, cityhash, microhttpd, curl
|
|
|
a633007 |
# ev, coredumper, libssl and jemalloc.
|
|
|
a633007 |
# This patch de-bundles 8 of these libraries: libconfig, libdaemon and sqlite3,
|
|
|
a633007 |
# libsl, pcre, curl, lz4, ev
|
|
|
358feff |
# The remaining libraries are not de-bundled due to different reasons (mainly
|
|
|
358feff |
# being patched, more info here: https://bugzilla.redhat.com/show_bug.cgi?id=1457929).
|
|
|
a633007 |
# Other remaining libraries are not maintained in Fedora (clickhouse-cpp,
|
|
|
24a2dbf |
# cityhash, prometheus-cpp)
|
|
|
358feff |
|
|
|
e304656 |
# Provides debundling bundled libraries
|
|
|
a633007 |
Patch0: proxysql_debundle.patch
|
|
|
e304656 |
# Provides lininject convertion to python3
|
|
|
fd78e68 |
Patch1: libinjection_python2_to_3.patch
|
|
|
e304656 |
# Provides fixes for gcc compiler
|
|
|
c8bdc92 |
Patch2: %{name}_gcc11.patch
|
|
|
e304656 |
# Provides fixes for cmake scheme
|
|
|
6d42ed8 |
Patch3: %{name}_mariadb_cmake.patch
|
|
|
e46d112 |
# OpenSSL 3.x
|
|
|
e46d112 |
Patch5: https://github.com/sysown/proxysql/commit/fd16e583ac1a9db5af62079c349a2df80eac6557.patch#/0001-Removed-call-to-deprecated-memory-leak-checking-API-.patch
|
|
|
e46d112 |
Patch6: https://github.com/sysown/proxysql/commit/84d36bc943b0e2dd591aa852290c2451e5794e9d.patch#/0002-Changed-own-DH-parameters-in-favor-of-built-in-auto-.patch
|
|
|
c8bdc92 |
# Compatibility for gcc12
|
|
|
c8bdc92 |
Patch7: %{name}_gcc12.patch
|
|
|
6d42ed8 |
|
|
|
358feff |
%description
|
|
|
358feff |
ProxySQL is a high performance, high availability, protocol aware proxy for
|
|
|
358feff |
MySQL and forks (like Percona Server and MariaDB).
|
|
|
358feff |
|
|
|
358feff |
%prep
|
|
|
e46d112 |
%autosetup -p1
|
|
|
358feff |
|
|
|
754bcd7 |
# Remove sources of debundled libraries from v2.2.0
|
|
|
754bcd7 |
rm -r deps/{libssl,pcre,curl,lz4,libev,libconfig,libdaemon,sqlite3}
|
|
|
a633007 |
|
|
|
358feff |
%build
|
|
|
358feff |
%global _configure :
|
|
|
a633007 |
%configure help
|
|
|
358feff |
export CPPFLAGS=$CXXFLAGS
|
|
|
99c5773 |
%make_build
|
|
|
358feff |
|
|
|
358feff |
%install
|
|
|
9a31274 |
install -p -D -m 0755 src/proxysql %{buildroot}%{_bindir}/proxysql
|
|
|
9a31274 |
install -p -D -m 0640 etc/proxysql.cnf %{buildroot}%{_sysconfdir}/proxysql.cnf
|
|
|
9a31274 |
install -p -D -m 0755 tools/proxysql_galera_checker.sh %{buildroot}%{_datadir}/%{name}/tools/proxysql_galera_checker.sh
|
|
|
9a31274 |
install -p -D -m 0755 tools/proxysql_galera_writer.pl %{buildroot}%{_datadir}/%{name}/tools/proxysql_galera_writer.pl
|
|
|
594eabc |
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
|
|
9a31274 |
install -p -D -m 0644 README.md %{buildroot}%{_docdir}/proxysql/README.md
|
|
|
9a31274 |
install -p -D -m 0644 RUNNING.md %{buildroot}%{_docdir}/proxysql/RUNNING.md
|
|
|
9a31274 |
install -p -D -m 0644 FAQ.md %{buildroot}%{_docdir}/proxysql/FAQ.md
|
|
|
a633007 |
install -p -D -m 0644 doc/release_notes/*.md -t %{buildroot}%{_docdir}/proxysql
|
|
|
a633007 |
install -p -D -m 0644 doc/internal/*.txt -t %{buildroot}%{_docdir}/proxysql
|
|
|
9554405 |
install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
|
|
|
9a31274 |
install -d -m 0755 %{buildroot}%{_sharedstatedir}/proxysql
|
|
|
358feff |
|
|
|
358feff |
%pre
|
|
|
358feff |
/usr/sbin/groupadd -r proxysql >/dev/null 2>&1 || :
|
|
|
358feff |
/usr/sbin/useradd -g proxysql -r -d /var/lib/proxysql -s /sbin/nologin \
|
|
|
358feff |
-c "ProxySQL" proxysql >/dev/null 2>&1 || :
|
|
|
358feff |
|
|
|
358feff |
%post
|
|
|
358feff |
%systemd_post proxysql.service
|
|
|
358feff |
|
|
|
358feff |
%preun
|
|
|
358feff |
%systemd_preun proxysql.service
|
|
|
358feff |
|
|
|
358feff |
%postun
|
|
|
358feff |
%systemd_postun_with_restart proxysql.service
|
|
|
358feff |
|
|
|
358feff |
%files
|
|
|
848dbf5 |
%defattr(-,root,root,-)
|
|
|
358feff |
%{_bindir}/*
|
|
|
358feff |
%{_unitdir}/*
|
|
|
358feff |
%{_datadir}/%{name}
|
|
|
358feff |
%{_docdir}/%{name}
|
|
|
358feff |
%{_mandir}/man1/*
|
|
|
358feff |
%license LICENSE
|
|
|
848dbf5 |
%attr(-,proxysql,proxysql) %{_sharedstatedir}/%{name}
|
|
|
848dbf5 |
%attr(-,proxysql,root) %config(noreplace) %{_sysconfdir}/%{name}.cnf
|
|
|
358feff |
|
|
|
358feff |
%changelog
|
|
|
c8bdc92 |
* Mon Feb 14 2021 Marek Kulik <mkulik@redhat.com> - 2.3.2-4
|
|
|
c8bdc92 |
- Fix FTBFS for gcc12 (Resolves: #2053629)
|
|
|
c8bdc92 |
|
|
|
63f91b4 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-3
|
|
|
63f91b4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
63f91b4 |
|
|
|
8194f50 |
* Fri Sep 24 2021 Marek Kulik <mkulik@redhat.com> - 2.3.2-1
|
|
|
8194f50 |
- Updated to ProxySQL 2.3.2
|
|
|
8194f50 |
|
|
|
93bd1cf |
* Mon Sep 20 2021 Marek Kulik <mkulik@redhat.com> - 2.3.1-1
|
|
|
93bd1cf |
- Updated to ProxySQL 2.3.1
|
|
|
93bd1cf |
|
|
|
3d6094d |
* Wed Sep 15 2021 Marek Kulik <mkulik@redhat.com> - 2.3.0-1
|
|
|
3d6094d |
- Updated to ProxySQL 2.3.0
|
|
|
3d6094d |
|
|
|
c35b776 |
* Wed Sep 15 2021 Marek Kulik <mkulik@redhat.com> - 2.2.2-1
|
|
|
c35b776 |
- Updated to ProxySQL 2.2.2
|
|
|
c35b776 |
|
|
|
0f1f159 |
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 2.2.1-2
|
|
|
0f1f159 |
- Rebuilt with OpenSSL 3.0.0
|
|
|
0f1f159 |
|
|
|
256e592 |
* Mon Sep 06 2021 Marek Kulik <mkulik@redhat.com> - 2.2.1-1
|
|
|
256e592 |
- Updated to ProxySQL 2.2.1
|
|
|
256e592 |
|
|
|
24a2dbf |
* Tue Aug 10 2021 Marek Kulik <mkulik@redhat.com> - 2.2.0-1
|
|
|
24a2dbf |
- Updated to ProxySQL 2.2.0
|
|
|
24a2dbf |
- Add new bundled library (prometheus-cpp) - new dependencies
|
|
|
24a2dbf |
- Fix gcc compatibility - missing headers
|
|
|
24a2dbf |
- Rework Patch1 - move execution to patch macro
|
|
|
ce8a914 |
- Add arm rpm builds
|
|
|
24a2dbf |
|
|
|
6d42ed8 |
* Mon Aug 09 2021 Marek Kulik <mkulik@redhat.com> - 2.0.13-7
|
|
|
6d42ed8 |
- Fix FTBFS due to cmake syntax change
|
|
|
6d42ed8 |
|
|
|
08083c3 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.13-6
|
|
|
08083c3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
08083c3 |
|
|
|
4d69772 |
* Wed Mar 31 2021 Jonathan Wakely <jwakely@redhat.com> - 2.0.13-5
|
|
|
4d69772 |
- Rebuilt for removed libstdc++ symbols (#1937698)
|
|
|
4d69772 |
|
|
|
23b025d |
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.13-4
|
|
|
23b025d |
- Rebuilt for updated systemd-rpm-macros
|
|
|
23b025d |
See https://pagure.io/fesco/issue/2583.
|
|
|
23b025d |
|
|
|
cea0fbc |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.13-3
|
|
|
cea0fbc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
cea0fbc |
|
|
|
3700f30 |
* Fri Dec 04 2020 Jeff Law <law@redhat.com> - 2.0.13-2
|
|
|
3700f30 |
- Replace "swap" in mariadb library with my_swap to avoid conflict with C++
|
|
|
3700f30 |
standard headers
|
|
|
3700f30 |
|
|
|
fd78e68 |
* Tue Aug 04 2020 Filip Januš <fjanus@redhat.com> - 2.0.13-1
|
|
|
fd78e68 |
- Rebase onto version 2.0.13
|
|
|
fd78e68 |
- Add new patch to port bundled libinjection to python 3
|
|
|
fd78e68 |
- Fix debundle patch, new bundled library (libhttpserver) - new dependencies
|
|
|
fd78e68 |
- Remove bundled google-coredumper
|
|
|
fd78e68 |
|
|
|
e9103b4 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-6
|
|
|
e9103b4 |
- Second attempt - Rebuilt for
|
|
|
e9103b4 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
e9103b4 |
|
|
|
d1248af |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-5
|
|
|
d1248af |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
d1248af |
|
|
|
441e163 |
* Mon Mar 02 2020 Lukas Javorsky <ljavorsk@redhat.com> - 2.0.9-4
|
|
|
441e163 |
- Add mariadb and mysql client to suggests
|
|
|
441e163 |
|
|
|
a9f6631 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-3
|
|
|
a9f6631 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
a9f6631 |
|
|
|
594eabc |
* Thu Jan 16 2020 Filip Januš <fjanus@redhat.com> - 2.0.9-2
|
|
|
594eabc |
- .service file path fix
|
|
|
594eabc |
|
|
|
6fa3a34 |
* Tue Nov 19 2019 Filip Januš <fjanus@redhat.com> - 2.0.9-1
|
|
|
6fa3a34 |
- Upstream released ProxySQL 2.0.9
|
|
|
6fa3a34 |
- Patch0 was modified - lib/Makefile was modified
|
|
|
6fa3a34 |
|
|
|
62a5430 |
* Tue Oct 15 2019 Filip Januš <fjanus@redhat.com> - 2.0.8-1
|
|
|
62a5430 |
- Upstream released ProxySQL 2.0.8
|
|
|
62a5430 |
|
|
|
62a5430 |
* Mon Sep 23 2019 Filip Januš <fjanus@redhat.com> - 2.0.7-1
|
|
|
a633007 |
- Updated to ProxySQL 2.0.7
|
|
|
a633007 |
- De-bundled new libraries (Update patch)
|
|
|
a633007 |
- Fix path to doc
|
|
|
a633007 |
- Fix man page path (bug #1722350)
|
|
|
a633007 |
|
|
|
23dd3be |
* Thu Sep 12 2019 Petr Pisar <ppisar@redhat.com> - 1.3.7-11
|
|
|
23dd3be |
- Build-require zlib-devel (bug #1727136)
|
|
|
23dd3be |
|
|
|
f7320c7 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-10
|
|
|
f7320c7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
f7320c7 |
|
|
|
98dc380 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-9
|
|
|
98dc380 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
98dc380 |
|
|
|
7f072c4 |
* Tue Jul 24 2018 Adam Williamson <awilliam@redhat.com> - 1.3.7-8
|
|
|
7f072c4 |
- Rebuild for new libconfig
|
|
|
7f072c4 |
|
|
|
9c2e127 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-7
|
|
|
9c2e127 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
9c2e127 |
|
|
|
789c653 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-6
|
|
|
789c653 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
789c653 |
|
|
|
9a31274 |
* Tue Sep 26 2017 Augusto Caringi <acaringi@redhat.com> 1.3.7-5
|
|
|
9a31274 |
- Made install commands in install section compatible with epel7
|
|
|
9a31274 |
|
|
|
0fb6b50 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-4
|
|
|
0fb6b50 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
0fb6b50 |
|
|
|
b480f54 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-3
|
|
|
b480f54 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
b480f54 |
|
|
|
358feff |
* Thu Jun 15 2017 Augusto Caringi <acaringi@redhat.com> 1.3.7-2
|
|
|
358feff |
- Fixed build flags through exporting CPPFLAGS variable
|
|
|
358feff |
- Remove unused bundled libraries
|
|
|
358feff |
- Fixed configuration file ownership
|
|
|
358feff |
- Replaced default login shell of proxysql user from /bin/false to /sbin/nologin
|
|
|
358feff |
|
|
|
358feff |
* Wed Jun 14 2017 Augusto Caringi <acaringi@redhat.com> 1.3.7-1
|
|
|
358feff |
- Updated to ProxySQL 1.3.7
|
|
|
358feff |
- De-bundled some libraries
|
|
|
358feff |
- Added man page
|
|
|
358feff |
- Updated license field
|
|
|
358feff |
- Adopted proxysql user/group
|
|
|
358feff |
- Improvements in spec file
|
|
|
358feff |
|
|
|
358feff |
* Tue May 16 2017 Augusto Caringi <acaringi@redhat.com> 1.3.6-1
|
|
|
358feff |
- Initial build
|