Blame SOURCES/vim-7.0-specedit.patch

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