700e142
Summary: Performance Application Programming Interface
700e142
Name: papi
534290d
Version: 3.7.2
f758da2
Release: 3%{?dist}
700e142
License: BSD
700e142
Group: Development/System
700e142
URL: http://icl.cs.utk.edu/papi/
700e142
Source0: http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version}.tar.gz
f758da2
Patch1: papi-3.7.2-config.patch
700e142
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
700e142
BuildRequires: ncurses-devel
91ef30e
BuildRequires: kernel-headers >= 2.6.31
700e142
BuildRequires: gcc-gfortran
700e142
BuildRequires: chrpath
f758da2
BuildRequires: autoconf
494bfcb
#Right now libpfm does not know anything about s390 and will fail
494bfcb
ExcludeArch: s390, s390x
700e142
700e142
%description
700e142
PAPI provides a programmer interface to monitor the performance of
700e142
running programs.
700e142
700e142
%package devel
700e142
Summary: Header files for the compiling programs with PAPI
700e142
Group: Development/System
700e142
Requires: papi = %{version}-%{release}
700e142
%description devel
700e142
PAPI-devel includes the C header files that specify the PAPI userspace
700e142
libraries and interfaces. This is required for rebuilding any program
700e142
that uses PAPI.
700e142
700e142
%prep
700e142
%setup -q
700e142
f758da2
%patch1 -p1 -b .header
f758da2
700e142
%build
700e142
cd src
f758da2
autoconf
f758da2
%configure --disable-static
700e142
make %{?_smp_mflags}
700e142
700e142
#%check
700e142
#cd src
700e142
#make fulltest
700e142
700e142
%install
700e142
rm -rf $RPM_BUILD_ROOT
700e142
cd src
700e142
make DESTDIR=$RPM_BUILD_ROOT install
700e142
700e142
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so*
700e142
700e142
# Remove the static libraries. Static libraries are undesirable:
700e142
# https://fedoraproject.org/wiki/Packaging/Guidelines#Packaging_Static_Libraries
700e142
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
700e142
700e142
%post -p /sbin/ldconfig
700e142
%postun -p /sbin/ldconfig
700e142
%clean
700e142
rm -rf $RPM_BUILD_ROOT
700e142
700e142
%files
700e142
%defattr(-,root,root,-)
700e142
%{_bindir}/*
700e142
%{_libdir}/*.so.*
700e142
/usr/share/papi
700e142
%doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt
700e142
700e142
%files devel
700e142
%defattr(-,root,root,-)
700e142
%{_includedir}/*.h
700e142
%{_includedir}/perfmon
700e142
%{_libdir}/*.so
700e142
%doc %{_mandir}/man3/*
700e142
700e142
%changelog
f758da2
* Thu Dec 10 2009 William Cohen <wcohen@redhat.com> - 3.7.2-3
f758da2
- Adjust configure.
f758da2
91ef30e
* Mon Dec 9 2009 William Cohen <wcohen@redhat.com> - 3.7.2-2
91ef30e
- Remove dependency on kernel-devel.
91ef30e
534290d
* Mon Dec 9 2009 William Cohen <wcohen@redhat.com> - 3.7.2-1
534290d
- Import papi-3.7.2.
534290d
494bfcb
* Thu Nov 19 2009 William Cohen <wcohen@redhat.com> - 3.7.1-4
494bfcb
- Exclude s390 and s390x.
494bfcb
3311bc9
* Mon Nov 16 2009 William Cohen <wcohen@redhat.com> - 3.7.1-3
3311bc9
- Adjust configure.
3311bc9
289e79b
* Mon Nov 16 2009 William Cohen <wcohen@redhat.com> - 3.7.1-2
289e79b
- Bump version.
289e79b
e210718
* Mon Nov 16 2009 William Cohen <wcohen@redhat.com> - 3.7.1-1
e210718
- Import papi-3.7.1.
e210718
8ef6ac2
* Mon Oct 26 2009 William Cohen <wcohen@redhat.com> - 3.7.0-11
8ef6ac2
- Add distro to release.
8ef6ac2
700e142
* Fri Oct 09 2009 William Cohen <wcohen@redhat.com> - 3.7.0-10
700e142
- Eliminate the papi-static subpackage.
700e142
700e142
* Fri Oct 09 2009 Richard W.M. Jones <rjones@redhat.com> - 3.7.0-9
700e142
- Fix defattr definitions.
700e142
700e142
* Fri Oct 09 2009 Richard W.M. Jones <rjones@redhat.com> - 3.7.0-8
700e142
- Fix URL and Source0.
700e142
- Grammatical corrections to the description sections.
700e142
- Remove RPATHs from shared libraries.
700e142
- RPM shouldn't own directories.
700e142
- Add soname patch so soname is libpapi.so.3.
700e142
- Add exit patch so library doesn't call exit directly.
700e142
700e142
* Thu Oct 01 2009 William Cohen <wcohen@redhat.com> - 3.7.0-7
700e142
- URL point to place to get download of release.
700e142
- Requires for -devel RPM.
700e142
700e142
* Tue Sep 29 2009 William Cohen <wcohen@redhat.com> - 3.7.0-6
700e142
- Remove the check section from the spec file.
700e142
700e142
* Tue Sep 29 2009 William Cohen <wcohen@redhat.com> - 3.7.0-5
700e142
- Compile x86_cache_info.c only on x86 machines.
700e142
700e142
* Fri Sep 25 2009 William Cohen <wcohen@redhat.com> - 3.7.0-4
700e142
- Add patch for multiplex.c.
700e142
700e142
* Thu Sep 24 2009 William Cohen <wcohen@redhat.com> - 3.7.0-3
700e142
- Add testing for C and Fortran.
700e142
700e142
* Thu Sep 24 2009 William Cohen <wcohen@redhat.com> - 3.7.0-2
700e142
- Split out the static libraries into separate sub package.
700e142
700e142
* Wed Sep 23 2009 William Cohen <wcohen@redhat.com> - 3.7.0-1
700e142
- Initial build.