- Fixed rpath problem in libOpenIPMIposix.so.0.0.1

This commit is contained in:
Phil Knirsch 2008-07-30 11:49:51 +00:00
parent 2f8c3231b2
commit 9e8e57ea1b

View File

@ -3,7 +3,7 @@
Summary: OpenIPMI (Intelligent Platform Management Interface) library and tools
Name: OpenIPMI
Version: 2.0.14
Release: 1%{?dist}
Release: 2%{?dist}
License: BSD and BSD with advertising and LGPLv2+ and GPLv2+
Group: System Environment/Base
URL: http://sourceforge.net/projects/openipmi/
@ -15,7 +15,7 @@ Patch100: ipmitool-1.8.9-open.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel
BuildRequires: openssl-devel python-devel readline-devel popt-devel
BuildRequires: perl-devel
BuildRequires: perl-devel chrpath
Requires(post): chkconfig
Requires(preun): chkconfig
@ -79,7 +79,6 @@ popd
export CFLAGS=-fPIC
%configure --with-pythoninstall=%{python_sitearch}
sed -i 's|^sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/%{_lib} %{_libdir}|' libtool
sed -i 's| -rpath \$(libdir)\( \$(libOpenIPMIposix_la_LDFLAGS)\)|\1|' unix/Makefile
make
pushd ipmitool-%{ipmitoolver}
%configure
@ -94,6 +93,8 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/*.la
%ifarch ppc64 s390x x86_64
rm -rf $RPM_BUILD_ROOT/usr/lib
%endif
# Remove rpaths from libOpenIPMIposix.so.0.0.1
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libOpenIPMIposix.so.0.0.1
pushd ipmitool-%{ipmitoolver}
make install DESTDIR=$RPM_BUILD_ROOT
#rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/
@ -177,6 +178,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/*.pc
%changelog
* Wed Jul 30 2008 Phil Knirsch <pknirsch@redhat.com> - 2.0.14-2
- Fixed rpath problem in libOpenIPMIposix.so.0.0.1
* Tue Jul 29 2008 Phil Knirsch <pknirsch@redhat.com> - 2.0.14-1
- Fixed several specfile problems (#453751)
- Update to OpenIPMI-2.0.14