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
This commit is contained in:
Tomáš Chvátal 2017-01-14 19:16:50 +00:00 committed by Git OBS Bridge
parent c59ff8a796
commit 0a07c02d64
2 changed files with 20 additions and 14 deletions

View File

@ -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 Tue Dec 27 10:37:25 UTC 2016 - adam.majer@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package libpfm # 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 # 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
@ -93,10 +93,12 @@ make \
%{python_config} \ %{python_config} \
LDCONFIG=/bin/true \ LDCONFIG=/bin/true \
install install
mkdir -p %{buildroot}/%{_bindir} install -D -p -m 0755 examples/check_events \
install -m 0755 examples/check_events %{buildroot}/%{_bindir}/check_events %{buildroot}/%{_bindir}/check_events
install -m 0755 examples/showevtinfo %{buildroot}/%{_bindir}/showevtinfo install -D -p -m 0755 examples/showevtinfo \
install -m 0755 perf_examples/evt2raw %{buildroot}/%{_bindir}/evt2raw %{buildroot}/%{_bindir}/showevtinfo
install -D -p -m 0755 perf_examples/evt2raw \
%{buildroot}/%{_bindir}/evt2raw
# 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
@ -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)' python -c 'import compileall; compileall.compile_dir("%{buildroot}%{python_sitearch}/", ddir="%{python_sitearch}/", force=1)'
%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}
%defattr(644,root,root,755) %defattr(-,root,root)
%doc README %doc README
%attr(755,root,root) %{_libdir}/lib*.so.* %{_libdir}/libpfm.so.*
%files devel %files devel
%defattr(644,root,root,755) %defattr(-,root,root)
%{_includedir}/* %{_includedir}/*
%{_mandir}/man3/* %{_mandir}/man3/*
%{_libdir}/lib*.so %{_libdir}/lib*.so
%attr(755,root,root) %{_bindir}/check_events %{_bindir}/check_events
%attr(755,root,root) %{_bindir}/showevtinfo %{_bindir}/showevtinfo
%attr(755,root,root) %{_bindir}/evt2raw %{_bindir}/evt2raw
%files devel-static %files devel-static
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/lib*.a %{_libdir}/lib*.a
%files -n python-%{name} %files -n python-%{name}
%defattr(644,root,root,755) %defattr(-,root,root)
%attr(755,root,root) %{python_sitearch}/* %{python_sitearch}/*
%changelog %changelog