Blame SPECS/fence-virt.spec

54259b
Name:		fence-virt
54259b
Version:	0.3.0
ff7ccc
Release:	16%{?dist}
54259b
Summary:	A pluggable fencing framework for virtual machines
54259b
Group:		System Environment/Base
54259b
License:	GPLv2+
54259b
54259b
%if 0%{?rhel}
54259b
ExclusiveArch: i686 x86_64
54259b
%endif
54259b
54259b
URL:		http://fence-virt.sourceforge.net
54259b
Source0:	http://voxel.dl.sourceforge.net/project/fence-virt/%{name}-%{version}.tar.gz
54259b
Patch0: qpid-build.patch
54259b
Patch1: add-a-delay-w-option.patch
54259b
Patch2: Improve-fence_virt.conf-man-page-description-of-hash.patch
54259b
Patch3: Return-failure-for-nonexistent-domains.patch
54259b
Patch4: Fix-typo-in-fence_virt-8-man-page.patch
54259b
Patch5: Explicitly-set-delay-to-0.patch
54259b
Patch6: Return-success-if-a-domain-exists-but-is-off.patch
54259b
Patch7: use-bswap_X-instead-of-b_swapX.patch
ff7ccc
Patch8: bz1052449.patch
ff7ccc
Patch9: bz1057258.patch
54259b
54259b
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
54259b
54259b
BuildRequires:	corosynclib-devel libvirt-devel
54259b
BuildRequires:	automake autoconf libxml2-devel nss-devel nspr-devel
54259b
BuildRequires:	flex bison libuuid-devel
54259b
54259b
BuildRequires: systemd-units
54259b
Requires(post):	systemd-sysv systemd-units
54259b
Requires(preun):	systemd-units
54259b
Requires(postun):	systemd-units
54259b
54259b
Conflicts:	fence-agents < 3.0.5-2
54259b
54259b
54259b
%description
54259b
Fencing agent for virtual machines.
54259b
54259b
54259b
%package -n fence-virtd
54259b
Summary:	Daemon which handles requests from fence-virt
54259b
Group:		System Environment/Base
54259b
54259b
%description -n fence-virtd
54259b
This package provides the host server framework, fence_virtd,
54259b
for fence_virt.  The fence_virtd host daemon is resposible for
54259b
processing fencing requests from virtual machines and routing
54259b
the requests to the appropriate physical machine for action.
54259b
54259b
54259b
%package -n fence-virtd-multicast
54259b
Summary:	Multicast listener for fence-virtd
54259b
Group:		System Environment/Base
54259b
Requires:	fence-virtd
54259b
54259b
%description -n fence-virtd-multicast
54259b
Provides multicast listener capability for fence-virtd.
54259b
54259b
54259b
%package -n fence-virtd-serial
54259b
Summary:	Serial VMChannel listener for fence-virtd
54259b
Group:		System Environment/Base
54259b
Requires:	libvirt >= 0.6.2
54259b
Requires:	fence-virtd
54259b
54259b
%description -n fence-virtd-serial
54259b
Provides serial VMChannel listener capability for fence-virtd.
54259b
54259b
54259b
%package -n fence-virtd-libvirt
54259b
Summary:	Libvirt backend for fence-virtd
54259b
Group:		System Environment/Base
54259b
Requires:	libvirt >= 0.6.0
54259b
Requires:	fence-virtd
54259b
54259b
%description -n fence-virtd-libvirt
54259b
Provides fence_virtd with a connection to libvirt to fence
54259b
virtual machines.  Useful for running a cluster of virtual
54259b
machines on a desktop.
54259b
54259b
54259b
%prep
54259b
%setup -q
54259b
%patch0 -p1 -b .qpid-build
54259b
%patch1 -p1 -b .add-a-delay-w-option
54259b
%patch2 -p1 -b .Improve-fence_virt.conf-man-page-description-of-hash
54259b
%patch3 -p1 -b .Return-failure-for-nonexistent-domains
54259b
%patch4 -p1 -b .Fix-typo-in-fence_virt-8-man-page
54259b
%patch5 -p1 -b .Explicitly-set-delay-to-0
54259b
%patch6 -p1 -b .Return-success-if-a-domain-exists-but-is-off
54259b
%patch7 -p1 -b .use-bswap_X-instead-of-b_swapX
ff7ccc
%patch8 -p1 -b .bz1052449
ff7ccc
%patch9 -p1 -b .bz1057258
54259b
54259b
54259b
%build
54259b
./autogen.sh
54259b
%{configure} --disable-libvirt-qmf-plugin
54259b
make %{?_smp_mflags}
54259b
54259b
54259b
%install
54259b
rm -rf %{buildroot}
54259b
make install DESTDIR=%{buildroot}
54259b
54259b
# Systemd unit file
54259b
mkdir -p %{buildroot}/%{_unitdir}/
54259b
install -m 0644 fence_virtd.service %{buildroot}/%{_unitdir}/
54259b
54259b
%clean
54259b
rm -rf %{buildroot}
54259b
54259b
54259b
%files
54259b
%defattr(-,root,root,-)
54259b
%doc COPYING TODO README
54259b
%{_sbindir}/fence_virt
54259b
%{_sbindir}/fence_xvm
54259b
%{_mandir}/man8/fence_virt.*
54259b
%{_mandir}/man8/fence_xvm.*
54259b
54259b
54259b
%post
54259b
ccs_update_schema > /dev/null 2>&1 ||:
54259b
# https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
54259b
if [ $1 -eq 1 ] ; then 
54259b
    # Initial installation 
