- Made it install the python bindings properly on 64bit archs

This commit is contained in:
Phil Knirsch 2006-05-16 13:35:15 +00:00
parent 6ea3df098b
commit 6abca7b9c5

View File

@ -1,4 +1,5 @@
%define ipmitoolver 1.8.8
%define pythonver %(%{__python} -c "import sys; print sys.version[:3]")
Summary: OpenIPMI (Intelligent Platform Management Interface) library and tools
Name: OpenIPMI
Version: 2.0.6
@ -67,7 +68,7 @@ pushd ipmitool-%{ipmitoolver}
popd
%build
%configure
%configure --with-pythoninstall=%{_libdir}/python%{pythonver}/site-packages
make
pushd ipmitool-%{ipmitoolver}
%configure
@ -77,6 +78,10 @@ popd
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
# Remove python cruft in 32bit libdir on 64bit archs...
%ifarch ppc64 s390x x86_64
rm -rf $RPM_BUILD_ROOT/usr/lib
%endif
pushd ipmitool-%{ipmitoolver}
%makeinstall
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/
@ -165,6 +170,7 @@ rm -rf $RPM_BUILD_ROOT
- Split off perl and python bindings in separate subpackages
- Dropped obsolete patches
- Added missing buildprereq on readline-devel
- Made it install the python bindings properly on 64bit archs
* Mon May 15 2006 Phil Knirsch <pknirsch@redhat.com>
- Updated ipmitool to 1.8.8