Hello community,

here is the log from the commit of package dovecot23 for openSUSE:Factory 
checked in at 2018-01-10 23:35:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dovecot23 (Old)
 and      /work/SRC/openSUSE:Factory/.dovecot23.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dovecot23"

Wed Jan 10 23:35:42 2018 rev:2 rq:562901 version:2.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/dovecot23/dovecot23.changes      2018-01-09 
14:51:38.644159733 +0100
+++ /work/SRC/openSUSE:Factory/.dovecot23.new/dovecot23.changes 2018-01-10 
23:35:43.722444855 +0100
@@ -1,0 +2,9 @@
+Mon Dec 25 22:39:53 UTC 2017 - [email protected]
+
+- Replace %__-type macro indirections.
+  Replace xargs rm by built in -delete of find(1).
+- Run ldconfig directly via %post -p.
+- Check for users in %pre before creating them, and do not suppress
+  errors about it.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dovecot23.spec ++++++
--- /var/tmp/diff_new_pack.nnlw9s/_old  2018-01-10 23:35:44.502408258 +0100
+++ /var/tmp/diff_new_pack.nnlw9s/_new  2018-01-10 23:35:44.502408258 +0100
@@ -316,9 +316,9 @@
 pushd %{dovecot_pigeonhole_source_dir}
 %patch2 -p1
 popd
-%{__gzip} -9v ChangeLog
+gzip -9v ChangeLog
 # Fix plugins dir.
-%{__sed} -i 's|#mail_plugin_dir = /usr/lib/dovecot|mail_plugin_dir = 
%{_libdir}/dovecot/modules|' doc/example-config/conf.d/10-mail.conf
+sed -i 's|#mail_plugin_dir = /usr/lib/dovecot|mail_plugin_dir = 
%{_libdir}/dovecot/modules|' doc/example-config/conf.d/10-mail.conf
 
 %build
 export CFLAGS="%{optflags}"
@@ -389,11 +389,11 @@
 %makeinstall -C %{dovecot_pigeonhole_source_dir} 
sieve_docdir=%{dovecot_pigeonhole_docdir}
 
 # clean up unused files, as much as I would like to use -delete ... the old 
find on sles9 doesnt support it
-find %{buildroot}%{_libdir}/%{pkg_name}/ -type f -name \*.la -print0 | xargs 
-r0 rm -fv
-find %{buildroot}%{_libdir}/%{pkg_name}/ -type f -name \*.a  -print0 | xargs 
-r0 rm -fv
+find %{buildroot}%{_libdir}/%{pkg_name}/ -type f \
+       '(' -name \*.la -o -name \*.a ')' -print -delete
 
 # create /var directories
-%{__install} -m 0755 -Dd \
+install -m 0755 -Dd \
   %{buildroot}%{_var}/run/%{pkg_name}/login/ \
   %{buildroot}%{_var}/lib/%{pkg_name}/
 
@@ -414,7 +414,7 @@
 popd
 
 # additional docs for the main package
-%{__install} -m 0644 \
+install -m 0644 \
        AUTHORS ChangeLog* COPYING* NEWS TODO README* \
 %if %{with solr}
     doc/*.xml \
@@ -422,9 +422,9 @@
     %{buildroot}%{_docdir}/%{pkg_name}/
 
 # install sieve docs
-%{__install} -m 0755 -Dd %{buildroot}%{dovecot_pigeonhole_docdir}
+install -m 0755 -Dd %{buildroot}%{dovecot_pigeonhole_docdir}
 pushd %{dovecot_pigeonhole_source_dir}
-%__sed -i 's/\r$//' doc/rfc/*
+sed -i 's/\r$//' doc/rfc/*
 cp -av AUTHORS COPYING* INSTALL NEWS README TODO \
        examples/ doc/rfc/ doc/devel \
   %{buildroot}%{dovecot_pigeonhole_docdir}/
@@ -446,9 +446,13 @@
 
 %pre
 test -n "$FIRST_ARG" || FIRST_ARG=$1
-/usr/sbin/groupadd -r %{pkg_name} >/dev/null 2>&1 || :
-/usr/sbin/useradd -g %{pkg_name} -s /bin/false -r -c "User for Dovecot imapd" 
-d %{_var}/run/%{pkg_name} %{pkg_name} >/dev/null 2>&1 || :
-/usr/sbin/useradd -g %{pkg_name} -s /bin/false -r -c "User for Dovecot login" 
-d %{_var}/run/%{pkg_name} dovenull >/dev/null 2>&1 || :
+getent group %{pkg_name} >/dev/null || /usr/sbin/groupadd -r %{pkg_name}
+getent passwd %{pkg_name} >/dev/null || \
+       /usr/sbin/useradd -g %{pkg_name} -s /bin/false -r \
+       -c "User for Dovecot imapd" -d %{_var}/run/%{pkg_name} %{pkg_name}
+getent passwd dovenull >/dev/null || \
+       /usr/sbin/useradd -g %{pkg_name} -s /bin/false -r \
+       -c "User for Dovecot login" -d %{_var}/run/%{pkg_name} dovenull
 # do not let dovecot run during upgrade rhbz#134325
 if [ "$FIRST_ARG" -ge "1" ]; then
   rm -f %restart_flag
@@ -469,8 +473,7 @@
   %endif
 fi
 
-%post
-/sbin/ldconfig
+%post -p /sbin/ldconfig
 
 %postun
 test -n "$FIRST_ARG" || FIRST_ARG=$1


Reply via email to