54259b
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
54259b
fi
54259b
54259b
%preun
54259b
# https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
54259b
if [ $1 -eq 0 ] ; then
54259b
    # Package removal, not upgrade
54259b
    /bin/systemctl --no-reload disable fence_virtd.service &> /dev/null || :
54259b
    /bin/systemctl stop fence_virtd.service &> /dev/null || :
54259b
fi
54259b
54259b
%postun
54259b
# https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
54259b
/bin/systemctl daemon-reload &> /dev/null || :
54259b
if [ $1 -ge 1 ] ; then
54259b
    # Package upgrade, not uninstall
54259b
    /bin/systemctl try-restart fence_virtd.service &> /dev/null || :
54259b
fi
54259b
54259b
54259b
%triggerun -- fence_virtd < 0.3.0-1
54259b
# https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Packages_migrating_to_a_systemd_unit_file_from_a_SysV_initscript
54259b
/usr/bin/systemd-sysv-convert --save fence_virtd &> /dev/null || :
54259b
/sbin/chkconfig --del fence_virtd &> /dev/null || :
54259b
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
54259b
/bin/systemctl try-restart fence_virtd.service &> /dev/null || :
54259b
54259b
54259b
%files -n fence-virtd
54259b
%defattr(-,root,root,-)
54259b
%{_sbindir}/fence_virtd
54259b
%{_unitdir}/fence_virtd.service
54259b
%config(noreplace) %{_sysconfdir}/fence_virt.conf
54259b
%dir %{_libdir}/%{name}
54259b
%{_mandir}/man5/fence_virt.conf.*
54259b
%{_mandir}/man8/fence_virtd.*
54259b
54259b
%files -n fence-virtd-multicast
54259b
%defattr(-,root,root,-)
54259b
%{_libdir}/%{name}/multicast.so
54259b
54259b
%files -n fence-virtd-serial
54259b
%defattr(-,root,root,-)
54259b
%{_libdir}/%{name}/serial.so
54259b
54259b
%files -n fence-virtd-libvirt
54259b
%defattr(-,root,root,-)
54259b
%{_libdir}/%{name}/libvirt.so
54259b
54259b
%changelog
ff7ccc
* Wed Feb 19 2014 Ryan McCabe <rmccabe@redhat.com> - 0.3.0-16
ff7ccc
- Fail cleanly when unable to bind the TCP listener socket
ff7ccc
ff7ccc
* Tue Feb 18 2014 Ryan McCabe <rmccabe@redhat.com> - 0.3.0-15
ff7ccc
- Remove references to syslog.target from the fence_virtd systemd unit file
ff7ccc
ff7ccc
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.3.0-14
ff7ccc
- Mass rebuild 2013-12-27
ff7ccc
54259b
* Tue May 07 2013 Ryan McCabe <rmccabe@redhat.com> - 0.3.0-13
54259b
- Rebuild
54259b
54259b
* Tue May 07 2013 Ryan McCabe <rmccabe@redhat.com> - 0.3.0-12
54259b
- Drop libvirt-qmf-plugin
54259b
54259b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-11
54259b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
54259b
54259b
* Fri Nov 02 2012 Ryan McCabe <rmccabe@redhat.com> - 0.3.0-10
54259b
- bswap fix for big endian
54259b
54259b
* Fri Nov 02 2012 Ryan McCabe <rmccabe@redhat.com> - 0.3.0-9
54259b
- Return success if a domain exists but is already off.
54259b
54259b
* Thu Oct 25 2012 Ryan McCabe <rmccabe@redhat.com> - 0.3.0-8
54259b
- Version bump
54259b
54259b
* Thu Oct 25 2012 Ryan McCabe <rmccabe@redhat.com> - 0.3.0-7
54259b
- Fix uninitialized variable for the -w option.
54259b
54259b
* Mon Oct 15 2012 Ryan McCabe <rmccabe@redhat.com> - 0.3.0-6
54259b
- Add a -w (delay) option.
54259b
- Return failure when attempting to fence a nonexistent domain
54259b
- Improve man pages
54259b
54259b
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-5
54259b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
54259b
54259b
* Tue Mar 27 2012 Ryan McCabe <rmccabe@fedoraproject.org> 0.3.0-4
54259b
- Add QPid build fix patch from upstream.
54259b
54259b
* Fri Feb 10 2012 Lon Hohberger <lon@fedoraproject.org> 0.3.0-2
54259b
- Fix URL / Source0 lines
54259b
  Resolves: Fedora#706560
