From 0a07c02d64c57ee806b50fa1c69688895d14d6e42a582a08692ff1b0a09583d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 14 Jan 2017 19:16:50 +0000 Subject: [PATCH] Accepting request 450326 from home:pluskalm:branches:devel:libraries:c_c++ - Cleanup spec file OBS-URL: https://build.opensuse.org/request/show/450326 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libpfm?expand=0&rev=23 --- libpfm.changes | 5 +++++ libpfm.spec | 29 +++++++++++++++-------------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/libpfm.changes b/libpfm.changes index 73533be..d336a2e 100644 --- a/libpfm.changes +++ b/libpfm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jan 14 14:53:05 UTC 2017 - mpluskal@suse.com + +- Cleanup spec file + ------------------------------------------------------------------- Tue Dec 27 10:37:25 UTC 2016 - adam.majer@suse.de diff --git a/libpfm.spec b/libpfm.spec index 8188a40..01fae4d 100644 --- a/libpfm.spec +++ b/libpfm.spec @@ -1,7 +1,7 @@ # # spec file for package libpfm # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -93,10 +93,12 @@ make \ %{python_config} \ LDCONFIG=/bin/true \ install -mkdir -p %{buildroot}/%{_bindir} -install -m 0755 examples/check_events %{buildroot}/%{_bindir}/check_events -install -m 0755 examples/showevtinfo %{buildroot}/%{_bindir}/showevtinfo -install -m 0755 perf_examples/evt2raw %{buildroot}/%{_bindir}/evt2raw +install -D -p -m 0755 examples/check_events \ + %{buildroot}/%{_bindir}/check_events +install -D -p -m 0755 examples/showevtinfo \ + %{buildroot}/%{_bindir}/showevtinfo +install -D -p -m 0755 perf_examples/evt2raw \ + %{buildroot}/%{_bindir}/evt2raw # temp hack to fix rpmlint file-contains-buildroot for *.pyc # http://lists.opensuse.org/opensuse-factory/2012-01/msg00235.html @@ -104,29 +106,28 @@ find "%{buildroot}/%{python_sitearch}/" -name '*.pyc' -delete 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} -%defattr(644,root,root,755) +%defattr(-,root,root) %doc README -%attr(755,root,root) %{_libdir}/lib*.so.* +%{_libdir}/libpfm.so.* %files devel -%defattr(644,root,root,755) +%defattr(-,root,root) %{_includedir}/* %{_mandir}/man3/* %{_libdir}/lib*.so -%attr(755,root,root) %{_bindir}/check_events -%attr(755,root,root) %{_bindir}/showevtinfo -%attr(755,root,root) %{_bindir}/evt2raw +%{_bindir}/check_events +%{_bindir}/showevtinfo +%{_bindir}/evt2raw %files devel-static %defattr(-,root,root) %{_libdir}/lib*.a %files -n python-%{name} -%defattr(644,root,root,755) -%attr(755,root,root) %{python_sitearch}/* +%defattr(-,root,root) +%{python_sitearch}/* %changelog