Make sure that ldconfig is not done during the build process

If the libpfm is bundled with papi the ldconfig would be run and it
would cut short the install.  The install needs to run to completion
and install /usr/include/perfmon/*.h files when bundling libpfm4
with papi.
This commit is contained in:
William Cohen 2012-12-04 17:03:22 -05:00
parent 361e069bd9
commit bdfc4a222d

View File

@ -2,7 +2,7 @@
Summary: Performance Application Programming Interface Summary: Performance Application Programming Interface
Name: papi Name: papi
Version: 5.0.1 Version: 5.0.1
Release: 3%{?dist} Release: 4%{?dist}
License: BSD License: BSD
Group: Development/System Group: Development/System
URL: http://icl.cs.utk.edu/papi/ URL: http://icl.cs.utk.edu/papi/
@ -81,7 +81,7 @@ DBG="" make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
cd src cd src
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true install
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so* chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so*
@ -102,7 +102,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_includedir}/*.h %{_includedir}/*.h
%if %{with bundled_libpfm} %if %{with bundled_libpfm}
#%{_includedir}/perfmon/*.h %{_includedir}/perfmon/*.h
%endif %endif
%{_libdir}/*.so %{_libdir}/*.so
%doc %{_mandir}/man3/* %doc %{_mandir}/man3/*
@ -112,6 +112,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.a %{_libdir}/*.a
%changelog %changelog
* Tue Dec 04 2012 William Cohen <wcohen@redhat.com> - 5.0.1-4
- Disable ldconfig on install.
* Thu Nov 08 2012 William Cohen <wcohen@redhat.com> - 5.0.1-3 * Thu Nov 08 2012 William Cohen <wcohen@redhat.com> - 5.0.1-3
- Avoid duplicated shared library. - Avoid duplicated shared library.