fence-agents/fence-agents.spec

144 lines
4.6 KiB
RPMSpec
Raw Normal View History

2009-02-24 12:30:04 +00:00
###############################################################################
###############################################################################
##
## Copyright (C) 2004-2008 Red Hat, Inc. All rights reserved.
##
## This copyrighted material is made available to anyone wishing to use,
## modify, copy, or redistribute it subject to the terms and conditions
## of the GNU General Public License v.2.
##
###############################################################################
###############################################################################
# main (empty) package
# http://www.rpm.org/max-rpm/s1-rpm-subpack-spec-file-changes.html
# keep around ready for later user
%define alphatag rc1
2009-02-24 12:30:04 +00:00
Name: fence-agents
Summary: Fence Agents for Red Hat Cluster
Version: 3.0.0
Release: 10%{?alphatag:.%{alphatag}}%{?dist}
2009-02-24 12:30:04 +00:00
License: GPLv2+ and LGPLv2+
Group: System Environment/Base
URL: http://sources.redhat.com/cluster/wiki/
Source0: ftp://sources.redhat.com/pub/cluster/releases/fence-agents-%{version}%{?alphatag:.%{alphatag}}.tar.gz
## Runtime deps
Requires: sg3_utils OpenIPMI telnet openssh-clients
Requires: pexpect net-snmp-utils pyOpenSSL
## Setup/build bits
# build support for virtualization
%define buildvirt 0
2009-03-12 12:45:32 +00:00
%ifarch i386 i486 i586 i686 x86_64 ia64
2009-02-24 12:30:04 +00:00
%define buildvirt 1
%endif
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
2009-02-24 12:30:04 +00:00
# Build dependencies
BuildRequires: perl python
BuildRequires: glibc-devel
%if %{buildvirt}
BuildRequires: libxml2-devel
BuildRequires: clusterlib-devel >= 3.0.0
BuildRequires: corosynclib-devel >= 0.95-1
BuildRequires: openaislib-devel >= 0.94-1
2009-03-12 12:45:32 +00:00
BuildRequires: nss-devel nspr-devel libvirt-devel
2009-02-24 12:30:04 +00:00
%endif
%prep
%setup -q -n fence-agents-%{version}%{?alphatag:.%{alphatag}}
# we inherit configure from cluster project. Configure it for vars we need.
# building from source directly without those parameters will NOT work.
# See http://www.redhat.com/archives/cluster-devel/2009-February/msg00003.html
%build
./configure \
--sbindir=%{_sbindir} \
--initddir=%{_sysconfdir}/rc.d/init.d \
--libdir=%{_libdir} \
%if %{buildvirt}
--enable_virt \
--openaislibdir=%{_libdir}/openais \
%endif
2009-02-24 12:30:04 +00:00
--disable_kernel_check
##CFLAGS="$(echo '%{optflags}')" make %{_smp_mflags}
# %{_smp_mflags} is broken upstream
CFLAGS="$(echo '%{optflags}')" make -C fence/agents
%install
rm -rf %{buildroot}
make -C fence/agents install DESTDIR=%{buildroot}
make -C fence/man install DESTDIR=%{buildroot}
2009-02-24 12:30:04 +00:00
## tree fix up
# fix libfence permissions
chmod 0755 %{buildroot}%{_datadir}/fence/*.py
chmod 0755 %{buildroot}%{_datadir}/fence/telnet_ssl
2009-02-24 12:30:04 +00:00
%clean
rm -rf %{buildroot}
2009-02-24 12:30:04 +00:00
%description
Red Hat Fence Agents is a collection of scripts to handle remote
power management for several devices.
%files
%defattr(-,root,root,-)
%doc doc/COPYING.* doc/COPYRIGHT doc/README.licence
%{_sbindir}/fence*
%{_datadir}/fence
%{_mandir}/man8/fence*
%changelog
* Tue Mar 24 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-10.rc1
- New upstream release.
- Cleanup BuildRequires to avoid to pull in tons of stuff when it's not
required.
- Update BuildRoot usage to preferred versions/names.
- Stop shipping powermib. Those are not required for operations anymore.
2009-03-12 12:45:32 +00:00
* Thu Mar 12 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-9.beta1
- Fix arch check for virt support.
- Drop unrequired BuildRequires.
- Drop unrequired Requires: on perl.
2009-03-09 10:37:24 +00:00
* Mon Mar 9 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-8.beta1
- New upstream release.
- Update corosync/openais BuildRequires and Requires.
2009-03-06 10:51:04 +00:00
* Fri Mar 6 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-7.alpha7
- New upstream release.
- Drop fence_scsi init stuff that's not required anylonger.
2009-03-03 07:33:44 +00:00
* Tue Mar 3 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-6.alpha6
- New upstream release.
2009-02-24 13:05:00 +00:00
* Tue Feb 24 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-5.alpha5
- Fix directory ownership.
* Tue Feb 24 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-4.alpha5
- Drop Conflicts with cman.
2009-02-24 12:30:04 +00:00
* Mon Feb 23 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-3.alpha5
- New upstream release. Also address comments from first package review.
* Thu Feb 19 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-2.alpha4
- Add comments on how to build this package.
- Update build depends on new corosynclib and openaislib.
* Thu Feb 5 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-1.alpha4
- New upstream release.
- Fix datadir/fence directory ownership.
- Update BuildRequires: to reflect changes in corosync/openais/cluster
library split.
* Tue Jan 27 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-1.alpha3
- Initial packaging