diff --git a/vim-7.4-spec_rfc822.patch b/vim-7.4-spec_rfc822.patch new file mode 100644 index 0000000..391aafb --- /dev/null +++ b/vim-7.4-spec_rfc822.patch @@ -0,0 +1,14 @@ +diff -up vim74/runtime/ftplugin/spec.vim.rfc822 vim74/runtime/ftplugin/spec.vim +--- vim74/runtime/ftplugin/spec.vim.rfc822 2016-04-13 12:31:09.856418963 +0200 ++++ vim74/runtime/ftplugin/spec.vim 2016-04-13 12:32:22.091802791 +0200 +@@ -113,7 +113,10 @@ if !exists("*s:SpecChangelog") + endif + endif + if (chgline != -1) ++ let tmptime = v:lc_time ++ language time C + let parsed_format = "* ".strftime(format)." - ".ver."-".rel ++ execute "language time" tmptime + let release_info = "+ ".name."-".ver."-".rel + let wrong_format = 0 + let wrong_release = 0 diff --git a/vim.spec b/vim.spec index 6069165..1ce67e5 100644 --- a/vim.spec +++ b/vim.spec @@ -60,6 +60,7 @@ Patch3011: vim-manpagefixes-948566.patch Patch3012: vim-7.4-licensemacro-1151450.patch Patch3013: vim-7.4-globalsyntax.patch Patch3014: vim-7.4-virc.patch +Patch3015: vim-7.4-spec_rfc822.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel python3-devel ncurses-devel gettext perl-devel @@ -212,6 +213,7 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk %patch3012 -p1 %patch3013 -p1 %patch3014 -p1 +%patch3015 -p1 %build cp -f %{SOURCE5} . @@ -768,6 +770,7 @@ rm -rf %{buildroot} - add %%_libdir/vim directory for plugins (rhbz#1193230) - vi, rvi, rview, ex, view don't read vimrc anymore. They use virc instead (rhbz#1045815) +- fix dates in changelogs when spec.vim is used and locale != 'C' * Fri Apr 08 2016 Karsten Hopp 7.4.1718-1 - patchlevel 1718