- Replace >= 1230 by > 1220 as this type of condition is used anywhere else in
the exim spec file. - Remove a trailing while space from the spec file. OBS-URL: https://build.opensuse.org/package/show/server:mail/exim?expand=0&rev=131
This commit is contained in:
parent
47d42dea31
commit
bfff3f2a71
@ -1,7 +1,7 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 27 17:35:43 UTC 2013 - p.drouand@gmail.com
|
||||
|
||||
- Add systemd support for openSUSE >= 12.3
|
||||
- Add systemd support for openSUSE > 12.2
|
||||
- Remove some obsolete conditionnal macros
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
16
exim.spec
16
exim.spec
@ -38,7 +38,7 @@ Conflicts: sendmail sendmail-tls postfix
|
||||
Provides: smtp_daemon
|
||||
%if %{?suse_version:%suse_version}%{?!suse_version:0} > 800
|
||||
Requires: logrotate
|
||||
%if 0%{?suse_version} >=1230
|
||||
%if 0%{?suse_version} > 1220
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
%{?systemd_requires}
|
||||
%else
|
||||
@ -248,7 +248,7 @@ rm -f doc/*.{orig,txt~}
|
||||
make
|
||||
|
||||
%install
|
||||
%if 0%{?suse_version} >=1230
|
||||
%if 0%{?suse_version} > 1220
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
|
||||
%else
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
||||
@ -266,7 +266,7 @@ make inst_dest=$RPM_BUILD_ROOT/usr/sbin \
|
||||
INSTALL_ARG=-no_chown install
|
||||
mv $RPM_BUILD_ROOT/usr/sbin/exim-%{version}* $RPM_BUILD_ROOT/usr/sbin/exim
|
||||
mv $RPM_BUILD_ROOT/etc/exim/exim.conf src/configure.default # with all substitutions done
|
||||
%if 0%{?suse_version} >=1230
|
||||
%if 0%{?suse_version} > 1220
|
||||
install -m 755 %{S:32} $RPM_BUILD_ROOT/%{_unitdir}/exim.service
|
||||
%else
|
||||
install -m 755 %{S:11} $RPM_BUILD_ROOT/etc/init.d/exim
|
||||
@ -282,7 +282,7 @@ do
|
||||
ln -sf ../sbin/exim $RPM_BUILD_ROOT$i
|
||||
done
|
||||
ln -sf exim $RPM_BUILD_ROOT/usr/sbin/sendmail
|
||||
%if 0%{?suse_version} >=1230
|
||||
%if 0%{?suse_version} > 1220
|
||||
ln -sv ../../%{_unitdir}/exim.service $RPM_BUILD_ROOT/usr/sbin/rcexim
|
||||
%else
|
||||
ln -sv ../../etc/init.d/exim $RPM_BUILD_ROOT/usr/sbin/rcexim
|
||||
@ -350,7 +350,7 @@ fi
|
||||
for i in var/log/exim/main.log var/log/exim/panic.log var/log/exim/reject.log; do
|
||||
if ! test -e $i; then touch $i; chown mail:mail $i; chmod 640 $i ; fi
|
||||
done
|
||||
%if 0%{?suse_version} >=1230
|
||||
%if 0%{?suse_version} > 1220
|
||||
%{fillup_only}
|
||||
%service_add_post exim.service
|
||||
%else
|
||||
@ -360,7 +360,7 @@ exit 0
|
||||
%if %{?suse_version:%suse_version}
|
||||
|
||||
%preun
|
||||
%if 0%{?suse_version} >=1230
|
||||
%if 0%{?suse_version} > 1220
|
||||
%service_del_preun exim.service
|
||||
%else
|
||||
%stop_on_removal exim
|
||||
@ -369,7 +369,7 @@ exit 0
|
||||
|
||||
%postun
|
||||
%if %{?suse_version:%suse_version}
|
||||
%if 0%{?suse_version} >=1230
|
||||
%if 0%{?suse_version} > 1220
|
||||
%service_del_postun exim.service
|
||||
%else
|
||||
%restart_on_update exim
|
||||
@ -398,7 +398,7 @@ exit 0
|
||||
/usr/sbin/exiqsumm
|
||||
/usr/sbin/exiwhat
|
||||
%dir /etc/exim
|
||||
%if 0%{?suse_version} >=1230
|
||||
%if 0%{?suse_version} > 1220
|
||||
%{_unitdir}/exim.service
|
||||
%else
|
||||
%config /etc/init.d/exim
|
||||
|
Loading…
x
Reference in New Issue
Block a user