54259b
54259b
* Tue Feb 07 2012 Lon Hohberger <lhh@redhat.com> 0.3.0-1
54259b
- Rebase from upstream to 0.3.0
54259b
- Systemd unit file integration
54259b
- Pacemaker backend
54259b
- Various fixes for startup
54259b
- Rename libvirt-qpid to libvirt-qmf backend
54259b
- Updated default configuration for easier deployment on
54259b
  Fedora systems
54259b
54259b
* Tue Feb 07 2012 Lon Hohberger <lhh@redhat.com> - 0.2.3-6
54259b
- Bump and rebuild
54259b
54259b
* Tue Feb 07 2012 Lon Hohberger <lhh@redhat.com> - 0.2.3-5
54259b
- Fixup changelog
54259b
54259b
* Mon Feb 06 2012 Lon Hohberger <lhh@redhat.com> - 0.2.3-4
54259b
- Drop checkpoint backend since cman and openais are gone
54259b
54259b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-3
54259b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
54259b
54259b
* Fri Jul  8 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.2.3-2
54259b
- add post call to fence-virt to integrate with cluster 3.1.4
54259b
54259b
* Wed Jun 29 2011 Fabio M. Di Nitto <fdinitto@redhat.com> 0.2.3-1
54259b
- new upstream release fix compat regression
54259b
54259b
* Mon Jun 27 2011 Fabio M. Di Nitto <fdinitto@redhat.com> 0.2.2-1
54259b
- new upstream release
54259b
54259b
* Mon May 09 2011 Fabio M. Di Nitto <fdinitto@redhat.com> 0.2.1-5
54259b
- Rebuilt for libqmfconsole soname change
54259b
54259b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-4
54259b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
54259b
54259b
* Thu Apr 01 2010 Lon Hohberger <lhh@redhat.com> 0.2.1-3
54259b
- Update specfile to require correct qpid/qmf libraries
54259b
- Resolves: bz#565111
54259b
54259b
* Tue Feb 23 2010 Fabio M. Di Nitto <fdinitto@redhat.com> 0.2.1-2
54259b
- Update spec file to handle correctly versioned Requires
54259b
54259b
* Fri Jan 15 2010 Lon Hohberger <lhh@redhat.com> 0.2.1-1
54259b
- Update to latest upstream version
54259b
- Fix bug around status return codes for VMs which are 'off'
54259b
54259b
* Thu Jan 14 2010 Lon Hohberger <lhh@redhat.com> 0.2-1
54259b
- Update to latest upstream version
54259b
- Serial & VMChannel listener support
54259b
- Static permission map support
54259b
- Man pages
54259b
- Init script
54259b
- Various bugfixes
54259b
54259b
* Mon Sep 21 2009 Lon Hohberger <lhh@redhat.com> 0.1.3-1
54259b
- Update to latest upstream version
54259b
- Adds libvirt-qpid backend support
54259b
- Fixes UUID operation with libvirt backend
54259b
- Adds man page for fence_xvm and fence_virt
54259b
- Provides fence_xvm compatibility for cluster 3.0.6
54259b
54259b
* Mon Sep 21 2009 Lon Hohberger <lhh@redhat.com> 0.1.2-1
54259b
- Update to latest upstream version
54259b
- Fix build issue on i686
54259b
54259b
* Mon Sep 21 2009 Lon Hohberger <lhh@redhat.com> 0.1.1-1
54259b
- Update to latest upstream version
54259b
- Clean up spec file
54259b
54259b
* Mon Sep 21 2009 Lon Hohberger <lhh@redhat.com> 0.1-2
54259b
- Spec file cleanup
54259b
54259b
* Thu Sep 17 2009 Lon Hohberger <lhh@redhat.com> 0.1-1
54259b
- Initial build for rawhide