New upstream release.
spec file cleanup.
This commit is contained in:
parent
e9466645cd
commit
0889fef3ec
@ -1 +1 @@
|
|||||||
fence-agents-3.0.0.beta1.tar.gz
|
fence-agents-3.0.0.rc1.tar.gz
|
||||||
|
@ -14,12 +14,12 @@
|
|||||||
# http://www.rpm.org/max-rpm/s1-rpm-subpack-spec-file-changes.html
|
# http://www.rpm.org/max-rpm/s1-rpm-subpack-spec-file-changes.html
|
||||||
|
|
||||||
# keep around ready for later user
|
# keep around ready for later user
|
||||||
%define alphatag beta1
|
%define alphatag rc1
|
||||||
|
|
||||||
Name: fence-agents
|
Name: fence-agents
|
||||||
Summary: Fence Agents for Red Hat Cluster
|
Summary: Fence Agents for Red Hat Cluster
|
||||||
Version: 3.0.0
|
Version: 3.0.0
|
||||||
Release: 9%{?alphatag:.%{alphatag}}%{?dist}
|
Release: 10%{?alphatag:.%{alphatag}}%{?dist}
|
||||||
License: GPLv2+ and LGPLv2+
|
License: GPLv2+ and LGPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
URL: http://sources.redhat.com/cluster/wiki/
|
URL: http://sources.redhat.com/cluster/wiki/
|
||||||
@ -37,17 +37,17 @@ Requires: pexpect net-snmp-utils pyOpenSSL
|
|||||||
%define buildvirt 1
|
%define buildvirt 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
|
|
||||||
# Build dependencies
|
# Build dependencies
|
||||||
BuildRequires: perl python
|
BuildRequires: perl python
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
BuildRequires: libxml2-devel
|
|
||||||
BuildRequires: clusterlib-devel >= 3.0.0
|
|
||||||
BuildRequires: corosynclib-devel >= 0.94-3
|
|
||||||
BuildRequires: openaislib-devel >= 0.93-2
|
|
||||||
|
|
||||||
%if %{buildvirt}
|
%if %{buildvirt}
|
||||||
|
BuildRequires: libxml2-devel
|
||||||
|
BuildRequires: clusterlib-devel >= 3.0.0
|
||||||
|
BuildRequires: corosynclib-devel >= 0.95-1
|
||||||
|
BuildRequires: openaislib-devel >= 0.94-1
|
||||||
BuildRequires: nss-devel nspr-devel libvirt-devel
|
BuildRequires: nss-devel nspr-devel libvirt-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -64,9 +64,8 @@ BuildRequires: nss-devel nspr-devel libvirt-devel
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
%if %{buildvirt}
|
%if %{buildvirt}
|
||||||
--enable_virt \
|
--enable_virt \
|
||||||
%endif
|
|
||||||
--corosynclibdir=%{_libdir}/corosync \
|
|
||||||
--openaislibdir=%{_libdir}/openais \
|
--openaislibdir=%{_libdir}/openais \
|
||||||
|
%endif
|
||||||
--disable_kernel_check
|
--disable_kernel_check
|
||||||
|
|
||||||
##CFLAGS="$(echo '%{optflags}')" make %{_smp_mflags}
|
##CFLAGS="$(echo '%{optflags}')" make %{_smp_mflags}
|
||||||
@ -74,17 +73,17 @@ BuildRequires: nss-devel nspr-devel libvirt-devel
|
|||||||
CFLAGS="$(echo '%{optflags}')" make -C fence/agents
|
CFLAGS="$(echo '%{optflags}')" make -C fence/agents
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
make -C fence/agents install DESTDIR=$RPM_BUILD_ROOT
|
make -C fence/agents install DESTDIR=%{buildroot}
|
||||||
make -C fence/man install DESTDIR=$RPM_BUILD_ROOT
|
make -C fence/man install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
## tree fix up
|
## tree fix up
|
||||||
# fix libfence permissions
|
# fix libfence permissions
|
||||||
chmod 0755 $RPM_BUILD_ROOT%{_datadir}/fence/*.py
|
chmod 0755 %{buildroot}%{_datadir}/fence/*.py
|
||||||
chmod 0755 $RPM_BUILD_ROOT%{_datadir}/fence/telnet_ssl
|
chmod 0755 %{buildroot}%{_datadir}/fence/telnet_ssl
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Red Hat Fence Agents is a collection of scripts to handle remote
|
Red Hat Fence Agents is a collection of scripts to handle remote
|
||||||
@ -95,10 +94,16 @@ power management for several devices.
|
|||||||
%doc doc/COPYING.* doc/COPYRIGHT doc/README.licence
|
%doc doc/COPYING.* doc/COPYRIGHT doc/README.licence
|
||||||
%{_sbindir}/fence*
|
%{_sbindir}/fence*
|
||||||
%{_datadir}/fence
|
%{_datadir}/fence
|
||||||
%{_datadir}/snmp/mibs/*
|
|
||||||
%{_mandir}/man8/fence*
|
%{_mandir}/man8/fence*
|
||||||
|
|
||||||
%changelog
|
%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.
|
||||||
|
|
||||||
* Thu Mar 12 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-9.beta1
|
* Thu Mar 12 2009 Fabio M. Di Nitto <fdinitto@redhat.com> - 3.0.0-9.beta1
|
||||||
- Fix arch check for virt support.
|
- Fix arch check for virt support.
|
||||||
- Drop unrequired BuildRequires.
|
- Drop unrequired BuildRequires.
|
||||||
|
Loading…
Reference in New Issue
Block a user