Blame SPECS/papi.spec

32cd9f
%bcond_with bundled_libpfm
32cd9f
# rdma is not available
32cd9f
%ifarch %{arm}
32cd9f
%{!?with_rdma: %global with_rdma 0}
32cd9f
%else
32cd9f
%{!?with_rdma: %global with_rdma 1}
32cd9f
%endif
32cd9f
Summary: Performance Application Programming Interface
32cd9f
Name: papi
32cd9f
Version: 5.6.0
32cd9f
Release: 8%{?dist}
32cd9f
License: BSD
32cd9f
Group: Development/System
32cd9f
Requires: papi-libs = %{version}-%{release}
32cd9f
URL: http://icl.cs.utk.edu/papi/
32cd9f
Source0: http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version}.tar.gz
32cd9f
Patch1: papi-ldflags.patch
32cd9f
Patch2: papi-divzero.patch
32cd9f
BuildRequires: autoconf
32cd9f
BuildRequires: doxygen
32cd9f
BuildRequires: ncurses-devel
32cd9f
BuildRequires: gcc-gfortran
32cd9f
BuildRequires: kernel-headers >= 2.6.32
32cd9f
BuildRequires: chrpath
32cd9f
BuildRequires: lm_sensors-devel
32cd9f
%if %{without bundled_libpfm}
32cd9f
BuildRequires: libpfm-devel >= 4.6.0-1
32cd9f
BuildRequires: libpfm-static >= 4.6.0-1
32cd9f
%endif
32cd9f
# Following required for net component
32cd9f
BuildRequires: net-tools
32cd9f
%if  %{with_rdma}
32cd9f
# Following required for inifiband component
32cd9f
BuildRequires: rdma-core-devel
32cd9f
BuildRequires: infiniband-diags-devel
32cd9f
%endif
32cd9f
BuildRequires: perl-generators
32cd9f
#Right now libpfm does not know anything about s390 and will fail
32cd9f
ExcludeArch: s390 s390x
32cd9f
32cd9f
%description
32cd9f
PAPI provides a programmer interface to monitor the performance of
32cd9f
running programs.
32cd9f
32cd9f
%package libs
32cd9f
Summary: Libraries for PAPI clients
32cd9f
Group: Development/System
32cd9f
%description libs
32cd9f
This package contains the run-time libraries for any application that wishes
32cd9f
to use PAPI.
32cd9f
32cd9f
%package devel
32cd9f
Summary: Header files for the compiling programs with PAPI
32cd9f
Group: Development/System
32cd9f
Requires: papi = %{version}-%{release}
32cd9f
Requires: pkgconfig
32cd9f
%description devel
32cd9f
PAPI-devel includes the C header files that specify the PAPI user-space
32cd9f
libraries and interfaces. This is required for rebuilding any program
32cd9f
that uses PAPI.
32cd9f
32cd9f
%package testsuite
32cd9f
Summary: Set of tests for checking PAPI functionality
32cd9f
Group: Development/System
32cd9f
Requires: papi = %{version}-%{release}
32cd9f
%description testsuite
32cd9f
PAPI-testuiste includes compiled versions of papi tests to ensure
32cd9f
that PAPI functions on particular hardware.
32cd9f
32cd9f
%package static
32cd9f
Summary: Static libraries for the compiling programs with PAPI
32cd9f
Group: Development/System
32cd9f
Requires: papi = %{version}-%{release}
32cd9f
%description static
32cd9f
PAPI-static includes the static versions of the library files for
32cd9f
the PAPI user-space libraries and interfaces.
32cd9f
32cd9f
%prep
32cd9f
%setup -q
32cd9f
%patch1 -p1 -b .ldflags
32cd9f
%patch2 -p1 -b .divzero
32cd9f
32cd9f
%build
32cd9f
%if %{without bundled_libpfm}
32cd9f
# Build our own copy of libpfm.
32cd9f
%global libpfm_config --with-pfm-incdir=%{_includedir} --with-pfm-libdir=%{_libdir}
32cd9f
%endif
32cd9f
32cd9f
cd src
32cd9f
autoconf
32cd9f
%configure --with-perf-events \
32cd9f
%{?libpfm_config} \
32cd9f
--with-static-lib=yes --with-shared-lib=yes --with-shlib --with-shlib-tools \
32cd9f
--with-components="appio coretemp example infiniband lmsensors lustre micpower mx net rapl stealtime"
32cd9f
# implicit enabled components: perf_event perf_event_uncore
32cd9f
#components currently left out because of build configure/build issues
32cd9f
# --with-components="bgpm coretemp_freebsd cuda host_micpower nvml vmware"
32cd9f
32cd9f
pushd components
32cd9f
#pushd cuda; ./configure; popd
32cd9f
#pushd host_micpower; ./configure; popd
32cd9f
%if  %{with_rdma}
32cd9f
pushd infiniband_umad; %configure; popd
32cd9f
%endif
32cd9f
pushd lmsensors; \
32cd9f
 %configure --with-sensors_incdir=/usr/include/sensors \
