|
|
b58b87 |
# Conditionals
|
|
|
b58b87 |
# Invoke "rpmbuild --without <feature>" or "rpmbuild --with <feature>"
|
|
|
b58b87 |
# to disable or enable specific features
|
|
|
b58b87 |
%bcond_without userflags
|
|
|
b58b87 |
%bcond_with runautogen
|
|
|
b58b87 |
%bcond_without systemd
|
|
|
b58b87 |
|
|
|
b58b87 |
%global gitver %{?numcomm:.%{numcomm}}%{?alphatag:.%{alphatag}}%{?dirty:.%{dirty}}
|
|
|
b58b87 |
%global gittarver %{?numcomm:.%{numcomm}}%{?alphatag:-%{alphatag}}%{?dirty:-%{dirty}}
|
|
|
b58b87 |
|
|
|
b58b87 |
Name: corosync-qdevice
|
|
|
b58b87 |
Summary: The Corosync Cluster Engine Qdevice
|
|
|
9f18a1 |
Version: 3.0.2
|
|
|
9f18a1 |
Release: 1%{?gitver}%{?dist}
|
|
|
b58b87 |
License: BSD
|
|
|
b58b87 |
URL: https://github.com/corosync/corosync-qdevice
|
|
|
b58b87 |
Source0: https://github.com/corosync/corosync-qdevice/releases/download/v%{version}%{?gittarver}/%{name}-%{version}%{?gittarver}.tar.gz
|
|
|
b58b87 |
|
|
|
b58b87 |
# Runtime bits
|
|
|
b58b87 |
Requires: corosync >= 2.4.0
|
|
|
b58b87 |
Requires: corosynclib >= 2.4.0
|
|
|
b58b87 |
Requires: nss-tools
|
|
|
b58b87 |
|
|
|
b58b87 |
%if %{with systemd}
|
|
|
b58b87 |
%{?systemd_requires}
|
|
|
b58b87 |
BuildRequires: systemd
|
|
|
b58b87 |
BuildRequires: systemd-devel
|
|
|
b58b87 |
%else
|
|
|
b58b87 |
Requires(post): /sbin/chkconfig
|
|
|
b58b87 |
Requires(preun): /sbin/chkconfig
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
|
|
|
b58b87 |
# Build bits
|
|
|
b58b87 |
BuildRequires: gcc
|
|
|
b58b87 |
BuildRequires: corosynclib-devel
|
|
|
b58b87 |
BuildRequires: libqb-devel
|
|
|
b58b87 |
BuildRequires: sed
|
|
|
b58b87 |
BuildRequires: groff
|
|
|
b58b87 |
BuildRequires: nss-devel
|
|
|
b58b87 |
|
|
|
b58b87 |
%if %{with runautogen}
|
|
|
b58b87 |
BuildRequires: autoconf automake libtool
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
BuildRequires: make
|
|
|
b58b87 |
|
|
|
b58b87 |
%prep
|
|
|
b58b87 |
%setup -q -n %{name}-%{version}%{?gittarver}
|
|
|
b58b87 |
|
|
|
b58b87 |
%build
|
|
|
b58b87 |
%if %{with runautogen}
|
|
|
b58b87 |
./autogen.sh
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
|
|
|
b58b87 |
%{configure} \
|
|
|
b58b87 |
%if %{with userflags}
|
|
|
b58b87 |
--enable-user-flags \
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
%if %{with systemd}
|
|
|
b58b87 |
--enable-systemd \
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
--enable-qdevices \
|
|
|
b58b87 |
--enable-qnetd \
|
|
|
b58b87 |
--with-initddir=%{_initrddir} \
|
|
|
b58b87 |
--with-systemddir=%{_unitdir} \
|
|
|
b58b87 |
--docdir=%{_docdir}
|
|
|
b58b87 |
|
|
|
b58b87 |
%make_build
|
|
|
b58b87 |
|
|
|
b58b87 |
%install
|
|
|
b58b87 |
%make_install
|
|
|
b58b87 |
|
|
|
b58b87 |
## tree fixup
|
|
|
b58b87 |
# drop docs and html docs for now
|
|
|
b58b87 |
rm -rf %{buildroot}%{_docdir}/*
|
|
|
b58b87 |
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
|
|
b58b87 |
# /etc/sysconfig/corosync-qdevice
|
|
|
b58b87 |
install -p -m 644 init/corosync-qdevice.sysconfig.example \
|
|
|
b58b87 |
%{buildroot}%{_sysconfdir}/sysconfig/corosync-qdevice
|
|
|
b58b87 |
# /etc/sysconfig/corosync-qnetd
|
|
|
b58b87 |
install -p -m 644 init/corosync-qnetd.sysconfig.example \
|
|
|
b58b87 |
%{buildroot}%{_sysconfdir}/sysconfig/corosync-qnetd
|
|
|
b58b87 |
|
|
|
b58b87 |
%if %{with systemd}
|
|
|
b58b87 |
sed -i -e 's/^#User=/User=/' \
|
|
|
b58b87 |
%{buildroot}%{_unitdir}/corosync-qnetd.service
|
|
|
b58b87 |
%else
|
|
|
b58b87 |
sed -i -e 's/^COROSYNC_QNETD_RUNAS=""$/COROSYNC_QNETD_RUNAS="coroqnetd"/' \
|
|
|
b58b87 |
%{buildroot}%{_sysconfdir}/sysconfig/corosync-qnetd
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
|
|
|
b58b87 |
%description
|
|
|
b58b87 |
This package contains the Corosync Cluster Engine Qdevice, script for creating
|
|
|
b58b87 |
NSS certificates and an init script.
|
|
|
b58b87 |
|
|
|
b58b87 |
%post
|
|
|
b58b87 |
%if %{with systemd} && 0%{?systemd_post:1}
|
|
|
b58b87 |
%systemd_post corosync-qdevice.service
|
|
|
b58b87 |
%else
|
|
|
b58b87 |
if [ $1 -eq 1 ]; then
|
|
|
b58b87 |
/sbin/chkconfig --add corosync-qdevice || :
|
|
|
b58b87 |
fi
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
|
|
|
b58b87 |
%preun
|
|
|
b58b87 |
%if %{with systemd} && 0%{?systemd_preun:1}
|
|
|
b58b87 |
%systemd_preun corosync-qdevice.service
|
|
|
b58b87 |
%else
|
|
|
b58b87 |
if [ $1 -eq 0 ]; then
|
|
|
b58b87 |
/sbin/service corosync-qdevice stop &>/dev/null || :
|
|
|
b58b87 |
/sbin/chkconfig --del corosync-qdevice || :
|
|
|
b58b87 |
fi
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
|
|
|
b58b87 |
%postun
|
|
|
b58b87 |
%if %{with systemd} && 0%{?systemd_postun:1}
|
|
|
b58b87 |
%systemd_postun corosync-qdevice.service
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
|
|
|
b58b87 |
%files
|
|
|
b58b87 |
%license LICENSE
|
|
|
b58b87 |
%dir %{_sysconfdir}/corosync/qdevice
|
|
|
b58b87 |
%dir %config(noreplace) %{_sysconfdir}/corosync/qdevice/net
|
|
|
b58b87 |
%dir %{_localstatedir}/run/corosync-qdevice
|
|
|
b58b87 |
%{_sbindir}/corosync-qdevice
|
|
|
b58b87 |
%{_sbindir}/corosync-qdevice-net-certutil
|
|
|
b58b87 |
%{_sbindir}/corosync-qdevice-tool
|
|
|
b58b87 |
%config(noreplace) %{_sysconfdir}/sysconfig/corosync-qdevice
|
|
|
b58b87 |
%if %{with systemd}
|
|
|
b58b87 |
%{_unitdir}/corosync-qdevice.service
|
|
|
b58b87 |
%else
|
|
|
b58b87 |
%{_initrddir}/corosync-qdevice
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
%{_mandir}/man8/corosync-qdevice-tool.8*
|
|
|
b58b87 |
%{_mandir}/man8/corosync-qdevice-net-certutil.8*
|
|
|
b58b87 |
%{_mandir}/man8/corosync-qdevice.8*
|
|
|
b58b87 |
|
|
|
b58b87 |
%package -n corosync-qdevice-devel
|
|
|
b58b87 |
Summary: The Corosync Cluster Engine Qdevice Network Development Kit
|
|
|
b58b87 |
Requires: pkgconfig
|
|
|
b58b87 |
|
|
|
b58b87 |
%description -n corosync-qdevice-devel
|
|
|
b58b87 |
This package contains files used to develop using
|
|
|
b58b87 |
The Corosync Cluster Engine Qdevice
|
|
|
b58b87 |
|
|
|
b58b87 |
%files -n corosync-qdevice-devel
|
|
|
b58b87 |
%license LICENSE
|
|
|
b58b87 |
%{_datadir}/pkgconfig/corosync-qdevice.pc
|
|
|
b58b87 |
|
|
|
b58b87 |
%package -n corosync-qnetd
|
|
|
b58b87 |
Summary: The Corosync Cluster Engine Qdevice Network Daemon
|
|
|
b58b87 |
Requires: nss-tools
|
|
|
b58b87 |
Requires(pre): shadow-utils
|
|
|
b58b87 |
|
|
|
b58b87 |
%if %{with systemd}
|
|
|
b58b87 |
%{?systemd_requires}
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
|
|
|
b58b87 |
%description -n corosync-qnetd
|
|
|
b58b87 |
This package contains the Corosync Cluster Engine Qdevice Network Daemon,
|
|
|
b58b87 |
script for creating NSS certificates and an init script.
|
|
|
b58b87 |
|
|
|
b58b87 |
%pre -n corosync-qnetd
|
|
|
b58b87 |
getent group coroqnetd >/dev/null || groupadd -r coroqnetd
|
|
|
b58b87 |
getent passwd coroqnetd >/dev/null || \
|
|
|
b58b87 |
useradd -r -g coroqnetd -d / -s /sbin/nologin -c "User for corosync-qnetd" coroqnetd
|
|
|
b58b87 |
exit 0
|
|
|
b58b87 |
|
|
|
b58b87 |
%post -n corosync-qnetd
|
|
|
b58b87 |
%if %{with systemd} && 0%{?systemd_post:1}
|
|
|
b58b87 |
%systemd_post corosync-qnetd.service
|
|
|
b58b87 |
%else
|
|
|
b58b87 |
if [ $1 -eq 1 ]; then
|
|
|
b58b87 |
/sbin/chkconfig --add corosync-qnetd || :
|
|
|
b58b87 |
fi
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
|
|
|
b58b87 |
%preun -n corosync-qnetd
|
|
|
b58b87 |
%if %{with systemd} && 0%{?systemd_preun:1}
|
|
|
b58b87 |
%systemd_preun corosync-qnetd.service
|
|
|
b58b87 |
%else
|
|
|
b58b87 |
if [ $1 -eq 0 ]; then
|
|
|
b58b87 |
/sbin/service corosync-qnetd stop &>/dev/null || :
|
|
|
b58b87 |
/sbin/chkconfig --del corosync-qnetd || :
|
|
|
b58b87 |
fi
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
|
|
|
b58b87 |
%postun -n corosync-qnetd
|
|
|
b58b87 |
%if %{with systemd} && 0%{?systemd_postun:1}
|
|
|
b58b87 |
%systemd_postun corosync-qnetd.service
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
|
|
|
b58b87 |
%files -n corosync-qnetd
|
|
|
b58b87 |
%license LICENSE
|
|
|
b58b87 |
%dir %config(noreplace) %attr(770, coroqnetd, coroqnetd) %{_sysconfdir}/corosync/qnetd
|
|
|
b58b87 |
%dir %attr(770, coroqnetd, coroqnetd) %{_localstatedir}/run/corosync-qnetd
|
|
|
b58b87 |
%{_bindir}/corosync-qnetd
|
|
|
b58b87 |
%{_bindir}/corosync-qnetd-certutil
|
|
|
b58b87 |
%{_bindir}/corosync-qnetd-tool
|
|
|
b58b87 |
%config(noreplace) %{_sysconfdir}/sysconfig/corosync-qnetd
|
|
|
b58b87 |
%if %{with systemd}
|
|
|
b58b87 |
%{_unitdir}/corosync-qnetd.service
|
|
|
b58b87 |
%else
|
|
|
b58b87 |
%{_initrddir}/corosync-qnetd
|
|
|
b58b87 |
%endif
|
|
|
b58b87 |
%{_mandir}/man8/corosync-qnetd-tool.8*
|
|
|
b58b87 |
%{_mandir}/man8/corosync-qnetd-certutil.8*
|
|
|
b58b87 |
%{_mandir}/man8/corosync-qnetd.8*
|
|
|
b58b87 |
|
|
|
b58b87 |
%changelog
|
|
|
9f18a1 |
* Thu Nov 03 2022 Jan Friesse <jfriesse@redhat.com> - 3.0.2-1
|
|
|
9f18a1 |
- Resolves: rhbz#2135863
|
|
|
9f18a1 |
|
|
|
9f18a1 |
- New upstream release
|
|
|
9f18a1 |
|
|
|
b58b87 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.0.1-4
|
|
|
b58b87 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
b58b87 |
Related: rhbz#1991688
|
|
|
b58b87 |
|
|
|
b58b87 |
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 3.0.1-3
|
|
|
b58b87 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
b58b87 |
|
|
|
b58b87 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2
|
|
|
b58b87 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
b58b87 |
|
|
|
b58b87 |
* Mon Nov 23 2020 Jan Friesse <jfriesse@redhat.com> - 3.0.1-1
|
|
|
b58b87 |
- New upstream release
|
|
|
b58b87 |
|
|
|
b58b87 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-10
|
|
|
b58b87 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
b58b87 |
|
|
|
b58b87 |
* Wed Jul 22 2020 Jan Friesse <jfriesse@redhat.com> - 3.0.0-9
|
|
|
b58b87 |
- Use make macros
|
|
|
b58b87 |
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
|
|
b58b87 |
|
|
|
b58b87 |
* Wed May 13 2020 Jan Friesse <jfriesse@redhat.com> - 3.0.0-8
|
|
|
b58b87 |
- Really rebuild for the new libqb
|
|
|
b58b87 |
|
|
|
b58b87 |
* Wed May 13 2020 Jan Friesse <jfriesse@redhat.com> - 3.0.0-7
|
|
|
b58b87 |
- Rebuild for new libqb
|
|
|
b58b87 |
|
|
|
b58b87 |
* Thu Mar 26 2020 Jan Friesse <jfriesse@redhat.com> - 3.0.0-6
|
|
|
b58b87 |
- Add CI tests
|
|
|
b58b87 |
- Enable gating
|
|
|
b58b87 |
|
|
|
b58b87 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
|
|
|
b58b87 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
b58b87 |
|
|
|
b58b87 |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
|
|
|
b58b87 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
b58b87 |
|
|
|
b58b87 |
* Wed Mar 20 2019 Jan Friesse <jfriesse@redhat.com> - 3.0.0-3
|
|
|
b58b87 |
- Add license and use install -p
|
|
|
b58b87 |
|
|
|
b58b87 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
|
|
|
b58b87 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
b58b87 |
|
|
|
b58b87 |
* Wed Dec 12 2018 Jan Friesse <jfriesse@redhat.com> - 3.0.0-1
|
|
|
b58b87 |
- New upstream release
|
|
|
b58b87 |
|
|
|
b58b87 |
* Fri Nov 23 2018 Jan Friesse <jfriesse@redhat.com> - 2.93.0-1
|
|
|
b58b87 |
- New upstream release
|
|
|
b58b87 |
|
|
|
b58b87 |
* Thu Aug 09 2018 Jan Friesse <jfriesse@redhat.com> - 2.92.0-1
|
|
|
b58b87 |
- New upstream release
|
|
|
b58b87 |
|
|
|
b58b87 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.91.0-2
|
|
|
b58b87 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
b58b87 |
|
|
|
b58b87 |
* Fri Apr 27 2018 Jan Friesse <jfriesse@redhat.com> - 2.91.0-1
|
|
|
b58b87 |
- New upstream release
|
|
|
b58b87 |
|
|
|
b58b87 |
* Thu Mar 22 2018 Jan Friesse <jfriesse@redhat.com> - 2.90.0-4
|
|
|
b58b87 |
- Rebuild for new Corosync
|
|
|
b58b87 |
|
|
|
b58b87 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.90.0-3
|
|
|
b58b87 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b58b87 |
|
|
|
b58b87 |
* Wed Jan 24 2018 Jan Friesse <jfriesse@redhat.com> - 2.90.0-2
|
|
|
b58b87 |
- Fix spec file according to advices given in review by
|
|
|
b58b87 |
Robert-André Mauchin <zebob.m@gmail.com>
|
|
|
b58b87 |
|
|
|
b58b87 |
* Tue Jan 23 2018 Jan Friesse <jfriesse@redhat.com> - 2.90.0-1
|
|
|
b58b87 |
- First upstream packaged version of corosync for rawhide review.
|