From bd974cde4a57a4f403a60e290d96dbf7e319156b Mon Sep 17 00:00:00 2001 From: Fabio M. Di Nitto Date: Feb 24 2009 12:37:00 +0000 Subject: First package import --- diff --git a/.cvsignore b/.cvsignore index e69de29..ed04cb3 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +resource-agents-3.0.0.alpha5.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..a7a2bf5 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +resource-agents-3_0_0-3_alpha5_fc11:HEAD:resource-agents-3.0.0-3.alpha5.fc11.src.rpm:1235478910 diff --git a/resource-agents.spec b/resource-agents.spec new file mode 100644 index 0000000..7b99762 --- /dev/null +++ b/resource-agents.spec @@ -0,0 +1,93 @@ +############################################################################### +############################################################################### +## +## 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: resource-agents +Summary: Open Source HA Resource 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/resource-agents-%{version}%{?alphatag:.%{alphatag}}.tar.gz + +## Runtime deps +Requires: bash grep sed gawk +Requires: net-tools mount e2fsprogs + +# Since rgmanager <= 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, rgmanager will +# Requires: resource-agents in the right version and this Conflicts will +# be dropped as mandated by Fedora Packing policies. +Conflicts: rgmanager <= 3.0.0-4.alpha4 + +## Setup/build bits + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +# Build dependencies (sed / bash) +# BuildRequires: + +%prep +%setup -q -n resource-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} \ + --without_fence_agents \ + --disable_kernel_check + +##CFLAGS="$(echo '%{optflags}')" make %{_smp_mflags} +# %{_smp_mflags} is broken from upstream and unrequired for this project. +CFLAGS="$(echo '%{optflags}')" make -C rgmanager/src/resources + +%install +rm -rf $RPM_BUILD_ROOT +make -C rgmanager/src/resources install DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%description +Red Hat Resource Agents provides a set of scripts to interface with several +services to operate in a High Availability environment. + +%files +%defattr(-,root,root,-) +%doc doc/COPYING.* doc/COPYRIGHT doc/README.licence +%{_datadir}/cluster + +%changelog +* Mon Feb 23 2009 Fabio M. Di Nitto - 3.0.0-3.alpha5 +- New upstream release. + +* Thu Feb 19 2009 Fabio M. Di Nitto - 3.0.0-2.alpha4 +- Add comments on how to build this package. + +* Thu Feb 5 2009 Fabio M. Di Nitto - 3.0.0-1.alpha4 +- New upstream release. +- Fix datadir/cluster directory ownership. + +* Tue Jan 27 2009 Fabio M. Di Nitto - 3.0.0-1.alpha3 + - Initial packaging diff --git a/sources b/sources index e69de29..263ed2a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +59f5e56f17a3dfefb2a3e3ccc2dacc5c resource-agents-3.0.0.alpha5.tar.gz