Accepting request 458874 from home:kukuk:branches:server:mail

- Fix requires:
  - shadow is needed for postfix-mysql pre-install section
  - insserv is not needed if systemd is used

OBS-URL: https://build.opensuse.org/request/show/458874
OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=252
This commit is contained in:
Peter Varkoly 2017-02-20 10:00:51 +00:00 committed by Git OBS Bridge
parent 7ad041c2f4
commit b6f400e587
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Feb 18 14:01:35 UTC 2017 - kukuk@suse.com
- Fix requires:
- shadow is needed for postfix-mysql pre-install section
- insserv is not needed if systemd is used
-------------------------------------------------------------------
Sat Jan 21 23:27:34 UTC 2017 - chris@computersalat.de

View File

@ -94,7 +94,6 @@ BuildRequires: pkgconfig
BuildRequires: postgresql-devel
Requires: iproute2
Requires(pre): permissions
Requires(pre): %insserv_prereq
Requires(pre): %fillup_prereq
Provides: smtp_daemon
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -110,7 +109,7 @@ BuildRequires: fdupes
BuildRequires: systemd
%{?systemd_requires}
%else
Requires(pre): %insserv_prereq %fillup_prereq
Requires(pre): %insserv_prereq
Requires(pre): %{_bindir}/getent
Requires(pre): pwdutils
Requires(pre): /bin/awk
@ -149,6 +148,7 @@ This package contains the documentation for %{name}
Summary: Postfix plugin to support MySQL maps
Group: Productivity/Networking/Email/Servers
Requires(pre): %{name} = %{version}
Requires(pre): shadow
%description mysql
Postfix plugin to support MySQL maps. This library will be loaded by
@ -517,10 +517,11 @@ fi
# ---------------------------------------------------------------------------
%postun
%restart_on_update %{name}
%insserv_cleanup
%if 0%{?suse_version} > 1210
%service_del_postun %{name}.service
%else
%restart_on_update %{name}
%insserv_cleanup
%endif
/sbin/ldconfig