rpms/fence-agents/devel fence-agents.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Fabio M. Di Nitto fabbione at fedoraproject.org
Tue Feb 24 12:30:34 UTC 2009


Author: fabbione

Update of /cvs/pkgs/rpms/fence-agents/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv508/devel

Modified Files:
	.cvsignore sources 
Added Files:
	fence-agents.spec import.log 
Log Message:
First import



--- NEW FILE fence-agents.spec ---
###############################################################################
###############################################################################
##
##  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 alpha5

Name: fence-agents
Summary: Fence Agents for Red Hat Cluster
Version: 3.0.0
Release: 3%{?alphatag:.%{alphatag}}%{?dist}
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
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

# Since cman <= 3.0.0-4.alpha4 and this package conflicts at file level,
# I am adding a temporary Conflicts so that testers will not attempt
# to install it. Once the package is approved, cman will Requires: fence-agents
# in the right version and this Conflicts will be dropped as mandated by
# Fedora Packing policies.
Conflicts: cman <= 3.0.0-4.alpha4

## Setup/build bits

# build support for virtualization
%define buildvirt 0
%ifarch i386 x86_64 ia64
%define buildvirt 1
%endif

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# Build dependencies
BuildRequires: perl python
BuildRequires: glibc-devel
BuildRequires: libxml2-devel
BuildRequires: clusterlib-devel >= 3.0.0
BuildRequires: corosynclib-devel >= 0.93-1
BuildRequires: openaislib-devel >= 0.92-1

%if %{buildvirt}
BuildRequires: nss-devel nspr-devel libvirt-devel xen-libs
%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 \
%endif
  --corosynclibdir=%{_libdir}/corosync \
  --openaislibdir=%{_libdir}/openais \
  --disable_kernel_check

##CFLAGS="$(echo '%{optflags}')" make %{_smp_mflags}
# %{_smp_mflags} is broken upstream
CFLAGS="$(echo '%{optflags}')" make -C fence/agents

%install
rm -rf $RPM_BUILD_ROOT
make -C fence/agents install DESTDIR=$RPM_BUILD_ROOT
make -C fence/man install DESTDIR=$RPM_BUILD_ROOT

## tree fix up
# fix libfence permissions
chmod 0755 $RPM_BUILD_ROOT%{_datadir}/fence/*.py
chmod 0755 $RPM_BUILD_ROOT%{_datadir}/fence/telnet_ssl

%clean
rm -rf $RPM_BUILD_ROOT

%post 
/sbin/chkconfig --add scsi_reserve

%preun 
if [ "$1" = 0 ]; then
	/sbin/service scsi_reserve stop >/dev/null 2>&1
	/sbin/chkconfig --del scsi_reserve
fi

%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
%{_sysconfdir}/rc.d/init.d/scsi_reserve
%{_sysconfdir}/cluster/cman-notify.d/scsi_reserve_notify
%{_sbindir}/fence*
%{_datadir}/fence
%{_datadir}/snmp/mibs/*
%{_mandir}/man8/fence*

%changelog
* Mon Feb 23 2009 Fabio M. Di Nitto <fdinitto at 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 at 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 at 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 at redhat.com> - 3.0.0-1.alpha3
- Initial packaging


--- NEW FILE import.log ---
fence-agents-3_0_0-3_alpha5_fc11:HEAD:fence-agents-3.0.0-3.alpha5.fc11.src.rpm:1235478518


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/fence-agents/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	24 Feb 2009 11:16:23 -0000	1.1
+++ .cvsignore	24 Feb 2009 12:30:04 -0000	1.2
@@ -0,0 +1 @@
+fence-agents-3.0.0.alpha5.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/fence-agents/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	24 Feb 2009 11:16:24 -0000	1.1
+++ sources	24 Feb 2009 12:30:04 -0000	1.2
@@ -0,0 +1 @@
+8f268a7fd15ebff15d668003b620aadd  fence-agents-3.0.0.alpha5.tar.gz




More information about the scm-commits mailing list