From 4d5ea3e4365a60cf4ef44644eb86fbf9a9178556 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 8 Oct 2009 06:00:34 +0000 Subject: [PATCH 1/4] Initialize branch F-10 for vim-perl-tt2 --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..dc32377 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-10 From c0c0db6dab16e0510bc26afa9f02945e17ae2d4b Mon Sep 17 00:00:00 2001 From: Chris Weyl Date: Thu, 8 Oct 2009 15:36:31 +0000 Subject: [PATCH 2/4] initial import --- .cvsignore | 1 + import.log | 1 + sources | 1 + vim-perl-tt2.spec | 77 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 import.log create mode 100644 vim-perl-tt2.spec diff --git a/.cvsignore b/.cvsignore index e69de29..e72a111 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +tt2.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..815def0 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +vim-perl-tt2-0_1_3-2_fc11:F-10:vim-perl-tt2-0.1.3-2.fc11.src.rpm:1255016187 diff --git a/sources b/sources index e69de29..4f44c23 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3e70d82171456550855a8b9612226c11 tt2.tar.gz diff --git a/vim-perl-tt2.spec b/vim-perl-tt2.spec new file mode 100644 index 0000000..6bfa8f5 --- /dev/null +++ b/vim-perl-tt2.spec @@ -0,0 +1,77 @@ +Name: vim-perl-tt2 +Version: 0.1.3 +Release: 2%{?dist} +Summary: Syntax highlighting for the Template-Toolkit + +Group: Applications/Editors +License: Vim +URL: http://www.vim.org/scripts/script.php?script_id=830 +# source0 lives at http://www.vim.org/scripts/download_script.php?src_id=6881 +Source0: tt2.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +Requires: vim-common + +%global vimfiles %{_datadir}/vim/vimfiles + +%description +%{name} enables syntax highlighting for the Perl Template-Toolkit, v2. + +* Contain Perl code in PERL/RAWPERL directive. (runtime sytax/perl.vim) +* No folding +* HTML syntax for including TT2 syntax. ( tt2html.vim / unfinished ) +* Configurable START_TAG/END_TAG for your style. + +%prep +%setup -q -c + +cat >> tt2.vim.ft <<'EOF' +"au BufNewFile,BufRead *.tt2 setf tt2 +" or +au BufNewFile,BufRead *.tt2 + \ if ( getline(1) . getline(2) . getline(3) =~ '<\chtml' + \ && getline(1) . getline(2) . getline(3) !~ '<[%?]') + \ || getline(1) =~ '' +"PHP" +":let b:tt2_syn_tags = '' +"TT2 and HTML" +let b:tt2_syn_tags = '\[% %] ' +EOF + +%build +# no-op + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}%{vimfiles}/syntax +install -p -m 0644 *.vim %{buildroot}%{vimfiles}/syntax + +mkdir -p %{buildroot}%{vimfiles}/ftdetect +cp tt2.vim.ft %{buildroot}%{vimfiles}/ftdetect/tt2.vim + +%{_fixperms} %{buildroot} + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%{vimfiles}/ftdetect/* +%{vimfiles}/syntax/* + +%changelog +* Mon Sep 28 2009 Chris Weyl 0.1.3-2 +- require vim-common, not vim-perl-support + +* Fri Sep 25 2009 Chris Weyl 0.1.3-1 +- initial packaging From 7930a5f846eea1202444579079085c9f0c958318 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:14:10 +0000 Subject: [PATCH 3/4] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f53940e..2999928 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := vim-perl-tt2 SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From a15d84e68f998389a91a49b35c41f725844238ed Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 15:03:37 +0000 Subject: [PATCH 4/4] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - import.log | 1 - 4 files changed, 23 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 2999928..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: vim-perl-tt2 -# $Id$ -NAME := vim-perl-tt2 -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index dc32377..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-10 diff --git a/import.log b/import.log deleted file mode 100644 index 815def0..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -vim-perl-tt2-0_1_3-2_fc11:F-10:vim-perl-tt2-0.1.3-2.fc11.src.rpm:1255016187