Author: glen                         Date: Sun Apr 29 20:58:20 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- package vim syntax

---- Files affected:
packages/protobuf:
   protobuf.spec (1.10 -> 1.11) , ftdetect-proto.vim (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/protobuf/protobuf.spec
diff -u packages/protobuf/protobuf.spec:1.10 
packages/protobuf/protobuf.spec:1.11
--- packages/protobuf/protobuf.spec:1.10        Sun Apr 29 22:55:07 2012
+++ packages/protobuf/protobuf.spec     Sun Apr 29 22:58:15 2012
@@ -1,7 +1,6 @@
 # $Revision$, $Date$
 # TODO:
 #      - add bindings for java and python
-#      - add vim syntax package
 
 Summary:       Protocol Buffers - Google's data interchange format
 Summary(pl.UTF-8):     Protocol Buffers - format wymiany danych Google
@@ -12,6 +11,7 @@
 Group:         Libraries
 Source0:       http://protobuf.googlecode.com/files/%{name}-%{version}.tar.bz2
 # Source0-md5: 79a8072490f863139f32488c3ff84d39
+Source1:       ftdetect-proto.vim
 URL:           http://code.google.com/p/protobuf/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -22,6 +22,8 @@
 Requires:      %{name}-libs = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _vimdatadir     %{_datadir}/vim
+
 %description
 Protocol Buffers are a way of encoding structured data in an efficient
 yet extensible format. Google uses Protocol Buffers for almost all of
@@ -100,6 +102,15 @@
 %description static -l pl.UTF-8
 Statyczne biblioteki protobuf.
 
+%package -n vim-syntax-protobuf
+Summary:       Vim syntax highlighting for Google Protocol Buffers descriptions
+Group:         Development/Libraries
+Requires:      vim-rt >= 4:7.2.170
+
+%description -n vim-syntax-protobuf
+This package contains syntax highlighting for Google Protocol Buffers
+descriptions in Vim editor
+
 %prep
 %setup -q
 
@@ -117,6 +128,10 @@
        CPPROG="cp -p" \
        DESTDIR=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_vimdatadir}/{syntax,ftdetect}
+cp -p editors/proto.vim $RPM_BUILD_ROOT%{_vimdatadir}/syntax/proto.vim
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_vimdatadir}/ftdetect/proto.vim
+
 cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
@@ -167,12 +182,20 @@
 %{_libdir}/libprotobuf.a
 %{_libdir}/libprotoc.a
 
+%files -n vim-syntax-protobuf
+%defattr(644,root,root,755)
+%{_datadir}/vim/ftdetect/proto.vim
+%{_datadir}/vim/syntax/proto.vim
+
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <[email protected]>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2012/04/29 20:58:15  glen
+- package vim syntax
+
 Revision 1.10  2012/04/29 20:55:07  glen
 - add -lite subpackage, move compiler related lib to base pkg; update BR
 

================================================================
Index: packages/protobuf/ftdetect-proto.vim
diff -u /dev/null packages/protobuf/ftdetect-proto.vim:1.1
--- /dev/null   Sun Apr 29 22:58:20 2012
+++ packages/protobuf/ftdetect-proto.vim        Sun Apr 29 22:58:15 2012
@@ -0,0 +1,4 @@
+augroup filetype
+  au! BufRead,BufNewFile *.proto setfiletype proto
+augroup end
+
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/protobuf/protobuf.spec?r1=1.10&r2=1.11

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to