Blob Blame History Raw
Summary: Performance Application Programming Interface
Name: papi
Release: 1%{?dist}
License: BSD
Group: Development/System
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: ncurses-devel
BuildRequires: gcc-gfortran
BuildRequires: kernel-headers >= 2.6.32
BuildRequires: chrpath
#Right now libpfm does not know anything about s390 and will fail
ExcludeArch: s390 s390x

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.

%setup -q

cd src
%configure --with-static-lib=no --with-shared-lib=yes --with-shlib
#DBG workaround to make sure libpfm just uses the normal CFLAGS
DBG="" make

#cd src
#make fulltest

cd src

chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so*

# Remove the static libraries. Static libraries are undesirable:
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig


%files devel
%doc %{_mandir}/man3/*
%doc %{_mandir}/man1/*

* Tue Jan 31 2012 Dan Terpstra <> - 4.2.1
- Rebase to papi-4.2.1

* Wed Dec 8 2010 Dan Terpstra <> - 4.1.2-1
- Rebase to papi-4.1.2

* Mon Jun 8 2010 William Cohen <> - 4.1.0-1
- Rebase to papi-4.1.0

* Mon May 17 2010 William Cohen <> - 4.0.0-5
- Test run with upstream cvs version.

* Wed Feb 10 2010 William Cohen <> - 4.0.0-4
- Resolves: rhbz562935 Rebase to papi-4.0.0 (correct ExcludeArch).

* Wed Feb 10 2010 William Cohen <> - 4.0.0-3
- Resolves: rhbz562935 Rebase to papi-4.0.0 (bump nvr).

* Wed Feb 10 2010 William Cohen <> - 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
- Resolves: rhbz562935 Rebase to papi-4.0.0 

* Wed Jan 13 2010 William Cohen <> - 4.0.0-1
- Generate papi.spec file for papi-4.0.0.