Accepting request 290775 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/290775
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpfm?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2015-03-16 08:42:26 +00:00 committed by Git OBS Bridge
commit 0d4c67d080
4 changed files with 36 additions and 39 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6b0f8900c8a05fdd45f02e0e96925132e402b630badf4684e391ecabc2d516b5
size 702272

3
libpfm-4.6.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5ab1e5b0472550f9037a8800834f6bc3b927690070f69fac0b67284b4b05fd5f
size 767447

View File

@ -1,3 +1,19 @@
-------------------------------------------------------------------
Fri Mar 13 14:13:09 UTC 2015 - tchvatal@suse.com
- Version bump to 4.6.0:
* Intel Broadwell (desktop core)
* Intel Haswell-EP (core)
* Applied Micro X-Gene processor
* ARM A53 processor
* Intel SNB, IVB, HSW event table updates
* IBM Power8 event table updates
* improved Intel x86 model detection
* bug fixes and many other improvements
- Cleanup with spec-cleaner
- Remove with_python switch that always evaluated as true
* If the need is really here it should be used as %bcond_without
-------------------------------------------------------------------
Mon Feb 16 10:04:31 UTC 2015 - p.drouand@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libpfm
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,22 +16,18 @@
#
%{!?with_python: %global with_python 1}
Name: libpfm
Version: 4.5.0
Release: 0
%define vname libpfm4
Name: libpfm
Version: 4.6.0
Release: 0
Summary: Library to encode performance events
License: MIT
Group: Development/Libraries/C and C++
Url: http://perfmon2.sourceforge.net/
Source: http://downloads.sourceforge.net/project/perfmon2/libpfm4/%{name}-%{version}.tar.gz
Source1: baselibs.conf
%if %{with_python}
BuildRequires: python-devel
BuildRequires: swig
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -43,11 +39,11 @@ Summary: Runtime library to encode performance events for use by perf too
Group: System/Libraries
%description -n %{vname}
This package provides a library that can be used to encode events into the
This package provides a library that can be used to encode events into the
format required by the operating systems performance monitoring subsystem.
The library does not make any performance monitoring system calls, it simply
provides a method to convert an event name, expressed as a string, to an event
encoding. The user of the library may use this event encoding in a subsequent
The library does not make any performance monitoring system calls, it simply
provides a method to convert an event name, expressed as a string, to an event
encoding. The user of the library may use this event encoding in a subsequent
system call.
The current libpfm4 provides support for the perf_events interface which was
@ -64,55 +60,42 @@ This package provides development libraries and header files used to encode perf
%package devel-static
Summary: Static library version of libpfm
Group: Development/Libraries/C and C++
Requires: %name-devel = %version
Requires: %{name}-devel = %{version}
%description devel-static
This package contains the static variant of libpfm.
%if %{with_python}
%package -n python-%name
%package -n python-%{name}
Summary: Python bindings for libpfm and perf_event_open system call
Group: Development/Libraries/Python
Requires: %{vname} = %{version}
%description -n python-%name
%description -n python-%{name}
This package provides python bindings for the libpfm4 package and the perf_event_open system call.
%endif
%prep
%setup -q
%build
%if %{with_python}
%global python_config CONFIG_PFMLIB_NOPYTHON=n
%else
%global python_config CONFIG_PFMLIB_NOPYTHON=y
%endif
make %{?_smp_mflags} %{python_config}
%install
%if %{with_python}
%global python_config CONFIG_PFMLIB_NOPYTHON=n PYTHON_PREFIX="%buildroot/%py_prefix"
%else
%global python_config CONFIG_PFMLIB_NOPYTHON=y
%endif
%global python_config CONFIG_PFMLIB_NOPYTHON=n PYTHON_PREFIX="%{buildroot}/%{py_prefix}"
make \
PREFIX="%buildroot/%_prefix" \
LIBDIR="%buildroot/%_libdir" \
PREFIX="%{buildroot}/%{_prefix}" \
LIBDIR="%{buildroot}/%{_libdir}" \
%{python_config} \
LDCONFIG=/bin/true \
install
%if %{with_python}
# temp hack to fix rpmlint file-contains-buildroot for *.pyc
# http://lists.opensuse.org/opensuse-factory/2012-01/msg00235.html
find "%{buildroot}/%{python_sitearch}/" -name '*.pyc' -delete
%__python -c 'import compileall; compileall.compile_dir("%{buildroot}%{python_sitearch}/", ddir="%{python_sitearch}/", force=1)'
%endif
python -c 'import compileall; compileall.compile_dir("%{buildroot}%{python_sitearch}/", ddir="%{python_sitearch}/", force=1)'
%post -n %{vname} -p /sbin/ldconfig
%postun -n %{vname} -p /sbin/ldconfig
%files -n %{vname}
@ -130,10 +113,8 @@ find "%{buildroot}/%{python_sitearch}/" -name '*.pyc' -delete
%defattr(-,root,root)
%{_libdir}/lib*.a
%if %{with_python}
%files -n python-%name
%files -n python-%{name}
%defattr(644,root,root,755)
%attr(755,root,root) %{python_sitearch}/*
%endif
%changelog