SPECS: vim-syntax-nginx.spec (NEW) - new

adamg adamg at pld-linux.org
Mon Mar 23 21:47:01 CET 2009


Author: adamg                        Date: Mon Mar 23 20:47:01 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   vim-syntax-nginx.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/vim-syntax-nginx.spec
diff -u /dev/null SPECS/vim-syntax-nginx.spec:1.1
--- /dev/null	Mon Mar 23 21:47:01 2009
+++ SPECS/vim-syntax-nginx.spec	Mon Mar 23 21:46:56 2009
@@ -0,0 +1,53 @@
+# $Revision$, $Date$
+%define		_vimdatadir	%{_datadir}/vim/vimfiles
+%define		syntax		nginx
+Summary:	Vim syntax: Highlight code in nginx config file
+Summary(pl.UTF-8):	Opis składni dla Vima: podświetlanie kodu wewnątrz plików konfiguracyjnych nginx
+Name:		vim-syntax-nginx
+Version:	0.1
+Release:	1
+License:	public domain
+Group:		Applications/Editors/Vim
+#Source0:	http://vim.sourceforge.net/scripts/download_script.php?src_id=7071
+Source0:	%{syntax}.vim
+URL:		http://www.vim.org/scripts/script.php?script_id=1886
+# for _vimdatadir existence
+Requires:	vim >= 4:6.3.058-3
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This script highlights code in nginx config file.
+
+%description -l pl.UTF-8
+Ten skrypt podświetla kod w pliku konfiguracyjnym nginx.
+
+%prep
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_vimdatadir}/{syntax,ftdetect}
+install %{SOURCE0} $RPM_BUILD_ROOT%{_vimdatadir}/syntax/%{syntax}.vim
+
+cat > $RPM_BUILD_ROOT%{_vimdatadir}/ftdetect/%{syntax}.vim <<EOF
+au BufNewFile,BufRead /etc/nginx/*.conf set filetype=%{syntax}
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_vimdatadir}/syntax/*
+%{_vimdatadir}/ftdetect/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/03/23 20:46:56  adamg
+- new
+
================================================================


More information about the pld-cvs-commit mailing list