Split out papi-libs as separate subpackage. (#1172875)

This commit is contained in:
William Cohen 2014-12-18 16:41:38 -05:00
parent 5f4cc375a9
commit b6f8c88881
1 changed files with 20 additions and 4 deletions

View File

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