EPELize spec for rhel5
This commit is contained in:
parent
85bcb54554
commit
4764fd9dc1
12
dovecot.spec
12
dovecot.spec
@ -37,7 +37,6 @@ BuildRequires: postgresql-devel
|
|||||||
BuildRequires: mysql-devel
|
BuildRequires: mysql-devel
|
||||||
BuildRequires: openldap-devel
|
BuildRequires: openldap-devel
|
||||||
BuildRequires: krb5-devel
|
BuildRequires: krb5-devel
|
||||||
BuildRequires: libcurl-devel expat-devel
|
|
||||||
|
|
||||||
# gettext-devel is needed for running autoconf because of the
|
# gettext-devel is needed for running autoconf because of the
|
||||||
# presence of AM_ICONV
|
# presence of AM_ICONV
|
||||||
@ -55,6 +54,13 @@ Requires(postun): initscripts
|
|||||||
|
|
||||||
%define ssldir %{_sysconfdir}/pki/%{name}
|
%define ssldir %{_sysconfdir}/pki/%{name}
|
||||||
|
|
||||||
|
%if %{?fedora}00%{?rhel} < 6
|
||||||
|
%define _initddir %{_initrddir}
|
||||||
|
BuildRequires: curl-devel expat-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: libcurl-devel expat-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Dovecot is an IMAP server for Linux/UNIX-like systems, written with security
|
Dovecot is an IMAP server for Linux/UNIX-like systems, written with security
|
||||||
primarily in mind. It also contains a small POP3 server. It supports mail
|
primarily in mind. It also contains a small POP3 server. It supports mail
|
||||||
@ -154,6 +160,10 @@ mv $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version} %{_builddir}/%{name}-%{version}
|
|||||||
|
|
||||||
install -p -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initddir}/dovecot
|
install -p -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_initddir}/dovecot
|
||||||
|
|
||||||
|
%if %{?fedora}00%{?rhel} < 6
|
||||||
|
sed -i 's|password-auth|system-auth|' %{SOURCE2}
|
||||||
|
%endif
|
||||||
|
|
||||||
install -p -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/dovecot
|
install -p -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/dovecot
|
||||||
|
|
||||||
install -p -D -m 600 %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/dovecot
|
install -p -D -m 600 %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/dovecot
|
||||||
|
Loading…
Reference in New Issue
Block a user