Blame SOURCES/vim-7.0-specedit.patch

95b286
--- vim70/runtime/ftplugin/spec.vim.rh1	2006-05-10 19:37:45.000000000 +0200
95b286
+++ vim70/runtime/ftplugin/spec.vim	2006-11-13 12:21:32.000000000 +0100
95b286
@@ -18,11 +18,18 @@
95b286
 
95b286
 if !exists("*s:SpecChangelog")
95b286
 	function s:SpecChangelog(format)
95b286
+        let save_time = v:lc_time
95b286
 		if strlen(a:format) == 0
95b286
 			if !exists("g:spec_chglog_format")
95b286
-				let email = input("Email address: ")
95b286
-				let g:spec_chglog_format = "%a %b %d %Y " . l:email
95b286
-				echo "\r"
95b286
+                if !exists("g:packager")
95b286
+                    let email = input("Email address: ")
95b286
+                    let g:spec_chglog_format = "%a %b %d %Y " . l:email
95b286
+                    echo "\r"
95b286
+                else
95b286
+                    let email = g:packager
95b286
+                    let g:spec_chglog_format = "%a %b %d %Y " . l:email
95b286
+                    echo "\r"
95b286
+                endif
95b286
 			endif
95b286
 			let format = g:spec_chglog_format
95b286
 		else
95b286
@@ -58,7 +65,7 @@
95b286
 			let line = line+1
95b286
 		endwhile
95b286
 		if (nameline != -1 && verline != -1 && relline != -1)
95b286
-			let include_release_info = exists("g:spec_chglog_release_info")
95b286
+			let include_release_info = 1
95b286
 			let name = s:ParseRpmVars(name, nameline)
95b286
 			let ver = s:ParseRpmVars(ver, verline)
95b286
 			let rel = s:ParseRpmVars(rel, relline)
95b286
@@ -79,8 +86,10 @@
95b286
 			endif
95b286
 		endif
95b286
 		if (chgline != -1)
95b286
+            execute "language time C"
95b286
 			let parsed_format = "* ".strftime(format)
95b286
-			let release_info = "+ ".name."-".ver."-".rel
95b286
+            execute "language time " . save_time
95b286
+			let release_info = ver."-".rel
95b286
 			let wrong_format = 0
95b286
 			let wrong_release = 0
95b286
 			let insert_line = 0
95b286
@@ -97,15 +106,14 @@
95b286
 						execute relline
95b286
 						normal ?
95b286
 						let rel = substitute(strpart(getline(relline),8), '^[	 ]*\([^ 	]\+\)[		]*$','\1','')
95b286
-						let release_info = "+ ".name."-".ver."-".rel
95b286
+						let release_info = ver."-".rel
95b286
 					endif
95b286
 				endif
95b286
 				let n = 0
95b286
-				call append(chgline+n, parsed_format)
95b286
 				if include_release_info
95b286
-					let n = n + 1
95b286
-					call append(chgline+n, release_info)
95b286
+                    let parsed_format = parsed_format." ".release_info
95b286
 				endif
95b286
+				call append(chgline+n, parsed_format)
95b286
 				let n = n + 1
95b286
 				call append(chgline+n,"- ")
95b286
 				let n = n + 1