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:
Dominique Leuenberger 2017-10-03 21:18:15 +00:00 committed by Git OBS Bridge
commit 2b1563f766
2 changed files with 16 additions and 5 deletions

View File

@ -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 Mon Sep 25 15:10:23 UTC 2017 - fcrozat@suse.com

View File

@ -72,7 +72,7 @@ warranty.
This is the package containing the userspace tools. This is the package containing the userspace tools.
%package devel %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++ Group: Development/Libraries/C and C++
Requires: binutils-devel Requires: binutils-devel
Requires: libopagent1 = %{version}-%{release} Requires: libopagent1 = %{version}-%{release}
@ -87,7 +87,7 @@ virtual machines.
%package -n libopagent1 %package -n libopagent1
Summary: System-Wide Profiler for Linux Systems Summary: System-Wide Profiler for Linux Systems
Group: Development/Libraries/C and C++ Group: System/Libraries
%description -n libopagent1 %description -n libopagent1
OProfile is a system-wide profiler for Linux systems, capable of 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 rm -f %{buildroot}%{_libdir}/oprofile/libopagent.*a
# Hardlink duplicate files automatically (from package fdupes): # Hardlink duplicate files automatically (from package fdupes):
# It doesn't save much, but it keeps rpmlint from breaking the package build. # It doesn't save much, but it keeps rpmlint from breaking the package build.
%fdupes %{buildroot} %fdupes %{buildroot}/%{_prefix}
%pre %pre
%{_sbindir}/groupadd -r oprofile 2>/dev/null || : getent group 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 || : %{_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 %post -n libopagent1 -p /sbin/ldconfig
%postun -n libopagent1 -p /sbin/ldconfig %postun -n libopagent1 -p /sbin/ldconfig