- spec: improvements from upstream project
This commit is contained in:
parent
74d02e55f1
commit
6cacfa00d6
@ -52,25 +52,27 @@
|
|||||||
Name: resource-agents
|
Name: resource-agents
|
||||||
Summary: Open Source HA Reusable Cluster Resource Scripts
|
Summary: Open Source HA Reusable Cluster Resource Scripts
|
||||||
Version: 4.6.1
|
Version: 4.6.1
|
||||||
Release: 3%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
|
Release: 4%{?rcver:%{rcver}}%{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}%{?dist}
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
URL: https://github.com/ClusterLabs/resource-agents
|
URL: https://github.com/ClusterLabs/resource-agents
|
||||||
%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel}
|
|
||||||
%else
|
|
||||||
%endif
|
|
||||||
Source0: %{upstream_prefix}-%{upstream_version}.tar.gz
|
Source0: %{upstream_prefix}-%{upstream_version}.tar.gz
|
||||||
Obsoletes: heartbeat-resources <= %{version}
|
Obsoletes: heartbeat-resources <= %{version}
|
||||||
Provides: heartbeat-resources = %{version}
|
Provides: heartbeat-resources = %{version}
|
||||||
|
|
||||||
# Build dependencies
|
# Build dependencies
|
||||||
BuildRequires: automake autoconf pkgconfig gcc
|
BuildRequires: automake autoconf pkgconfig gcc
|
||||||
BuildRequires: perl-interpreter python3-devel
|
BuildRequires: perl
|
||||||
BuildRequires: libxslt glib2-devel
|
BuildRequires: libxslt glib2-devel
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
BuildRequires: which
|
BuildRequires: which
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel}
|
%if 0%{?fedora} || 0%{?centos} > 7 || 0%{?rhel} > 7 || 0%{?suse_version}
|
||||||
#BuildRequires: cluster-glue-libs-devel
|
BuildRequires: python3-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: python-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?fedora} || 0%{?centos} || 0%{?rhel}
|
||||||
BuildRequires: docbook-style-xsl docbook-dtds
|
BuildRequires: docbook-style-xsl docbook-dtds
|
||||||
%if 0%{?rhel} == 0
|
%if 0%{?rhel} == 0
|
||||||
BuildRequires: libnet-devel
|
BuildRequires: libnet-devel
|
||||||
@ -78,11 +80,7 @@ BuildRequires: libnet-devel
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%if 0%{?suse_version} >= 1140
|
BuildRequires: libnet-devel
|
||||||
BuildRequires: libnet1
|
|
||||||
%else
|
|
||||||
BuildRequires: libnet
|
|
||||||
%endif
|
|
||||||
BuildRequires: libglue-devel
|
BuildRequires: libglue-devel
|
||||||
BuildRequires: libxslt docbook_4 docbook-xsl-stylesheets
|
BuildRequires: libxslt docbook_4 docbook-xsl-stylesheets
|
||||||
%endif
|
%endif
|
||||||
@ -98,7 +96,7 @@ Requires: /sbin/fsck
|
|||||||
Requires: /usr/sbin/fsck.ext2 /usr/sbin/fsck.ext3 /usr/sbin/fsck.ext4
|
Requires: /usr/sbin/fsck.ext2 /usr/sbin/fsck.ext3 /usr/sbin/fsck.ext4
|
||||||
Requires: /usr/sbin/fsck.xfs
|
Requires: /usr/sbin/fsck.xfs
|
||||||
Requires: /sbin/mount.nfs /sbin/mount.nfs4
|
Requires: /sbin/mount.nfs /sbin/mount.nfs4
|
||||||
%if 0%{?fedora} < 33 || (0%{?rhel} && 0%{?rhel} < 9) || (0%{?centos_version} && 0%{?centos_version} < 9) || 0%{?suse_version}
|
%if 0%{?fedora} < 33 || (0%{?rhel} && 0%{?rhel} < 9) || (0%{?centos} && 0%{?centos} < 9) || 0%{?suse_version}
|
||||||
Recommends: /usr/sbin/mount.cifs
|
Recommends: /usr/sbin/mount.cifs
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -111,6 +109,9 @@ Requires: /usr/sbin/lvm
|
|||||||
# nfsserver / netfs.sh
|
# nfsserver / netfs.sh
|
||||||
Requires: /usr/sbin/rpc.nfsd /sbin/rpc.statd /usr/sbin/rpc.mountd
|
Requires: /usr/sbin/rpc.nfsd /sbin/rpc.statd /usr/sbin/rpc.mountd
|
||||||
|
|
||||||
|
# ocf-distro
|
||||||
|
Requires: /usr/bin/lsb_release
|
||||||
|
|
||||||
# rgmanager
|
# rgmanager
|
||||||
%if %{with rgmanager}
|
%if %{with rgmanager}
|
||||||
# ip.sh
|
# ip.sh
|
||||||
@ -131,12 +132,12 @@ service managers.
|
|||||||
%package -n ldirectord
|
%package -n ldirectord
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Summary: A Monitoring Daemon for Maintaining High Availability Resources
|
Summary: A Monitoring Daemon for Maintaining High Availability Resources
|
||||||
%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel}
|
%if 0%{?fedora} || 0%{?centos} || 0%{?rhel}
|
||||||
%else
|
%else
|
||||||
%endif
|
%endif
|
||||||
Obsoletes: heartbeat-ldirectord <= %{version}
|
Obsoletes: heartbeat-ldirectord <= %{version}
|
||||||
Provides: heartbeat-ldirectord = %{version}
|
Provides: heartbeat-ldirectord = %{version}
|
||||||
%if 0%{?fedora} > 18 || 0%{?centos_version} > 6 || 0%{?rhel} > 6
|
%if 0%{?fedora} > 18 || 0%{?centos} > 6 || 0%{?rhel} > 6
|
||||||
BuildRequires: perl-podlators
|
BuildRequires: perl-podlators
|
||||||
%endif
|
%endif
|
||||||
Requires: %{SSLeay} perl-libwww-perl perl-MailTools
|
Requires: %{SSLeay} perl-libwww-perl perl-MailTools
|
||||||
@ -164,7 +165,7 @@ See 'ldirectord -h' and linux-ha/doc/ldirectord for more information.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%if 0%{?suse_version} == 0 && 0%{?fedora} == 0 && 0%{?centos_version} == 0 && 0%{?rhel} == 0
|
%if 0%{?suse_version} == 0 && 0%{?fedora} == 0 && 0%{?centos} == 0 && 0%{?rhel} == 0
|
||||||
%{error:Unable to determine the distribution/version. This is generally caused by missing /etc/rpm/macros.dist. Please install the correct build packages or define the required macros manually.}
|
%{error:Unable to determine the distribution/version. This is generally caused by missing /etc/rpm/macros.dist. Please install the correct build packages or define the required macros manually.}
|
||||||
exit 1
|
exit 1
|
||||||
%endif
|
%endif
|
||||||
@ -176,7 +177,7 @@ if [ ! -f configure ]; then
|
|||||||
./autogen.sh
|
./autogen.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%if 0%{?fedora} >= 11 || 0%{?centos_version} > 5 || 0%{?rhel} > 5
|
%if 0%{?fedora} >= 11 || 0%{?centos} > 5 || 0%{?rhel} > 5
|
||||||
CFLAGS="$(echo '%{optflags}')"
|
CFLAGS="$(echo '%{optflags}')"
|
||||||
%global conf_opt_fatal "--enable-fatal-warnings=no"
|
%global conf_opt_fatal "--enable-fatal-warnings=no"
|
||||||
%else
|
%else
|
||||||
@ -196,7 +197,10 @@ CFLAGS="${CFLAGS} ${RPM_OPT_FLAGS}"
|
|||||||
|
|
||||||
export CFLAGS
|
export CFLAGS
|
||||||
|
|
||||||
%configure PYTHON="%{__python3}" \
|
%configure \
|
||||||
|
%if 0%{?fedora} || 0%{?centos} > 7 || 0%{?rhel} > 7 || 0%{?suse_version}
|
||||||
|
PYTHON="%{__python3}" \
|
||||||
|
%endif
|
||||||
%{conf_opt_fatal} \
|
%{conf_opt_fatal} \
|
||||||
%if %{defined _unitdir}
|
%if %{defined _unitdir}
|
||||||
--with-systemdsystemunitdir=%{_unitdir} \
|
--with-systemdsystemunitdir=%{_unitdir} \
|
||||||
@ -279,8 +283,9 @@ test -d %{buildroot}/sbin || mkdir %{buildroot}/sbin
|
|||||||
|
|
||||||
%{_sbindir}/ocf-tester
|
%{_sbindir}/ocf-tester
|
||||||
%{_sbindir}/ocft
|
%{_sbindir}/ocft
|
||||||
#%%{_sbindir}/sfex_init
|
%if 0%{?suse_version}
|
||||||
#%%{_sbindir}/sfex_stat
|
%{_sbindir}/sfex_*
|
||||||
|
%endif
|
||||||
|
|
||||||
%{_includedir}/heartbeat
|
%{_includedir}/heartbeat
|
||||||
|
|
||||||
@ -292,7 +297,9 @@ test -d %{buildroot}/sbin || mkdir %{buildroot}/sbin
|
|||||||
|
|
||||||
%{_mandir}/man7/*.7*
|
%{_mandir}/man7/*.7*
|
||||||
%{_mandir}/man8/ocf-tester.8*
|
%{_mandir}/man8/ocf-tester.8*
|
||||||
#%%{_mandir}/man8/sfex_init.8*
|
%if 0%{?suse_version}
|
||||||
|
%{_mandir}/man8/sfex_init.8*
|
||||||
|
%endif
|
||||||
|
|
||||||
# For compatability with pre-existing agents
|
# For compatability with pre-existing agents
|
||||||
%dir %{_sysconfdir}/ha.d
|
%dir %{_sysconfdir}/ha.d
|
||||||
@ -358,6 +365,9 @@ ccs_update_schema > /dev/null 2>&1 ||:
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 24 2020 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.6.1-4
|
||||||
|
- spec: improvements from upstream project
|
||||||
|
|
||||||
* Mon Aug 24 2020 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.6.1-3
|
* Mon Aug 24 2020 Oyvind Albrigtsen <oalbrigt@redhat.com> - 4.6.1-3
|
||||||
- ldirectord: add dependency for perl-IO-Socket-INET6
|
- ldirectord: add dependency for perl-IO-Socket-INET6
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user