1
0
forked from pool/mutt

Accepting request 768052 from server:mail

- Add version check, that is if installed mutt version does not
  fit the installing version then do notify message 

- Add a notify message about behaviour/variable changes to inform
  users about these (thanks to Roger Whittaker)

OBS-URL: https://build.opensuse.org/request/show/768052
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mutt?expand=0&rev=88
This commit is contained in:
Dominique Leuenberger 2020-01-29 12:18:37 +00:00 committed by Git OBS Bridge
commit d53b987507
2 changed files with 37 additions and 5 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Jan 28 13:42:02 UTC 2020 - Dr. Werner Fink <werner@suse.de>
- Add version check, that is if installed mutt version does not
fit the installing version then do notify message
-------------------------------------------------------------------
Tue Jan 28 10:13:24 UTC 2020 - Dr. Werner Fink <werner@suse.de>
- Add a notify message about behaviour/variable changes to inform
users about these (thanks to Roger Whittaker)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 14 14:53:05 UTC 2020 - Dr. Werner Fink <werner@suse.de> Tue Jan 14 14:53:05 UTC 2020 - Dr. Werner Fink <werner@suse.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package mutt # spec file for package mutt
# #
# Copyright (c) 2020 SUSE LLC. # Copyright (c) 2020 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
@ -61,8 +61,11 @@ BuildRequires: update-desktop-files
%endif %endif
BuildRequires: w3m BuildRequires: w3m
URL: http://www.mutt.org URL: http://www.mutt.org
Requires(post): %install_info_prereq Requires(postun): /usr/bin/rm
Requires(preun): %install_info_prereq Requires(post): /usr/bin/mkdir
Requires(post): /usr/bin/cat
Requires(pre): /usr/bin/zcat
Requires(pre): /usr/bin/grep
Recommends: hunspell Recommends: hunspell
Provides: muttssl Provides: muttssl
Obsoletes: muttssl Obsoletes: muttssl
@ -124,6 +127,8 @@ enhancements.
Summary: Additional Documentation about Mutt Summary: Additional Documentation about Mutt
Group: Documentation/Other Group: Documentation/Other
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires(post): %install_info_prereq
Requires(preun): %install_info_prereq
Recommends: perl(Expect) Recommends: perl(Expect)
Provides: %{name}:%{_docdir}/%name/COPYRIGHT Provides: %{name}:%{_docdir}/%name/COPYRIGHT
BuildArch: noarch BuildArch: noarch
@ -272,23 +277,38 @@ install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/skel/.muttrc
install -D -m 644 %{SOURCE9} %{buildroot}%{_datadir}/%name/mailcap 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/
%if 0%{?suse_version} %if 0%{?suse_version}
%suse_update_desktop_file mutt %suse_update_desktop_file mutt
%endif %endif
%if 0%{?suse_version} > 1130 %pre
if test $1 -gt 1 -a -e %{_docdir}/%name/manual.txt.gz
then
zcat %{_docdir}/%name/manual.txt.gz | grep -F 'version %{version}' > /run/mutt-version
fi
%post %post
%mime_database_post %mime_database_post
if test -f /run/mutt-version -a ! -s /run/mutt-version
then
mkdir -p %{_localstatedir}/adm/update-messages
cat > %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-notify <<-'EOF'
With %{name}-%{version} some variables and the behaviour changes:
$send_multipart_alternative changes to run in batch mode on ask-yes.
$write_bcc changes to default off
EOF
fi
%postun %postun
%mime_database_postun %mime_database_postun
rm -f %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-notify
%post doc %post doc
%install_info --info-dir=%{_infodir} "%{_infodir}/mutt.info.gz" %install_info --info-dir=%{_infodir} "%{_infodir}/mutt.info.gz"
%preun doc %preun doc
%install_info_delete --info-dir=%{_infodir} "%{_infodir}/mutt.info.gz" %install_info_delete --info-dir=%{_infodir} "%{_infodir}/mutt.info.gz"
%endif
%files %files
%defattr(-,root,root) %defattr(-,root,root)