Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[b86c8c]: libpfm4.spec Maximize Restore History

Download this file

libpfm4.spec    79 lines (60 with data), 2.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
%define python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
%define python_prefix %(python -c "import sys; print sys.prefix")
Name: libpfm
Version: 4.1.0
Release: 0%{?dist}
Summary: Library to encode performance events for use by perf tool
Group: System Environment/Libraries
License: MIT
URL: http://perfmon2.sourceforge.net/
Source0: %{name}-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
libpfm4 is a library to help encode events for use with operating system
kernels performance monitoring interfaces. The current version provides support
for the perf_events interface available in upstream Linux kernels since v2.6.31.
%package devel
Summary: Development library to encode performance events for perf_events based tools
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
Development library and header files to create performance monitoring applications for the
perf_events interface.
%package python
Summary: Python bindings for libpfm4 and perf_event_open system call.
Group: Development/Languages
Requires: %{name} = %{version}
%description python
Python bindings for libpfm4 and perf_event_open system call.
%prep
%setup -q
%build
make install_prefix=$RPM_BUILD_ROOT%{_prefix}
%install
rm -rf $RPM_BUILD_ROOT
make \
PREFIX=$RPM_BUILD_ROOT%{_prefix} \
LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
PYTHON_PREFIX=$RPM_BUILD_ROOT/%{python_prefix} \
install
%clean
rm -fr $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc README
%attr(755,root,root) %{_libdir}/lib*.so*
%files devel
%defattr(644,root,root,755)
%{_includedir}/*
%{_mandir}/*
%{_libdir}/lib*.a
%files python
%defattr(644,root,root,755)
%attr(755,root,root) %{python_sitearch}/*
%changelog
* Wed Jan 12 2011 Arun Sharma <asharma@fb.com> 1.0
Initial revision