- 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

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libpfm?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal 2015-03-13 14:14:52 +00:00 committed by Git OBS Bridge
parent e0061d097c
commit 1b6e2ce868
4 changed files with 34 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,17 @@
-------------------------------------------------------------------
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
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 16 10:04:31 UTC 2015 - p.drouand@gmail.com Mon Feb 16 10:04:31 UTC 2015 - p.drouand@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package libpfm # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 %define vname libpfm4
Name: libpfm
Version: 4.6.0
Release: 0
Summary: Library to encode performance events Summary: Library to encode performance events
License: MIT License: MIT
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Url: http://perfmon2.sourceforge.net/ Url: http://perfmon2.sourceforge.net/
Source: http://downloads.sourceforge.net/project/perfmon2/libpfm4/%{name}-%{version}.tar.gz Source: http://downloads.sourceforge.net/project/perfmon2/libpfm4/%{name}-%{version}.tar.gz
Source1: baselibs.conf Source1: baselibs.conf
%if %{with_python}
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: swig BuildRequires: swig
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -64,55 +60,42 @@ This package provides development libraries and header files used to encode perf
%package devel-static %package devel-static
Summary: Static library version of libpfm Summary: Static library version of libpfm
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %name-devel = %version Requires: %{name}-devel = %{version}
%description devel-static %description devel-static
This package contains the static variant of libpfm. 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 Summary: Python bindings for libpfm and perf_event_open system call
Group: Development/Libraries/Python Group: Development/Libraries/Python
Requires: %{vname} = %{version} 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. This package provides python bindings for the libpfm4 package and the perf_event_open system call.
%endif
%prep %prep
%setup -q %setup -q
%build %build
%if %{with_python}
%global python_config CONFIG_PFMLIB_NOPYTHON=n %global python_config CONFIG_PFMLIB_NOPYTHON=n
%else
%global python_config CONFIG_PFMLIB_NOPYTHON=y
%endif
make %{?_smp_mflags} %{python_config} make %{?_smp_mflags} %{python_config}
%install %install
%global python_config CONFIG_PFMLIB_NOPYTHON=n PYTHON_PREFIX="%{buildroot}/%{py_prefix}"
%if %{with_python}
%global python_config CONFIG_PFMLIB_NOPYTHON=n PYTHON_PREFIX="%buildroot/%py_prefix"
%else
%global python_config CONFIG_PFMLIB_NOPYTHON=y
%endif
make \ make \
PREFIX="%buildroot/%_prefix" \ PREFIX="%{buildroot}/%{_prefix}" \
LIBDIR="%buildroot/%_libdir" \ LIBDIR="%{buildroot}/%{_libdir}" \
%{python_config} \ %{python_config} \
LDCONFIG=/bin/true \ LDCONFIG=/bin/true \
install install
%if %{with_python}
# temp hack to fix rpmlint file-contains-buildroot for *.pyc # temp hack to fix rpmlint file-contains-buildroot for *.pyc
# http://lists.opensuse.org/opensuse-factory/2012-01/msg00235.html # http://lists.opensuse.org/opensuse-factory/2012-01/msg00235.html
find "%{buildroot}/%{python_sitearch}/" -name '*.pyc' -delete find "%{buildroot}/%{python_sitearch}/" -name '*.pyc' -delete
%__python -c 'import compileall; compileall.compile_dir("%{buildroot}%{python_sitearch}/", ddir="%{python_sitearch}/", force=1)' python -c 'import compileall; compileall.compile_dir("%{buildroot}%{python_sitearch}/", ddir="%{python_sitearch}/", force=1)'
%endif
%post -n %{vname} -p /sbin/ldconfig %post -n %{vname} -p /sbin/ldconfig
%postun -n %{vname} -p /sbin/ldconfig %postun -n %{vname} -p /sbin/ldconfig
%files -n %{vname} %files -n %{vname}
@ -130,10 +113,8 @@ find "%{buildroot}/%{python_sitearch}/" -name '*.pyc' -delete
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/lib*.a %{_libdir}/lib*.a
%if %{with_python} %files -n python-%{name}
%files -n python-%name
%defattr(644,root,root,755) %defattr(644,root,root,755)
%attr(755,root,root) %{python_sitearch}/* %attr(755,root,root) %{python_sitearch}/*
%endif
%changelog %changelog