Accepting request 530596 from devel:tools
1 OBS-URL: https://build.opensuse.org/request/show/530596 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/oprofile?expand=0&rev=49
This commit is contained in:
commit
2b1563f766
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 2 21:39:00 UTC 2017 - jengelh@inai.de
|
||||
|
||||
- Rectify RPM groups. Update summary of -devel subpackage.
|
||||
Do not ignore errors from useradd/groupadd.
|
||||
Avoid running fdupes across partitions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 25 15:10:23 UTC 2017 - fcrozat@suse.com
|
||||
|
||||
|
@ -72,7 +72,7 @@ warranty.
|
||||
This is the package containing the userspace tools.
|
||||
|
||||
%package devel
|
||||
Summary: System-Wide Profiler for Linux Systems
|
||||
Summary: Development files for oprofile, a system-wide profiler for Linux
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: binutils-devel
|
||||
Requires: libopagent1 = %{version}-%{release}
|
||||
@ -87,7 +87,7 @@ virtual machines.
|
||||
|
||||
%package -n libopagent1
|
||||
Summary: System-Wide Profiler for Linux Systems
|
||||
Group: Development/Libraries/C and C++
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libopagent1
|
||||
OProfile is a system-wide profiler for Linux systems, capable of
|
||||
@ -127,11 +127,15 @@ make DESTDIR=%{buildroot} htmldir=%{_docdir}/oprofile install
|
||||
rm -f %{buildroot}%{_libdir}/oprofile/libopagent.*a
|
||||
# Hardlink duplicate files automatically (from package fdupes):
|
||||
# It doesn't save much, but it keeps rpmlint from breaking the package build.
|
||||
%fdupes %{buildroot}
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
|
||||
%pre
|
||||
%{_sbindir}/groupadd -r oprofile 2>/dev/null || :
|
||||
%{_sbindir}/useradd -r -g oprofile -d %{_localstatedir}/lib/empty -s /bin/false -c "Special user account to be used by OProfile" oprofile 2>/dev/null || :
|
||||
getent group oprofile >/dev/null || \
|
||||
%{_sbindir}/groupadd -r oprofile 2>/dev/null
|
||||
getent passwd oprofile >/dev/null || \
|
||||
%{_sbindir}/useradd -r -g oprofile -d %{_localstatedir}/lib/empty \
|
||||
-s /bin/false -c "Special user account to be used by OProfile" \
|
||||
oprofile 2>/dev/null
|
||||
|
||||
%post -n libopagent1 -p /sbin/ldconfig
|
||||
%postun -n libopagent1 -p /sbin/ldconfig
|
||||
|
Loading…
Reference in New Issue
Block a user