diff --git a/papi.spec b/papi.spec index 8ecde35..0f21136 100644 --- a/papi.spec +++ b/papi.spec @@ -2,9 +2,10 @@ Summary: Performance Application Programming Interface Name: papi Version: 5.4.0 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD Group: Development/System +Requires: papi-libs = %{version}-%{release} URL: http://icl.cs.utk.edu/papi/ Source0: http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root @@ -30,6 +31,13 @@ ExcludeArch: s390 s390x PAPI provides a programmer interface to monitor the performance of running programs. +%package libs +Summary: Libraries for PAPI clients +Group: Development/System +%description libs +This package contains the run-time libraries for any application that wishes +to use PAPI. + %package devel Summary: Header files for the compiling programs with PAPI Group: Development/System @@ -102,20 +110,25 @@ make DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true install-all chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so* -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/* -%{_libdir}/*.so.* %dir /usr/share/papi /usr/share/papi/papi_events.csv %doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt %doc %{_mandir}/man1/* +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + +%files libs +%defattr(-,root,root,-) +%{_libdir}/*.so.* +%doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt + %files devel %defattr(-,root,root,-) %{_includedir}/*.h @@ -138,6 +151,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/*.a %changelog +* Thu Dec 18 2014 William Cohen - 5.4.0-2 +- Split out papi-libs as separate subpackage. (#1172875) + * Mon Nov 17 2014 William Cohen - 5.4.0-1 - Rebase to papi-5.4.0.