[packages/vim-syntax-spec] - 1.122: recognize %global and %unglobal

glen glen at pld-linux.org
Thu Nov 8 13:42:10 CET 2012


commit 3747b3b1313d6032bec254b3d300dbc86a832804
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Nov 8 12:38:54 2012 +0000

    - 1.122: recognize %global and %unglobal

 spec.vim             | 10 +++++-----
 vim-syntax-spec.spec |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/vim-syntax-spec.spec b/vim-syntax-spec.spec
index c219782..af2ca25 100644
--- a/vim-syntax-spec.spec
+++ b/vim-syntax-spec.spec
@@ -1,7 +1,7 @@
 Summary:	Vim syntax: RPM specfiles
 Summary(pl.UTF-8):	Składania dla Vima: pliki RPM spec
 Name:		vim-syntax-spec
-Version:	1.121
+Version:	1.122
 Release:	1
 License:	Charityware
 Group:		Applications/Editors/Vim
@@ -28,7 +28,7 @@ Ta wtyczka zapewnia podświetlanie składni plików RPM spec.
 
 %prep
 %setup -qcT
-rev=$(awk '/^".*Version:.*Revision:/{print $4}' %{SOURCE0})
+rev=$(awk '/^".*Version:.*/{print $3}' %{SOURCE0})
 if [ "$rev" != "%{version}" ]; then
 	: Update version $rev, and retry
 	exit 1
diff --git a/spec.vim b/spec.vim
index e1492ec..fc1888f 100644
--- a/spec.vim
+++ b/spec.vim
@@ -2,9 +2,9 @@
 " Purpose:     Vim syntax file
 " Language:    SPEC: Build/install scripts for PLD Linux RPM packages
 " Maintainer:  PLD Linux <feedback at pld-linux.org>
-" URL:	       http://www.pld-linux.org/
-" Last Change: $Date$ (UTC)
-" Version:     $Revision$
+" URL:	       http://git.pld-linux.org/packages/vim-syntax-spec/
+" Last Change: 2012-11-08
+" Version:     1.122
 
 " For version 5.x: Clear all syntax items
 " For version 6.x: Quit when a syntax file was already loaded
@@ -155,7 +155,7 @@ syn keyword specMacroNameLocal contained java_home jar java javac javadoc
 
 " One line macros - valid in all ScriptAreas
 " tip: remember do include new items on specScriptArea's skip section
-syn region specSectionMacroArea oneline matchgroup=specSectionMacro start='^%\(\(un\)\?define\|dump\|trace\|patch\d*\|setup\|configure2_13\|configure\|GNUconfigure\|find_lang\|makeinstall\|cmake\|scons\|waf\|bcond_with\(out\)\?\|include\)\>' end='$' contains=specCommandOpts,specMacroIdentifier,specSectionMacroBcondArea
+syn region specSectionMacroArea oneline matchgroup=specSectionMacro start='^%\(\(un\)\?\(define\|global\)\|dump\|trace\|patch\d*\|setup\|configure2_13\|configure\|GNUconfigure\|find_lang\|makeinstall\|cmake\|scons\|waf\|bcond_with\(out\)\?\|include\)\>' end='$' contains=specCommandOpts,specMacroIdentifier,specSectionMacroBcondArea
 syn region specSectionMacroBracketArea oneline matchgroup=specSectionMacro start='^%{\(configure2_13\|configure\|GNUconfigure\|find_lang\|makeinstall\|cmake\|scons\|waf\)}' end='$' contains=specCommandOpts,specMacroIdentifier
 syn region specSectionMacroBcondArea oneline matchgroup=specBlock start='%{!\??\(with\(out\)\?_[a-zA-Z0-9_]\+\|debug\):' skip='\\}' end='}' contains=ALLBUT, at specLimitedVisibility
 
@@ -210,7 +210,7 @@ syn region specPackageArea matchgroup=specSection start='^%package' end='^%'me=e
 " %% Scripts Section %%
 syn region specScriptArea matchgroup=specSection
 	\ start='^%\(prep\|build\|install\|clean\|pre\|postun\|preun\|post\|triggerprein\|triggerin\|triggerun\|triggerpostun\|pretrans\|posttrans\|verifyscript\|check\)\>'
-	\ skip='^%{\|^%\(define\|patch\d*\|configure2_13\|configure\|ant\|GNUconfigure\|setup\|find_lang\|makeinstall\|cmake\|scons\|waf\|useradd\|groupadd\|addusertogroup\|banner\|service\|env_update\|py_o\?comp\|py_postclean\|py_lint\|\(openldap_schema\|webapp\)_\(un\)\?register\|depmod\|pear_package_\(setup\|install\)\|\(build\|install\)_kernel_modules\|php_webserver_restart\|php4_webserver_restart\|update_browser_plugins\|gconf_schema_\(un\)?install\|glib_compile_schemas\|scrollkeeper_update_post\(un\)?\|update_icon_cache\|update_mime_database\|undos\|nagios_nrpe\|cacti_import_template\)\>'
+	\ skip='^%{\|^%\(\(un\)\?\(define\|global\)\|patch\d*\|configure2_13\|configure\|ant\|GNUconfigure\|setup\|find_lang\|makeinstall\|cmake\|scons\|waf\|useradd\|groupadd\|addusertogroup\|banner\|service\|env_update\|py_o\?comp\|py_postclean\|py_lint\|\(openldap_schema\|webapp\)_\(un\)\?register\|depmod\|pear_package_\(setup\|install\)\|\(build\|install\)_kernel_modules\|php_webserver_restart\|php4_webserver_restart\|update_browser_plugins\|gconf_schema_\(un\)?install\|glib_compile_schemas\|scrollkeeper_update_post\(un\)?\|update_icon_cache\|update_mime_database\|undos\|nagios_nrpe\|cacti_import_template\)\>'
 	\ end='^%'me=e-1
 	\ contains=specSpecialVariables,specVariables, at specCommands,specVariables,shDo,shFor,shCaseEsac,specNoNumberHilite,specCommandOpts,shComment,shIf,specSpecialChar,specMacroIdentifier,specSectionMacroArea,specSectionMacroBracketArea,shOperator,shQuote1,shQuote2,specSectionMacroBcondArea
 " XXX don't forget to update specMacro when updating specScriptArea skip definition
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vim-syntax-spec.git/commitdiff/3747b3b1313d6032bec254b3d300dbc86a832804



More information about the pld-cvs-commit mailing list