32cd9f
 --with-sensors_libdir=%{_libdir}; \
32cd9f
 popd
32cd9f
#pushd vmware; ./configure; popd
32cd9f
popd
32cd9f
32cd9f
#DBG workaround to make sure libpfm just uses the normal CFLAGS
32cd9f
DBG="" make %{?_smp_mflags}
32cd9f
32cd9f
#generate updated versions of the documentation
32cd9f
#DBG workaround to make sure libpfm just uses the normal CFLAGS
32cd9f
pushd ../doc
32cd9f
DBG="" make
32cd9f
DBG="" make install
32cd9f
popd
32cd9f
32cd9f
%install
32cd9f
rm -rf $RPM_BUILD_ROOT
32cd9f
cd src
32cd9f
make DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true install-all
32cd9f
32cd9f
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so*
32cd9f
32cd9f
%files
32cd9f
%{_bindir}/*
32cd9f
%dir /usr/share/papi
32cd9f
/usr/share/papi/papi_events.csv
32cd9f
%doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt
32cd9f
%doc %{_mandir}/man1/*
32cd9f
32cd9f
%post libs -p /sbin/ldconfig
32cd9f
%postun libs -p /sbin/ldconfig
32cd9f
32cd9f
%files libs
32cd9f
%{_libdir}/*.so.*
32cd9f
%doc INSTALL.txt README LICENSE.txt RELEASENOTES.txt
32cd9f
32cd9f
%files devel
32cd9f
%{_includedir}/*.h
32cd9f
%if %{with bundled_libpfm}
32cd9f
%{_includedir}/perfmon/*.h
32cd9f
%endif
32cd9f
%{_libdir}/*.so
32cd9f
%{_libdir}/pkgconfig/papi*.pc
32cd9f
%doc %{_mandir}/man3/*
32cd9f
32cd9f
%files testsuite
32cd9f
/usr/share/papi/run_tests*
32cd9f
/usr/share/papi/ctests
32cd9f
/usr/share/papi/ftests
32cd9f
/usr/share/papi/validation_tests
32cd9f
/usr/share/papi/components
32cd9f
/usr/share/papi/testlib
32cd9f
32cd9f
%files static
32cd9f
%{_libdir}/*.a
32cd9f
32cd9f
%changelog
32cd9f
* Fri Nov 2 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-8
32cd9f
- Pull in patch to avoid division-by-0.
32cd9f
32cd9f
* Thu May 17 2018 William Cohen <wcohen@redhat.com> - 5.6.0-6
32cd9f
- Dynamically link utilities and tests to papi libraries.
32cd9f
32cd9f
* Mon Apr 30 2018 William Cohen <wcohen@redhat.com> - 5.6.0-5
32cd9f
- Include various LDFLAGS/CFLAGS.
32cd9f
32cd9f
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-4
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
32cd9f
32cd9f
* Wed Jan 31 2018 William Cohen <wcohen@redhat.com> - 5.6.0-3
32cd9f
- Bump and rebuild.
32cd9f
32cd9f
* Thu Dec 21 2017 William Cohen <wcohen@redhat.com> - 5.6.0-2
32cd9f
- Correct infiniband buildrequires.
32cd9f
32cd9f
* Thu Dec 21 2017 William Cohen <wcohen@redhat.com> - 5.6.0-1
32cd9f
- Rebase to papi-5.6.0.
32cd9f
32cd9f
* Mon Aug 28 2017 Honggang LI <honli@redhat.com> - 5.5.1-6
32cd9f
- Disable RDMA support on ARM32
32cd9f
32cd9f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-5
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
32cd9f
32cd9f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-4
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
32cd9f
32cd9f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-3
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
32cd9f
32cd9f
* Thu Feb 2 2017 William Cohen <wcohen@redhat.com> - 5.5.1-2
32cd9f
- Bump version and rebuild due to new libgfortan.so version.
32cd9f
32cd9f
* Fri Nov 18 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.1-1
32cd9f
- Rebase to papi-5.5.1.
32cd9f
32cd9f
* Wed Sep 14 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-1
32cd9f
- Rebase to papi-5.5.0.
32cd9f
32cd9f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.4.3-2
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
32cd9f
32cd9f
* Tue Jan 26 2016 William Cohen <wcohen@redhat.com> - 5.4.3-1
32cd9f
- Rebase to papi-5.4.3.
32cd9f
32cd9f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4.1-3
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
32cd9f
32cd9f
* Fri Mar 6 2015 William Cohen <wcohen@redhat.com> - 5.4.1-2
32cd9f
- Make sure using libpfm-4.6.0.
32cd9f
32cd9f
* Tue Mar 3 2015 William Cohen <wcohen@redhat.com> - 5.4.1-1
32cd9f
- Rebase to papi-5.4.1.
32cd9f
32cd9f
* Wed Feb 11 2015 William Cohen <wcohen@redhat.com> - 5.4.0-3
32cd9f
- Bump version and rebuild.
32cd9f
32cd9f
* Thu Dec 18 2014 William Cohen <wcohen@redhat.com> - 5.4.0-2
32cd9f
- Split out papi-libs as separate subpackage. (#1172875)
32cd9f
32cd9f
* Mon Nov 17 2014 William Cohen <wcohen@redhat.com> - 5.4.0-1
32cd9f
- Rebase to papi-5.4.0.
32cd9f
32cd9f
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.2-2
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
32cd9f
32cd9f
* Mon Aug 4 2014 William Cohen <wcohen@redhat.com> - 5.3.2-1
32cd9f
- Rebase to 5.3.2.
32cd9f
32cd9f
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2.16.ga7f6159
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
32cd9f
32cd9f
* Fri Jan 17 2014 Lukas Berk <lberk@redhat.com> - 5.3.0-1.16.ga7f6159
32cd9f
- Automated weekly rawhide release
32cd9f
32cd9f
* Thu Jan 16 2014 William Cohen <wcohen@redhat.com> - 5.3.0-1
32cd9f
- Rebase to 5.3.0.
32cd9f
32cd9f
* Tue Jan 14 2014 William Cohen <wcohen@redhat.com> - 5.2.0-5
32cd9f
- Add presets for Intel Silvermont.
32cd9f
32cd9f
* Mon Jan 13 2014 William Cohen <wcohen@redhat.com> - 5.2.0-4
32cd9f
- Add presets for Haswell and Ivy Bridge.
32cd9f
32cd9f
* Wed Aug 14 2013 William Cohen <wcohen@redhat.com> - 5.2.0-2
32cd9f
- Enable infiniband and stealtime components.
32cd9f
32cd9f
* Wed Aug 07 2013 William Cohen <wcohen@redhat.com> - 5.2.0-1
32cd9f
- Rebase to 5.2.0
32cd9f
32cd9f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.1-8
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
32cd9f
32cd9f
* Wed Jul 24 2013 William Cohen <wcohen@redhat.com> - 5.1.1-7
32cd9f
- rhbz830275 - Add support for POWER8 processor to PAPI
32cd9f
32cd9f
* Mon Jul 22 2013 William Cohen <wcohen@redhat.com> - 5.1.1-6
32cd9f
- Add autoconf buildrequires.
32cd9f
32cd9f
* Mon Jul 22 2013 William Cohen <wcohen@redhat.com> - 5.1.1-5
32cd9f
- rhbz986673 - /usr/lib64/libpapi.so is unowned
32cd9f
- Package files in /usr/share/papi only once.
32cd9f
- Avoid dependency problem with parallel make of man pages.
32cd9f
32cd9f
* Fri Jul 19 2013 William Cohen <wcohen@redhat.com> - 5.1.1-4
32cd9f
- Correct changelog.
32cd9f
32cd9f
* Fri Jul 5 2013 William Cohen <wcohen@redhat.com> - 5.1.1-3
32cd9f
- Add man page corrections/updates.
32cd9f
32cd9f
* Fri Jun 28 2013 William Cohen <wcohen@redhat.com> - 5.1.1-2
32cd9f
- Add testsuite subpackage.
32cd9f
32cd9f
* Thu May 30 2013 William Cohen <wcohen@redhat.com> - 5.1.1-1
32cd9f
- Rebase to 5.1.1
32cd9f
32cd9f
* Mon Apr 15 2013 William Cohen <wcohen@redhat.com> - 5.1.0.2-2
32cd9f
- Fix arm FTBS rhbz 951806.
32cd9f
32cd9f
* Tue Apr 9 2013 William Cohen <wcohen@redhat.com> - 5.1.0.2-1
32cd9f
- Rebase to 5.1.0.2
32cd9f
32cd9f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.1-6
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
32cd9f
32cd9f
* Mon Jan 14 2013 William Cohen <wcohen@redhat.com> - 5.0.1-5
32cd9f
- Add armv7 cortex a15 presets.
32cd9f
32cd9f
* Tue Dec 04 2012 William Cohen <wcohen@redhat.com> - 5.0.1-4
32cd9f
- Disable ldconfig on install.
32cd9f
32cd9f
* Thu Nov 08 2012 William Cohen <wcohen@redhat.com> - 5.0.1-3
32cd9f
- Avoid duplicated shared library.
32cd9f
32cd9f
* Wed Oct 03 2012 William Cohen <wcohen@redhat.com> - 5.0.1-2
32cd9f
- Make sure using compatible version of libpfm.
32cd9f
32cd9f
* Thu Sep 20 2012 William Cohen <wcohen@redhat.com> - 5.0.1-1
32cd9f
- Rebase to 5.0.1.
32cd9f
32cd9f
* Mon Sep 10 2012 William Cohen <wcohen@redhat.com> - 5.0.0-6
32cd9f
- Back port fixes for Intel Ivy Bridge event presets.
32cd9f
32cd9f
* Thu Aug 30 2012 William Cohen <wcohen@redhat.com> - 5.0.0-5
32cd9f
- Fixes to make papi with unbundled libpfm.
32cd9f
32cd9f
* Mon Aug 27 2012 William Cohen <wcohen@redhat.com> - 5.0.0-2
32cd9f
- Keep libpfm unbundled.
32cd9f
32cd9f
* Fri Aug 24 2012 William Cohen <wcohen@redhat.com> - 5.0.0-1
32cd9f
- Rebase to 5.0.0.
32cd9f
32cd9f
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.0-5
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
32cd9f
32cd9f
* Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-4
32cd9f
- Use siginfo_t rather than struct siginfo.
32cd9f
32cd9f
* Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-3
32cd9f
- Correct build requires.
32cd9f
32cd9f
* Mon Jun 11 2012 William Cohen <wcohen@redhat.com> - 4.4.0-2
32cd9f
- Unbundle libpfm4 from papi.
32cd9f
- Correct description spellings.
32cd9f
- Remove unused test section.
32cd9f
32cd9f
* Fri Apr 20 2012 William Cohen <wcohen@redhat.com> - 4.4.0-1
32cd9f
- Rebase to 4.4.0.
32cd9f
32cd9f
* Fri Mar 9 2012 William Cohen <wcohen@redhat.com> - 4.2.1-2
32cd9f
- Fix overrun in lmsensor component. (rhbz797692)
32cd9f
32cd9f
* Tue Feb 14 2012 William Cohen <wcohen@redhat.com> - 4.2.1-1
32cd9f
- Rebase to 4.2.1.
32cd9f
32cd9f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-4
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
32cd9f
32cd9f
* Wed Nov 02 2011 William Cohen <wcohen@redhat.com> - 4.2.0-3
32cd9f
- Remove unwanted man1/*.c.1 files. (rhbz749725)
32cd9f
32cd9f
* Mon Oct 31 2011 William Cohen <wcohen@redhat.com> - 4.2.0-2
32cd9f
- Include appropirate man pages with papi rpm. (rhbz749725)
32cd9f
- Rebase to papi-4.2.0, fixup for coretemp component. (rhbz746851)
32cd9f
32cd9f
* Thu Oct 27 2011 William Cohen <wcohen@redhat.com> - 4.2.0-1
32cd9f
- Rebase to papi-4.2.0.
32cd9f
32cd9f
* Fri Aug 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-3
32cd9f
- Provide papi-static.
32cd9f
32cd9f
* Thu May 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-2
32cd9f
- Use corrected papi-4.1.3.
32cd9f
32cd9f
* Thu May 12 2011 William Cohen <wcohen@redhat.com> - 4.1.3-1
32cd9f
- Rebase to papi-4.1.3
32cd9f
32cd9f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1.2.1-2
32cd9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
32cd9f
32cd9f
* Mon Jan 24 2011 William Cohen <wcohen@redhat.com> - 4.1.2.1-1
32cd9f
- Rebase to papi-4.1.2.1
32cd9f
32cd9f
* Fri Oct 1 2010 William Cohen <wcohen@redhat.com> - 4.1.1-1
32cd9f
- Rebase to papi-4.1.1
32cd9f
32cd9f
* Tue Jun 22 2010 William Cohen <wcohen@redhat.com> - 4.1.0-1
32cd9f
- Rebase to papi-4.1.0
32cd9f
32cd9f
* Mon May 17 2010 William Cohen <wcohen@redhat.com> - 4.0.0-5
32cd9f
- Test run with upstream cvs version.
32cd9f
32cd9f
* Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-4
32cd9f
- Resolves: rhbz562935 Rebase to papi-4.0.0 (correct ExcludeArch).
32cd9f
32cd9f
* Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-3
32cd9f
- Resolves: rhbz562935 Rebase to papi-4.0.0 (bump nvr).
32cd9f
32cd9f
* Wed Feb 10 2010 William Cohen <wcohen@redhat.com> - 4.0.0-2
32cd9f
- correct the ctests/shlib test
32cd9f
- have PAPI_set_multiplex() return proper value
32cd9f
- properly handle event unit masks
32cd9f
- correct PAPI_name_to_code() to match events
32cd9f
- Resolves: rhbz562935 Rebase to papi-4.0.0 
32cd9f
32cd9f
* Wed Jan 13 2010 William Cohen <wcohen@redhat.com> - 4.0.0-1
32cd9f
- Generate papi.spec file for papi-4.0.0.