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

View File

@ -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