Fixed build on rhel < 9

This commit is contained in:
Jaroslav Škarvada 2021-07-02 20:47:50 +02:00
parent 9f3ce2a265
commit 10049534ce

View File

@ -49,7 +49,7 @@
Name: postfix Name: postfix
Summary: Postfix Mail Transport Agent Summary: Postfix Mail Transport Agent
Version: 3.6.1 Version: 3.6.1
Release: 1%{?dist} Release: 2%{?dist}
Epoch: 2 Epoch: 2
URL: http://www.postfix.org URL: http://www.postfix.org
License: (IBM and GPLv2+) or (EPL-2.0 and GPLv2+) License: (IBM and GPLv2+) or (EPL-2.0 and GPLv2+)
@ -361,6 +361,12 @@ make non-interactive-package \
sample_directory=%{postfix_sample_dir} \ sample_directory=%{postfix_sample_dir} \
readme_directory=%{postfix_readme_dir} || exit 1 readme_directory=%{postfix_readme_dir} || exit 1
%if 0%{?fedora} < 23 && 0%{?rhel} < 9
# This installs into the /etc/rc.d/init.d directory
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
install -c %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/postfix
%endif
# Systemd # Systemd
mkdir -p %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir} install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
@ -785,6 +791,9 @@ fi
%endif %endif
%changelog %changelog
* Fri Jul 2 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2:3.6.1-2
- Fixed build on rhel < 9
* Mon Jun 14 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2:3.6.1-1 * Mon Jun 14 2021 Jaroslav Škarvada <jskarvad@redhat.com> - 2:3.6.1-1
- New version - New version
Resolves: rhbz#1971363 Resolves: rhbz#1971363