libpfm/libpfm.spec
2006-05-05 14:35:15 +00:00

95 lines
2.7 KiB
RPMSpec

%define DATE 060421
%define libpfm_release 2
Summary: a performance monitoring library for Linux/ia64
Name: libpfm
Version: 3.2
Release: 0.%{DATE}.%{libpfm_release}
License: MIT-style
Group: Development/Libraries
ExclusiveArch: ia64 %{ix86} x86_64
ExclusiveOS: linux
AutoReqProv: no
Source: http://prdownloads.sourceforge.net/perfmon2/%{name}-%{version}-%{DATE}.tar.gz
Patch1: libpfm-compat.patch
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This package contains a library to develop performance monitoring
applications using the IA-64 Performance Monitor Unit (PMU).
This version supports both the Itanium and Itanium 2 processors.
%package devel
Summary: the Linux/ia64 performance library (libpfm) development files.
Group: Development/Libraries
%description devel
The performance monitoring library (libpfm) is used to develop
performance monitoring applications using the IA-64 Performance Monitoring
Unit (PMU). This package provides the files necessary for development of
applications. This version supports both the Itanium and Itanium 2 processors.
It requires a kernel perfmon-2.x subsystem.
%prep
%setup -q -n %{name}-%{version}-%{DATE}
%patch1 -p1 -b .compat
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_prefix}
make install CFLAGS="$RPM_OPT_FLAGS" \
DESTDIR=%{buildroot}/%{_prefix}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README
%attr(755,root,root) %{_prefix}/lib/libpfm.so.%{PACKAGE_VERSION}.0
%files devel
%defattr(-,root,root)
%doc README
%doc examples/*
%{_prefix}/lib/libpfm.a
%{_prefix}/include/*
%{_mandir}/man3/*
%changelog
* Fri May 05 2006 Will Cohen <wcohen@redhat.com>
- make sure that perfmon_compat.h installed for ia64.
* Thu May 04 2006 Will Cohen <wcohen@redhat.com>
- Update to libpfm-3.2-060421.
* Thu Feb 09 2006 Florian La Roche <laroche@redhat.com>
- remove empty scripts
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 3.0-4.2
- rebuilt for new gcc4.1 snapshot and glibc changes
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
- rebuilt
* Mon Mar 14 2005 Will Cohen <wcohen@redhat.com>
- Bump rebuild with gcc4.
* Tue Oct 26 2004 Will Cohen <wcohen@redhat.com>
- Correct ownership of files.
* Mon Sep 27 2004 Will Cohen <wcohen@redhat.com>
- Correct spec file for build system.
* Mon Dec 1 2003 Stephane Eranian <eranian@hpl.hp.com>
- release 3.0 final version
* Thu Jan 02 2003 Stephane Eranian <eranian@hpl.hp.com>
- release final 2.0 version
* Fri Dec 20 2002 Stephane Eranian <eranian@hpl.hp.com>
- final 2.0 release
* Thu Dec 05 2002 Stephane Eranian <eranian@hpl.hp.com>
- initial release of the library as a standalone package
- see ChangeLog for actual log