From 1b6e2ce8681b21ac7a52c0c753e5fcec9c488ed3c215153262a4e30a25b4adb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 13 Mar 2015 14:14:52 +0000 Subject: [PATCH 1/2] - 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 --- libpfm-4.5.0.tar.gz | 3 --- libpfm-4.6.0.tar.gz | 3 +++ libpfm.changes | 14 ++++++++++++ libpfm.spec | 53 +++++++++++++++------------------------------ 4 files changed, 34 insertions(+), 39 deletions(-) delete mode 100644 libpfm-4.5.0.tar.gz create mode 100644 libpfm-4.6.0.tar.gz diff --git a/libpfm-4.5.0.tar.gz b/libpfm-4.5.0.tar.gz deleted file mode 100644 index 1a41997..0000000 --- a/libpfm-4.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6b0f8900c8a05fdd45f02e0e96925132e402b630badf4684e391ecabc2d516b5 -size 702272 diff --git a/libpfm-4.6.0.tar.gz b/libpfm-4.6.0.tar.gz new file mode 100644 index 0000000..73418dd --- /dev/null +++ b/libpfm-4.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ab1e5b0472550f9037a8800834f6bc3b927690070f69fac0b67284b4b05fd5f +size 767447 diff --git a/libpfm.changes b/libpfm.changes index b712048..d5254fc 100644 --- a/libpfm.changes +++ b/libpfm.changes @@ -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 diff --git a/libpfm.spec b/libpfm.spec index 96e42f6..fb72cdf 100644 --- a/libpfm.spec +++ b/libpfm.spec @@ -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 From aaf8c63728fb418ddce46e11fdb596442d128054fd4c5b3d973f1f50be2bfd4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 14 Mar 2015 10:57:38 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libpfm?expand=0&rev=12 --- libpfm.changes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libpfm.changes b/libpfm.changes index d5254fc..54fcc7c 100644 --- a/libpfm.changes +++ b/libpfm.changes @@ -11,6 +11,8 @@ Fri Mar 13 14:13:09 UTC 2015 - tchvatal@suse.com * 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