papi/papi.spec

158 lines
4.5 KiB
RPMSpec
Raw Normal View History

Summary: Performance Application Programming Interface
Name: papi
2012-02-14 19:55:45 +00:00
Version: 4.2.1
Release: 1%{?dist}
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
BuildRequires: gcc-gfortran
2010-10-01 19:24:54 +00:00
BuildRequires: kernel-headers >= 2.6.32
BuildRequires: chrpath
2012-02-14 19:55:45 +00:00
BuildRequires: lm_sensors-devel
2011-10-27 13:57:26 +00:00
# Following required for net component
BuildRequires: net-tools
# Following required for inifiband component
2012-02-14 19:55:45 +00:00
BuildRequires: libibmad-devel
2009-11-19 16:32:53 +00:00
#Right now libpfm does not know anything about s390 and will fail
2010-06-22 19:01:35 +00:00
ExcludeArch: s390 s390x
%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.
%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
%build
cd src
2011-10-27 13:57:26 +00:00
%configure --with-libpfm4 \
--with-static-lib=yes --with-shared-lib=yes --with-shlib \
2012-02-14 19:55:45 +00:00
--with-components="coretemp example lmsensors lustre mx net"
2011-10-27 13:57:26 +00:00
#components currently left out because of build configure/build issues
2012-02-14 19:55:45 +00:00
#--with-components="appio cuda infiniband vmware"
2011-10-27 13:57:26 +00:00
pushd components
#pushd cuda; ./configure; popd
2012-02-14 19:55:45 +00:00
pushd infiniband; %configure; popd
pushd lmsensors; \
%configure --with-sensors_incdir=/usr/include/sensors \
--with-sensors_libdir=%{_libdir}; \
popd
#pushd vmware; ./configure; popd
2011-10-27 13:57:26 +00:00
popd
2010-06-22 19:01:35 +00:00
#DBG workaround to make sure libpfm just uses the normal CFLAGS
2012-02-14 19:55:45 +00:00
DBG="" 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*
%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
%doc %{_mandir}/man1/*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*.h
2011-10-27 13:57:26 +00:00
%{_includedir}/perfmon/*.h
%{_libdir}/*.so
%doc %{_mandir}/man3/*
%files static
%defattr(-,root,root,-)
%{_libdir}/*.a
%changelog
2012-02-14 19:55:45 +00:00
* Tue Feb 14 2012 William Cohen <wcohen@redhat.com> - 4.2.1-1
- Rebase to 4.2.1.
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Wed Nov 02 2011 William Cohen <wcohen@redhat.com> - 4.2.0-3
- Remove unwanted man1/*.c.1 files. (rhbz749725)
* Mon Oct 31 2011 William Cohen <wcohen@redhat.com> - 4.2.0-2
- Include appropirate man pages with papi rpm. (rhbz749725)
- Rebase to papi-4.2.0, fixup for coretemp component. (rhbz746851)
2011-10-27 13:57:26 +00:00
* Thu Oct 27 2011 William Cohen <wcohen@redhat.com> - 4.2.0-1
- Rebase to papi-4.2.0.
* Fri Aug 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-3
- Provide papi-static.
2011-05-13 20:51:57 +00:00
* Thu May 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-2
- Use corrected papi-4.1.3.
2011-05-12 18:04:54 +00:00
* Thu May 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-1
- Rebase to papi-4.1.3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2011-01-24 22:45:09 +00:00
* Mon Jan 24 2011 William Cohen <wcohen@redhat.com> - 4.1.2.1-1
- Rebase to papi-4.1.2.1
2010-10-01 19:24:54 +00:00
* Fri Oct 1 2010 William Cohen <wcohen@redhat.com> - 4.1.1-1
- Rebase to papi-4.1.1
2010-06-22 19:01:35 +00:00
* Mon Jun 8 2010 William Cohen <wcohen@redhat.com> - 4.1.0-1
- Rebase to papi-4.1.0
* Mon May 17 2010 William Cohen <wcohen@redhat.com> - 4.0.0-5
- Test run with upstream cvs version.
* Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-4
- Resolves: rhbz562935 Rebase to papi-4.0.0 (correct ExcludeArch).
* Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-3
- Resolves: rhbz562935 Rebase to papi-4.0.0 (bump nvr).
* Wed Feb 10 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-06-22 19:01:35 +00:00
- Resolves: rhbz562935 Rebase to papi-4.0.0
* Wed Jan 13 2010 William Cohen <wcohen@redhat.com> - 4.0.0-1
- Generate papi.spec file for papi-4.0.0.