Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
server:database
galera-3
galera-3.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File galera-3.spec of Package galera-3
# # spec file for package galera-3 # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # %if 0%{?suse_version} > 1230 || 0%{?rhel_version} > 6 || 0%{?centos_version} > 6 || 0%{?fedora_version} >= 20 || 0%{?el7}%{?fc20}%{?fc21}%{?fc22} %bcond_without systemd %else %bcond_with systemd %endif %if ! %{defined _fillupdir} %define _fillupdir %{_localstatedir}/adm/fillup-templates %endif %define copyright Copyright 2007-2015 Codership Oy. All rights reserved. Use is subject to license terms under GPLv2 license. %define libs %{_libdir}/%{name} %if 0%{?suse_version} %define docs /usr/share/doc/packages/%{name} %else %define docs /usr/share/doc/%{name} %endif %define homedir /var/lib/garb %define galeradir /var/lib/galera Name: galera-3 Version: 25.3.29 Release: 0 Summary: Galera: a synchronous multi-master wsrep provider (replication engine) License: GPL-2.0 Group: Productivity/Databases/Tools Url: http://galeracluster.com/ Source: http://releases.galeracluster.com/galera-3/source/galera-3-%{version}.tar.gz Patch0: galera-3-25.3.10_fix_startup_scripts.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: boost-devel %if 0%{?suse_version} >= 1500 BuildRequires: libboost_program_options-devel %endif BuildRequires: check-devel BuildRequires: glibc-devel # for fileownership of galeradir %if %{with split_package} BuildRequires: mysql-server %endif # for fileownership of galeradir BuildRequires: mariadb %if 0%{?suse_version} >= 1500 BuildRequires: libopenssl-1_0_0-devel %else BuildRequires: openssl-devel %endif %if %{defined fedora} BuildRequires: python %endif BuildRequires: scons %if 0%{?suse_version} == 1110 # On SLES11 SPx use the linked gcc47 to build instead of default gcc43 BuildRequires: gcc47 BuildRequires: gcc47-c++ # On SLES11 SP2 the libgfortran.3.so provider must be explicitly defined BuildRequires: libgfortran3 # On SLES11 we got error "conflict for provider of libgcc_s1 >= 4.7.4_20140612-2.1 # needed by gcc47, (provider libgcc_s1 conflicts with installed libgcc43), # conflict for provider of libgomp1 >= 4.7.4_20140612-2.1 needed by gcc47, # (provider libgomp1 conflicts with installed libgomp43), conflict for provider # of libstdc++6 >= 4.7.4_20140612-2.1 needed by libstdc++47-devel, # (provider libstdc++6 conflicts with installed libstdc++43) # therefore: BuildRequires: libgcc_s1 BuildRequires: libgomp1 BuildRequires: libstdc++6 #!BuildIgnore: libgcc43 %else BuildRequires: gcc-c++ %endif %if %{with systemd} BuildRequires: pkgconfig BuildRequires: pkgconfig(systemd) %endif Requires: %{name}-wsrep-provider %description Galera is a fast synchronous multimaster wsrep provider (replication engine) for transactional databases and similar applications. For more information about wsrep API see http://launchpad.net/wsrep. For a description of Galera replication engine see http://www.codership.com. %{copyright} This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPLv2 license. %package wsrep-provider Summary: Galera support library Group: Productivity/Databases/Tools Url: http://galeracluster.com/ Requires: mariadb-galera # for old setups. newer setups will need mariadbbackup Recommends: xtrabackup # already required in mariadb-galera Recommends: socat Conflicts: mariadb >= 10.4 %description wsrep-provider Galera is a fast synchronous multimaster wsrep provider (replication engine) for transactional databases and similar applications. For more information about wsrep API see http://launchpad.net/wsrep. For a description of Galera replication engine see http://www.codership.com. This package provides the libgalera_smm library. %prep %setup -q %patch0 -p1 %build %if 0%{?suse_version} == 1110 export CC=gcc-4.7 export CXX=g++-4.7 %endif export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" %if 0%{?suse_version} > 1320 export CFLAGS="$CFLAGS -Wno-implicit-fallthrough" export CXXFLAGS="$CXXFLAGS -Wno-implicit-fallthrough" %endif scons %{?_smp_flags} deterministic_tests=1 %install %if %{with systemd} install -D -m 644 garb/files/garb.service %{buildroot}%{_unitdir}/garb.service install -D -m 755 garb/files/garb-systemd %{buildroot}%{_bindir}/garb-systemd %else install -D -m 755 garb/files/garb.sh %{buildroot}%{_sysconfdir}/init.d/garb %endif # Symlink required by SUSE policy for SysV init, still supported with systemd %if 0%{?suse_version} install -d %{buildroot}%{_sbindir} %if %{with systemd} ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rcgarb %else ln -sf /etc/init.d/garb %{buildroot}%{_sbindir}/rcgarb %endif # systemd %endif # suse_version %if 0%{?suse_version} install -D -m 644 garb/files/garb.cnf %{buildroot}%{_fillupdir}/sysconfig.garb %else install -D -m 644 garb/files/garb.cnf %{buildroot}%{_sysconfdir}/sysconfig/garb %endif # suse_version install -D -m 755 garb/garbd %{buildroot}%{_bindir}/garbd install -D -m 755 libgalera_smm.so %{buildroot}%{libs}/libgalera_smm.so install -d %{buildroot}%{docs} install -m 644 COPYING %{buildroot}%{docs}/COPYING install -m 644 asio/LICENSE_1_0.txt %{buildroot}%{docs}/LICENSE.asio install -m 644 www.evanjones.ca/LICENSE %{buildroot}%{docs}/LICENSE.crc32c install -m 644 chromium/LICENSE %{buildroot}%{docs}/LICENSE.chromium install -m 644 scripts/packages/README %{buildroot}%{docs}/README install -m 644 scripts/packages/README-MySQL %{buildroot}%{docs}/README-MySQL install -D -m 644 man/garbd.8 %{buildroot}%{_mandir}/man8/garbd.8 install -D -d -m 0750 %{buildroot}%{homedir} %{buildroot}%{galeradir} install -D -d -m 0755 %{buildroot}%{_sysconfdir}/my.cnf.d/ cat > %{buildroot}%{_sysconfdir}/my.cnf.d/51-%{name}-wsrep-provider.cnf <<EOF # All changes to this file will be overwritten with the next package update. # For configuring galera please use 50-galera.cnf or another file # This file is only here to set the proper path to the wsrep_provider library [mysqld] wsrep_provider=%{libs}/libgalera_smm.so EOF %files %defattr(-,root,root) # common %doc %{docs} # /common # garb %if %{with systemd} %{_unitdir}/garb.service %{_bindir}/garb-systemd %else %{_sysconfdir}/init.d/garb %endif %if 0%{?suse_version} %config(noreplace,missingok) %{_fillupdir}/sysconfig.garb # Symlink required by SUSE policy for SysV init, still supported with systemd %{_sbindir}/rcgarb %else %config(noreplace,missingok) %{_sysconfdir}/sysconfig/garb %endif %{_bindir}/garbd # %{_mandir}/man8/garbd.8* # %dir %attr(0750,garb,garb) %{homedir} # /garb # plugin %if %{with split_package} %dir %attr(0750,mysql,mysql) %{galeradir} %endif # plugin %files wsrep-provider %defattr(-,root,root) %dir %{libs} %{libs}/libgalera_smm.so %config %{_sysconfdir}/my.cnf.d/51-%{name}-wsrep-provider.cnf %pre # Create user and group on the system if necessary /usr/sbin/groupadd -r garb >/dev/null 2>&1 || : /usr/sbin/useradd -g garb -s /bin/false -r -c "Galera Arbitrator" -d %{homedir} garb >/dev/null 2>&1 || : # # START BIG SYSTEMD %if %{with systemd} %if 0%{?suse_version} %service_add_pre garb.service %endif %preun %if 0%{?suse_version} %service_del_preun garb.service %else %systemd_preun garb.service %endif %post %if 0%{?suse_version} %service_add_post garb.service %else %systemd_post garb.service %endif %postun %if 0%{?suse_version} %service_del_postun garb.service %else %systemd_postun_with_restart garb.service %endif %else # -> BIG SYSTEMD # sysvinit %if 0%{?suse_version} # For the various macros and their parameters, see here: # https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros %post %fillup_and_insserv garb %preun %stop_on_removal garb %postun %restart_on_update garb %insserv_cleanup %else # Not SuSE - so it must be RedHat, CentOS, Fedora %post /sbin/chkconfig --add garb %preun if [ "$1" = "0" ] then /sbin/service garb stop /sbin/chkconfig --del garb fi %postun # >=1 packages after uninstall -> pkg was updated -> restart if [ "$1" -ge "1" ] then /sbin/service garb restart fi %endif # SuSE versus Fedora/RedHat/CentOS %endif # /END BIG SYSTEMD %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor