From 6f5afd086136cb78558065d6fbdd313937a0d5a5 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Fri, 12 Aug 2011 15:39:37 -0400 Subject: [PATCH] Add static library for compute node support. --- papi.spec | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/papi.spec b/papi.spec index 9e7058d..da69897 100644 --- a/papi.spec +++ b/papi.spec @@ -1,7 +1,7 @@ Summary: Performance Application Programming Interface Name: papi Version: 4.1.3 -Release: 2%{?dist} +Release: 3%{?dist} License: BSD Group: Development/System URL: http://icl.cs.utk.edu/papi/ @@ -27,6 +27,14 @@ PAPI-devel includes the C header files that specify the PAPI userspace libraries and interfaces. This is required for rebuilding any program that uses PAPI. +%package static +Summary: Static libraries for the compiling programs with PAPI +Group: Development/System +Requires: papi = %{version}-%{release} +%description static +PAPI-static includes the static versions of the library files for +the PAPI userspace libraries and interfaces. + %prep %setup -q @@ -47,10 +55,6 @@ make DESTDIR=$RPM_BUILD_ROOT install chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so* -# Remove the static libraries. Static libraries are undesirable: -# https://fedoraproject.org/wiki/Packaging/Guidelines#Packaging_Static_Libraries -rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean @@ -71,7 +75,14 @@ rm -rf $RPM_BUILD_ROOT %doc %{_mandir}/man3/* %doc %{_mandir}/man1/* +%files static +%defattr(-,root,root,-) +%{_libdir}/*.a + %changelog +* Fri Aug 12 2011 William Cohen - 4.1.3-3 +- Provide papi-static. + * Thu May 12 2011 William Cohen - 4.1.3-2 - Use corrected papi-4.1.3.