2009-10-26 20:42:20 +00:00
|
|
|
Summary: Performance Application Programming Interface
|
|
|
|
Name: papi
|
2010-01-22 22:53:36 +00:00
|
|
|
Version: 4.0.0
|
2010-02-08 19:51:53 +00:00
|
|
|
Release: 2%{?dist}
|
2009-10-26 20:42:20 +00:00
|
|
|
License: BSD
|
|
|
|
Group: Development/System
|
|
|
|
URL: http://icl.cs.utk.edu/papi/
|
|
|
|
Source0: http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version}.tar.gz
|
2010-02-08 19:51:53 +00:00
|
|
|
Patch1: papi-4.0.0-patch1.patch
|
2009-10-26 20:42:20 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: gcc-gfortran
|
2010-01-22 22:53:36 +00:00
|
|
|
BuildRequires: kernel-headers >= 2.6.31
|
2009-10-26 20:42:20 +00:00
|
|
|
BuildRequires: chrpath
|
2009-11-19 16:32:53 +00:00
|
|
|
#Right now libpfm does not know anything about s390 and will fail
|
|
|
|
ExcludeArch: s390, s390x
|
2009-10-26 20:42:20 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
PAPI provides a programmer interface to monitor the performance of
|
|
|
|
running programs.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Header files for the compiling programs with PAPI
|
|
|
|
Group: Development/System
|
|
|
|
Requires: papi = %{version}-%{release}
|
|
|
|
%description devel
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-02-08 19:51:53 +00:00
|
|
|
%patch1 -p1
|
2009-10-26 20:42:20 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd src
|
2009-12-10 20:55:17 +00:00
|
|
|
%configure --disable-static
|
2010-01-22 22:53:36 +00:00
|
|
|
make
|
2009-10-26 20:42:20 +00:00
|
|
|
|
|
|
|
#%check
|
|
|
|
#cd src
|
|
|
|
#make fulltest
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
cd src
|
|
|
|
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
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
/usr/share/papi
|
|
|
|
%doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/*.h
|
|
|
|
%{_includedir}/perfmon
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%doc %{_mandir}/man3/*
|
2010-01-22 22:53:36 +00:00
|
|
|
%doc %{_mandir}/man1/*
|
2009-10-26 20:42:20 +00:00
|
|
|
|
|
|
|
%changelog
|
2010-02-08 19:51:53 +00:00
|
|
|
* Mon Feb 08 2010 William Cohen <wcohen@redhat.com> - 4.0.0-2
|
|
|
|
- correct the ctests/shlib test
|
|
|
|
- have PAPI_set_multiplex() return proper value
|
|
|
|
- properly handle event unit masks
|
|
|
|
- correct PAPI_name_to_code() to match events
|
|
|
|
|
2010-01-22 22:53:36 +00:00
|
|
|
* Wed Jan 13 2010 William Cohen <wcohen@redhat.com> - 4.0.0-1
|
|
|
|
- Generate papi.spec file for papi-4.0.0.
|