File libpfm.spec of Package libpfm
#
# spec file for package libpfm (Version 3.52)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libpfm
BuildRequires: ncurses-devel
Summary: Linux Performance Library
Version: 3.52
Release: 1
Group: Development/Tools/Debuggers
License: X11/MIT
AutoReqProv: on
Source: http://downloads.sourceforge.net/perfmon2/libpfm-%{version}.tar.gz
Patch: libpfm-%{version}.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: ia64 %ix86 x86_64
%description
This package provides a library, called libpfm, which can be used to
develop monitoring tools which use the Performance Monitoring Unit
(PMU) of several modern processors.
Authors:
--------
Stephane Eranian <eranian@hpl.hp.com>
%package -n libpfm3
License: X11/MIT
Summary: Linux Performance Library
Group: System/Libraries
AutoReqProv: on
%description -n libpfm3
This package provides a library, called libpfm, which can be used to
develop monitoring tools which use the Performance Monitoring Unit
(PMU) of several modern processors.
Authors:
--------
Stephane Eranian <eranian@hpl.hp.com>
%package devel
License: X11/MIT
Summary: Linux Performance Library
Group: Development/Tools/Debuggers
AutoReqProv: on
Requires: libpfm3 = %{version}
Provides: libpfm
Obsoletes: libpfm
%ifarch ia64
Provides: pfmon-devel
Obsoletes: pfmon-devel
%endif
%description devel
This package provides a library, called libpfm, which can be used to
develop monitoring tools which use the Performance Monitoring Unit
(PMU) of several modern processors.
Authors:
--------
Stephane Eranian <eranian@hpl.hp.com>
%prep
%setup -q
%patch
%build
make OPTIM="$RPM_OPT_FLAGS"
%install
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install_prefix=/usr
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
cp COPYRIGHT ChangeLog README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}
cp --parents examples/*.[ch] examples/*/*.[ch] $RPM_BUILD_ROOT%{_docdir}/%{name}
%post -n libpfm3 -p /sbin/ldconfig
%postun -n libpfm3 -p /sbin/ldconfig
%clean
rm -fr $RPM_BUILD_ROOT
%files -n libpfm3
%defattr(-, root, root)
%{_libdir}/libpfm.so.*
%files devel
%defattr(-, root, root)
/usr/include/perfmon
%{_libdir}/libpfm.a
%{_libdir}/libpfm.so
%{_mandir}/man?/*.gz
%{_docdir}/%{name}
%changelog
* Thu Sep 04 2008 schwab@suse.de
- Update to libpfm 3.52.
http://perfmon2.sourceforge.net/
* Thu Aug 07 2008 ro@suse.de
- adapt to library packaging policy
* Thu Jul 31 2008 schwab@suse.de
- Update to libpfm 3.5.
- support for AMD K7
- support for Intel architectural perfmon v3
- support for SiCortex (ICE9A, ICE9B)
- dynamic syscall base detection via /sys
- new environment variables for debugging and forcing a PMU model
- Cray updates and man pages cleanups
- Update to libpfm 3.4.
- auto-detection of system call base for 2.6.24 and 2.6.25
- environment variables to enable debug/verbose output
- Cray updates and man pages cleanups
- support for AMD Family 10h processor IBS
- Pyhon Bindings for the library
- Cell updates
- proof-of-concept MacOS (Tiger) support
* Mon Feb 25 2008 schwab@suse.de
- Update to libpfm 3.3.
* Wed Feb 13 2008 schwab@suse.de
- Reduce build requirements.
* Wed Oct 24 2007 schwab@suse.de
- Update to libpfm 3.2 snapshot 071017.
- Split off devel package.
* Fri Apr 20 2007 schwab@suse.de
- Fix missing event labels [#266376].
* Sat Mar 31 2007 schwab@suse.de
- Add ncurses-devel to BuildRequires.
* Fri Mar 02 2007 schwab@suse.de
- Update to libpfm 3.2 snapshot 070206.
* Thu Jan 11 2007 schwab@suse.de
- Update to libpfm 3.2 snapshot 061205.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Apr 29 2005 schwab@suse.de
- Fix multiplex example [#79228].
* Thu Apr 28 2005 schwab@suse.de
- Fix code range restriction problem in pfm_dispatch_irange [#80487].
* Wed Apr 13 2005 schwab@suse.de
- Fix a bug that causes pfmon to hang [#77406].
* Mon Apr 11 2005 schwab@suse.de
- Update to libpfm 3.1 [#76249].
* Tue Dec 02 2003 schwab@suse.de
- Update to libpfm 3.0.
* Mon Jan 13 2003 schwab@suse.de
- Update to final version 2.0.
* Fri Dec 06 2002 schwab@suse.de
- Initial version 2.0, renamed from pfmon-devel.