- used noreplace for sasl config
- used ghost instead of explicit provides - deffattr changed to (-,root,root,-)
This commit is contained in:
parent
61b0fa11e5
commit
aaebb5c68c
@ -14,7 +14,7 @@
|
|||||||
Summary: A widely used Mail Transport Agent (MTA)
|
Summary: A widely used Mail Transport Agent (MTA)
|
||||||
Name: sendmail
|
Name: sendmail
|
||||||
Version: 8.14.4
|
Version: 8.14.4
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: Sendmail
|
License: Sendmail
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://www.sendmail.org/
|
URL: http://www.sendmail.org/
|
||||||
@ -57,11 +57,6 @@ BuildRequires: groff
|
|||||||
BuildRequires: ghostscript
|
BuildRequires: ghostscript
|
||||||
BuildRequires: m4
|
BuildRequires: m4
|
||||||
Provides: MTA smtpdaemon server(smtp)
|
Provides: MTA smtpdaemon server(smtp)
|
||||||
Provides: %{_sbindir}/sendmail %{_bindir}/mailq %{_bindir}/newaliases
|
|
||||||
Provides: %{_bindir}/rmail /usr/lib/sendmail
|
|
||||||
Provides: %{_sysconfdir}/pam.d/smtp
|
|
||||||
Provides: %{_mandir}/man1/mailq.1.gz %{_mandir}/man1/newaliases.1.gz
|
|
||||||
Provides: %{_mandir}/man5/aliases.5.gz %{_mandir}/man8/sendmail.8.gz
|
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
Requires(preun): %{_sbindir}/alternatives chkconfig
|
Requires(preun): %{_sbindir}/alternatives chkconfig
|
||||||
Requires(post): %{_sbindir}/alternatives chkconfig coreutils
|
Requires(post): %{_sbindir}/alternatives chkconfig coreutils
|
||||||
@ -392,13 +387,21 @@ sed -i -e 's:%{maildir}/statistics:%{stdir}/statistics:' %{buildroot}%{_mandir}/
|
|||||||
|
|
||||||
# rename files for alternative usage
|
# rename files for alternative usage
|
||||||
mv %{buildroot}%{_sbindir}/sendmail %{buildroot}%{_sbindir}/sendmail.sendmail
|
mv %{buildroot}%{_sbindir}/sendmail %{buildroot}%{_sbindir}/sendmail.sendmail
|
||||||
|
touch %{buildroot}%{_sbindir}/sendmail
|
||||||
for i in mailq newaliases rmail; do
|
for i in mailq newaliases rmail; do
|
||||||
mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i.sendmail
|
mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/$i.sendmail
|
||||||
|
touch %{buildroot}%{_bindir}/$i
|
||||||
done
|
done
|
||||||
mv %{buildroot}%{_mandir}/man1/mailq.1 %{buildroot}%{_mandir}/man1/mailq.sendmail.1
|
mv %{buildroot}%{_mandir}/man1/mailq.1 %{buildroot}%{_mandir}/man1/mailq.sendmail.1
|
||||||
|
touch %{buildroot}%{_mandir}/man1/mailq.1
|
||||||
mv %{buildroot}%{_mandir}/man1/newaliases.1 %{buildroot}%{_mandir}/man1/newaliases.sendmail.1
|
mv %{buildroot}%{_mandir}/man1/newaliases.1 %{buildroot}%{_mandir}/man1/newaliases.sendmail.1
|
||||||
|
touch %{buildroot}%{_mandir}/man1/newaliases.1
|
||||||
mv %{buildroot}%{_mandir}/man5/aliases.5 %{buildroot}%{_mandir}/man5/aliases.sendmail.5
|
mv %{buildroot}%{_mandir}/man5/aliases.5 %{buildroot}%{_mandir}/man5/aliases.sendmail.5
|
||||||
|
touch %{buildroot}%{_mandir}/man5/aliases.5
|
||||||
mv %{buildroot}%{_mandir}/man8/sendmail.8 %{buildroot}%{_mandir}/man8/sendmail.sendmail.8
|
mv %{buildroot}%{_mandir}/man8/sendmail.8 %{buildroot}%{_mandir}/man8/sendmail.sendmail.8
|
||||||
|
touch %{buildroot}%{_mandir}/man8/sendmail.8
|
||||||
|
touch %{buildroot}/usr/lib/sendmail
|
||||||
|
touch %{buildroot}%{_sysconfdir}/pam.d/smtp
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -457,7 +460,7 @@ exit 0
|
|||||||
%postun milter -p /sbin/ldconfig
|
%postun milter -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%dir %{_docdir}/sendmail-%{version}
|
%dir %{_docdir}/sendmail-%{version}
|
||||||
%doc %{_docdir}/sendmail-%{version}/FAQ
|
%doc %{_docdir}/sendmail-%{version}/FAQ
|
||||||
%doc %{_docdir}/sendmail-%{version}/KNOWNBUGS
|
%doc %{_docdir}/sendmail-%{version}/KNOWNBUGS
|
||||||
@ -487,6 +490,19 @@ exit 0
|
|||||||
%{_mandir}/man1/newaliases.sendmail.1.gz
|
%{_mandir}/man1/newaliases.sendmail.1.gz
|
||||||
%{_mandir}/man1/mailq.sendmail.1.gz
|
%{_mandir}/man1/mailq.sendmail.1.gz
|
||||||
|
|
||||||
|
# dummy attributes for rpmlint
|
||||||
|
%ghost %attr(0755,-,-) %{_sbindir}/sendmail
|
||||||
|
%ghost %attr(0755,-,-) %{_bindir}/mailq
|
||||||
|
%ghost %attr(0755,-,-) %{_bindir}/newaliases
|
||||||
|
%ghost %attr(0755,-,-) %{_bindir}/rmail
|
||||||
|
%ghost %attr(0755,-,-) /usr/lib/sendmail
|
||||||
|
|
||||||
|
%ghost %{_sysconfdir}/pam.d/smtp
|
||||||
|
%ghost %{_mandir}/man8/sendmail.8.gz
|
||||||
|
%ghost %{_mandir}/man1/mailq.1.gz
|
||||||
|
%ghost %{_mandir}/man1/newaliases.1.gz
|
||||||
|
%ghost %{_mandir}/man5/aliases.5.gz
|
||||||
|
|
||||||
%dir %{stdir}
|
%dir %{stdir}
|
||||||
%dir %{_sysconfdir}/smrsh
|
%dir %{_sysconfdir}/smrsh
|
||||||
%dir %{maildir}
|
%dir %{maildir}
|
||||||
@ -519,10 +535,10 @@ exit 0
|
|||||||
%config(noreplace) %{_sysconfdir}/pam.d/smtp.sendmail
|
%config(noreplace) %{_sysconfdir}/pam.d/smtp.sendmail
|
||||||
%{_sysconfdir}/NetworkManager/dispatcher.d/10-sendmail
|
%{_sysconfdir}/NetworkManager/dispatcher.d/10-sendmail
|
||||||
|
|
||||||
%config %{_libdir}/sasl*/Sendmail*.conf
|
%config(noreplace) %{_libdir}/sasl*/Sendmail*.conf
|
||||||
|
|
||||||
%files cf
|
%files cf
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc %{sendmailcf}/README
|
%doc %{sendmailcf}/README
|
||||||
%dir %{sendmailcf}
|
%dir %{sendmailcf}
|
||||||
%{sendmailcf}/cf
|
%{sendmailcf}/cf
|
||||||
@ -537,19 +553,19 @@ exit 0
|
|||||||
%{sendmailcf}/siteconfig
|
%{sendmailcf}/siteconfig
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc libmilter/docs/*
|
%doc libmilter/docs/*
|
||||||
%dir %{_includedir}/libmilter
|
%dir %{_includedir}/libmilter
|
||||||
%{_includedir}/libmilter/*.h
|
%{_includedir}/libmilter/*.h
|
||||||
%{_libdir}/libmilter.so
|
%{_libdir}/libmilter.so
|
||||||
|
|
||||||
%files milter
|
%files milter
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/libmilter.so.[0-9].[0-9]
|
%{_libdir}/libmilter.so.[0-9].[0-9]
|
||||||
%{_libdir}/libmilter.so.[0-9].[0-9].[0-9]
|
%{_libdir}/libmilter.so.[0-9].[0-9].[0-9]
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%{_docdir}/sendmail-%{version}/README.cf
|
%{_docdir}/sendmail-%{version}/README.cf
|
||||||
%{_docdir}/sendmail-%{version}/README.libmilter
|
%{_docdir}/sendmail-%{version}/README.libmilter
|
||||||
%{_docdir}/sendmail-%{version}/README.redhat
|
%{_docdir}/sendmail-%{version}/README.redhat
|
||||||
@ -562,6 +578,11 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 02 2010 Jaroslav Škarvada <jskarvad@redhat.com> - 8.14.4-4
|
||||||
|
- used noreplace for sasl config
|
||||||
|
- used ghost instead of explicit provides
|
||||||
|
- deffattr changed to (-,root,root,-)
|
||||||
|
|
||||||
* Mon Feb 15 2010 Jaroslav Škarvada <jskarvad@redhat.com> - 8.14.4-3
|
* Mon Feb 15 2010 Jaroslav Škarvada <jskarvad@redhat.com> - 8.14.4-3
|
||||||
- fixed libresolv implicit DSO linking (#564647)
|
- fixed libresolv implicit DSO linking (#564647)
|
||||||
- fixed initscript LSB compliance (#561040)
|
- fixed initscript LSB compliance (#561040)
|
||||||
|
Loading…
Reference in New Issue
Block a user