resource-agents/resource-agents.spec

153 lines
5.5 KiB
RPMSpec
Raw Normal View History

2020-10-29 15:45:18 +08:00
Name: resource-agents
Summary: Open Source HA Reusable Cluster Resource Scripts
2023-10-18 14:30:03 +08:00
Version: 4.13.0
2024-03-02 07:18:16 +08:00
Release: 10
2020-10-29 15:45:18 +08:00
License: GPLv2+ and LGPLv2+
URL: https://github.com/ClusterLabs/resource-agents
2023-10-18 14:30:03 +08:00
Source0: https://github.com/ClusterLabs/resource-agents/archive/v%{version}.tar.gz
Patch0000: fix-failed-to-parse-pid-from-pid-file.patch
2023-10-27 17:31:46 +08:00
Patch0001: Fix-PRIMARY_IFACE-variable.patch
2023-11-07 15:13:52 +08:00
Patch0002: fix-loopback-handling.patch
Patch0003: fix-handler-out-of-scope-leak.patch
Patch0004: fix-uninitialized-value-covscan-error.patch
Patch0005: Avoid-false-positive-for-VG-activation.patch
2024-02-23 17:32:37 +08:00
Patch0006: Don-t-build-with-ansi-by-default.patch
Patch0007: Fix-docker-RA-behavior-when-Docker-isn-t-running.patch
2024-03-01 15:47:57 +08:00
Patch0008: Low-IPaddr2-Remove-stray-backslash.patch
2024-03-02 07:18:16 +08:00
Patch0009: Doc-Delay-Drop-old-comments.patch
2020-10-29 15:45:18 +08:00
Obsoletes: heartbeat-resources <= %{version}
Provides: heartbeat-resources = %{version}
BuildRequires: automake autoconf pkgconfig gcc perl-interpreter perl-generators python3-devel
BuildRequires: libxslt glib2-devel which docbook-style-xsl docbook-dtds
2023-10-18 14:30:03 +08:00
BuildRequires: libqb-devel
2020-10-29 15:45:18 +08:00
Requires: bash grep sed gawk procps-ng hostname net-tools psmisc util-linux
Requires: e2fsprogs xfsprogs nfs-utils cifs-utils iproute lvm2
2020-03-06 18:21:19 +08:00
%description
Resource agent is a standardized interface for a cluster resource. In translates a standard set of operations into
steps specific to the resource or application, and interprets their results as success or failure.
%package -n ldirectord
2020-10-29 15:45:18 +08:00
License: GPLv2+
Summary: Monitoring Daemon for Maintaining High Availability Resources
Obsoletes: heartbeat-ldirectord <= %{version}
Provides: heartbeat-ldirectord = %{version}
BuildRequires: perl-podlators
Requires: perl-Net-SSLeay perl-libwww-perl perl-MailTools ipvsadm logrotate
BuildRequires: systemd
2020-03-06 18:21:19 +08:00
%{?systemd_requires}
%description -n ldirectord
Ldirectord is a daemon to monitor and administer real servers in a cluster of load
balanced virtual servers.Currently, HTTP, HTTPS, and FTP services are supported.
ldirectord typically is started from heartbeat but can also be run from the command line.
%package help
2020-10-29 15:45:18 +08:00
Summary: Help documentation for resource-agents
2020-03-06 18:21:19 +08:00
%description help
Help documentation for resource-agents.
%prep
%autosetup -n %{name}-%{version} -p1
%build
if [ ! -f configure ]; then
./autogen.sh
fi
export CFLAGS="$(echo '%{optflags}')"
%global conf_opt_fatal "--enable-fatal-warnings=no"
%configure \
%{conf_opt_fatal} --with-systemdsystemunitdir=%{_unitdir} --with-systemdtmpfilesdir=%{_tmpfilesdir} \
--with-pkg-name=%{name} --with-ras-set=linux-ha
%make_build
%install
%make_install
%files
%doc AUTHORS COPYING COPYING.GPLv3 COPYING.LGPL
%doc doc/README.webapps
%dir %{_usr}/lib/ocf
%dir %{_usr}/lib/ocf/resource.d
%dir %{_usr}/lib/ocf/lib
%{_usr}/lib/ocf/lib/heartbeat
%{_usr}/lib/ocf/resource.d/heartbeat
%{_unitdir}/resource-agents-deps.target
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/ocft
%{_tmpfilesdir}/%{name}.conf
%{_datadir}/%{name}/ocft/{configs,caselib,README,README.zh_CN,helpers.sh}
2023-10-18 14:30:03 +08:00
%{_datadir}/pkgconfig/%{name}.pc
2020-03-06 18:21:19 +08:00
%exclude %{_datadir}/%{name}/ocft/{runocft,runocft.prereq}
%{_sbindir}/ocf-tester
%{_sbindir}/ocft
%{_includedir}/heartbeat
%dir %attr (1755, root, root) %{_var}/run/resource-agents
%dir %{_sysconfdir}/ha.d
%{_sysconfdir}/ha.d/shellfuncs
%{_libexecdir}/heartbeat
%preun -n ldirectord
%systemd_preun ldirectord.service
2020-10-29 15:45:18 +08:00
2020-03-06 18:21:19 +08:00
%postun -n ldirectord
/sbin/ldconfig
%systemd_postun_with_restart ldirectord.service
2020-10-29 15:45:18 +08:00
2020-03-06 18:21:19 +08:00
%post -n ldirectord
%systemd_post ldirectord.service
%files -n ldirectord
%{_sbindir}/ldirectord
%doc COPYING ldirectord/ldirectord.cf
%config(noreplace) %{_sysconfdir}/logrotate.d/ldirectord
%dir %{_sysconfdir}/ha.d
%dir %{_sysconfdir}/ha.d/resource.d
%{_sysconfdir}/ha.d/resource.d/ldirectord
%{_unitdir}/ldirectord.service
%exclude %{_sysconfdir}/init.d/ldirectord
%files help
%doc heartbeat/README.galera ChangeLog
%doc %{_datadir}/%{name}/{ra-api-1.dtd,metadata.rng}
%{_mandir}/man7/*.7*
%{_mandir}/man8/{ocf-tester.8*,ldirectord.8*}
%changelog
2024-03-02 07:18:16 +08:00
* Thu Mar 14 2024 zouzhimin <zouzhimin@kylinos.cn> - 4.13.0-10
- Doc: Delay: Drop old comments
2024-03-01 15:47:57 +08:00
* Fri Mar 01 2024 bizhiyuan <bizhiyuan@kylinos.cn> - 4.13.0-9
- Low: IPaddr2: Remove stray backslash
* Fri Mar 01 2024 bizhiyuan <bizhiyuan@kylinos.cn> - 4.13.0-8
- Fix docker RA behavior when Docker is not running
2024-02-23 17:32:37 +08:00
* Fri Feb 23 2024 bixiaoyan <bixiaoyan@kylinos.cn> - 4.13.0-7
- Don't build with -ansi by default
* Fri Feb 23 2024 bixiaoyan <bixiaoyan@kylinos.cn> - 4.13.0-6
- LVM-activate: Avoid false positive for VG activation
* Fri Feb 23 2024 bixiaoyan <bixiaoyan@kylinos.cn> - 4.13.0-5
- use memset() to fix "uninitialized value" covscan error, as qb_ipcc_recv() will always set a message (according to honzaf)
* Thu Feb 22 2024 bixiaoyan <bixiaoyan@kylinos.cn> - 4.13.0-4
- fix handler out of scope leak, unitialized value and check that netmaskbits != EOS
2023-11-07 15:13:52 +08:00
* Tue Nov 7 2023 bixiaoyan <bixiaoyan@kylinos.cn> - 4.13.0-3
- Fix loopback handling
2023-10-27 17:31:46 +08:00
* Fri Oct 27 2023 zouzhimin <zouzhimin@kylinos.cn> - 4.13.0-2
- Fix PRIMARY_IFACE variable
2023-10-18 14:30:03 +08:00
* Wed Oct 18 2023 yaoxin <yao_xin001@hoperun.com> - 4.13.0-1
- Upgrade to 4.13.0
* Wed Aug 25 2021 caodongxia <caodongxia@huawei.com> - 4.2.0-4
- Fix failed to parse pid from pid-file
2020-10-29 15:45:18 +08:00
* Tue Oct 27 2020 Anan Fu <fuanan3@huawei.com> - 4.2.0-3
- disable python2
2020-03-06 18:21:19 +08:00
* Thu Mar 5 2020 shijian <shijian16@huawei.com> - 4.2.0-2
2020-10-29 15:45:18 +08:00
- Package init