2009-10-26 20:42:20 +00:00
|
|
|
Summary: Performance Application Programming Interface
|
|
|
|
Name: papi
|
2009-12-09 17:21:45 +00:00
|
|
|
Version: 3.7.2
|
2009-12-09 21:03:28 +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
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildRequires: ncurses-devel
|
2009-12-09 21:03:28 +00:00
|
|
|
BuildRequires: kernel-headers >= 2.6.31
|
2009-10-26 20:42:20 +00:00
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
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
|
|
|
|
|
|
|
|
%build
|
|
|
|
cd src
|
2009-12-09 21:03:28 +00:00
|
|
|
%configure --with-pcl=yes --disable-static --with-pcl-incdir=/usr/include/linux
|
2009-10-26 20:42:20 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
#%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/*
|
|
|
|
|
|
|
|
%changelog
|
2009-12-09 21:03:28 +00:00
|
|
|
* Mon Dec 9 2009 William Cohen <wcohen@redhat.com> - 3.7.2-2
|
|
|
|
- Remove dependency on kernel-devel.
|
|
|
|
|
2009-12-09 17:21:45 +00:00
|
|
|
* Mon Dec 9 2009 William Cohen <wcohen@redhat.com> - 3.7.2-1
|
|
|
|
- Import papi-3.7.2.
|
|
|
|
|
2009-11-19 16:32:53 +00:00
|
|
|
* Thu Nov 19 2009 William Cohen <wcohen@redhat.com> - 3.7.1-4
|
|
|
|
- Exclude s390 and s390x.
|
|
|
|
|
2009-11-16 15:32:46 +00:00
|
|
|
* Mon Nov 16 2009 William Cohen <wcohen@redhat.com> - 3.7.1-3
|
|
|
|
- Adjust configure.
|
|
|
|
|
2009-11-16 14:35:42 +00:00
|
|
|
* Mon Nov 16 2009 William Cohen <wcohen@redhat.com> - 3.7.1-2
|
|
|
|
- Bump version.
|
|
|
|
|
2009-11-16 14:33:26 +00:00
|
|
|
* Mon Nov 16 2009 William Cohen <wcohen@redhat.com> - 3.7.1-1
|
|
|
|
- Import papi-3.7.1.
|
|
|
|
|
2009-10-26 20:53:59 +00:00
|
|
|
* Mon Oct 26 2009 William Cohen <wcohen@redhat.com> - 3.7.0-11
|
|
|
|
- Add distro to release.
|
|
|
|
|
2009-10-26 20:42:20 +00:00
|
|
|
* Fri Oct 09 2009 William Cohen <wcohen@redhat.com> - 3.7.0-10
|
|
|
|
- Eliminate the papi-static subpackage.
|
|
|
|
|
|
|
|
* Fri Oct 09 2009 Richard W.M. Jones <rjones@redhat.com> - 3.7.0-9
|
|
|
|
- Fix defattr definitions.
|
|
|
|
|
|
|
|
* Fri Oct 09 2009 Richard W.M. Jones <rjones@redhat.com> - 3.7.0-8
|
|
|
|
- Fix URL and Source0.
|
|
|
|
- Grammatical corrections to the description sections.
|
|
|
|
- Remove RPATHs from shared libraries.
|
|
|
|
- RPM shouldn't own directories.
|
|
|
|
- Add soname patch so soname is libpapi.so.3.
|
|
|
|
- Add exit patch so library doesn't call exit directly.
|
|
|
|
|
|
|
|
* Thu Oct 01 2009 William Cohen <wcohen@redhat.com> - 3.7.0-7
|
|
|
|
- URL point to place to get download of release.
|
|
|
|
- Requires for -devel RPM.
|
|
|
|
|
|
|
|
* Tue Sep 29 2009 William Cohen <wcohen@redhat.com> - 3.7.0-6
|
|
|
|
- Remove the check section from the spec file.
|
|
|
|
|
|
|
|
* Tue Sep 29 2009 William Cohen <wcohen@redhat.com> - 3.7.0-5
|
|
|
|
- Compile x86_cache_info.c only on x86 machines.
|
|
|
|
|
|
|
|
* Fri Sep 25 2009 William Cohen <wcohen@redhat.com> - 3.7.0-4
|
|
|
|
- Add patch for multiplex.c.
|
|
|
|
|
|
|
|
* Thu Sep 24 2009 William Cohen <wcohen@redhat.com> - 3.7.0-3
|
|
|
|
- Add testing for C and Fortran.
|
|
|
|
|
|
|
|
* Thu Sep 24 2009 William Cohen <wcohen@redhat.com> - 3.7.0-2
|
|
|
|
- Split out the static libraries into separate sub package.
|
|
|
|
|
|
|
|
* Wed Sep 23 2009 William Cohen <wcohen@redhat.com> - 3.7.0-1
|
|
|
|
- Initial build.
|