1
0
forked from pool/mutt

Move Muttrc from /etc/ to /usr/share/mutt

OBS-URL: https://build.opensuse.org/package/show/server:mail/mutt?expand=0&rev=269
This commit is contained in:
Dr. Werner Fink 2024-02-20 09:56:32 +00:00 committed by Git OBS Bridge
parent ea3df6e017
commit 26267a6142
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Feb 20 09:53:45 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Only suggest smtp daemon at runtime. Nevertheless if not
installed user will face a a warning.
- Move /etc/Muttrc to /usr/share/mutt/Muttrc
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 9 07:41:57 UTC 2023 - Dr. Werner Fink <werner@suse.de> Mon Oct 9 07:41:57 UTC 2023 - Dr. Werner Fink <werner@suse.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package mutt # spec file for package mutt
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -82,7 +82,7 @@ BuildRequires: python3-setuptools
BuildRequires: smtp_daemon BuildRequires: smtp_daemon
%endif %endif
Requires: glibc-locale Requires: glibc-locale
Requires: smtp_daemon Suggests: smtp_daemon
Requires(post): %{_bindir}/cat Requires(post): %{_bindir}/cat
Requires(post): %{_bindir}/mkdir Requires(post): %{_bindir}/mkdir
Requires(postun):%{_bindir}/rm Requires(postun):%{_bindir}/rm
@ -287,7 +287,7 @@ install -D -m 644 %{SOURCE9} %{buildroot}%{_datadir}/%{name}/mailcap
rm -vf %{buildroot}%{_docdir}/%{name}/manual.txt rm -vf %{buildroot}%{_docdir}/%{name}/manual.txt
install -D -m 644 doc/manual.txt.gz %{buildroot}%{_docdir}/%{name}/ install -D -m 644 doc/manual.txt.gz %{buildroot}%{_docdir}/%{name}/
sed -rn '/Command formats for gpg/,$p' %{SOURCE5} >> %{buildroot}%{_sysconfdir}/Muttrc sed -rn '/Command formats for gpg/,$p' %{SOURCE5} >> %{buildroot}%{_datadir}/%{name}/Muttrc
%if 0%{?suse_version} %if 0%{?suse_version}
%suse_update_desktop_file mutt %suse_update_desktop_file mutt
@ -335,7 +335,6 @@ rm -f %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-notify
%files %files
%config(noreplace) %{_sysconfdir}/skel/.muttrc %config(noreplace) %{_sysconfdir}/skel/.muttrc
%config(noreplace) %{_sysconfdir}/Muttrc
%{_bindir}/mutt %{_bindir}/mutt
%{_bindir}/pgpewrap %{_bindir}/pgpewrap
%{_bindir}/mutt_pgpring %{_bindir}/mutt_pgpring
@ -353,6 +352,7 @@ rm -f %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-notify
%{_datadir}/mutt/mailcap %{_datadir}/mutt/mailcap
%dir %doc %{_docdir}/%{name}/ %dir %doc %{_docdir}/%{name}/
%doc %{_docdir}/%{name}/manual.txt.gz %doc %{_docdir}/%{name}/manual.txt.gz
%{_datadir}/%{name}/Muttrc
%if 0%{suse_version} >= 1500 %if 0%{suse_version} >= 1500
%{_docdir}/%{name}/mutt_oauth2.py %{_docdir}/%{name}/mutt_oauth2.py
%{_docdir}/%{name}/mutt_oauth2.py.README %{_docdir}/%{name}/mutt_oauth2.py.README