SPECS: vim-plugin-securemodelines.spec (NEW) - new. solves the syn...
glen
glen at pld-linux.org
Mon Jan 21 20:05:20 CET 2008
Author: glen Date: Mon Jan 21 19:05:20 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new. solves the syntax modelines not recognized for root user problem
---- Files affected:
SPECS:
vim-plugin-securemodelines.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/vim-plugin-securemodelines.spec
diff -u /dev/null SPECS/vim-plugin-securemodelines.spec:1.1
--- /dev/null Mon Jan 21 20:05:20 2008
+++ SPECS/vim-plugin-securemodelines.spec Mon Jan 21 20:05:15 2008
@@ -0,0 +1,47 @@
+# $Revision$, $Date$
+Summary: Vim plugin: Secure, user-configurable modeline support for Vim
+Name: vim-plugin-securemodelines
+Version: 20070518
+Release: 1
+# same as Vim
+License: Charityware
+Group: Applications/Editors/Vim
+Source0: http://www.vim.org/scripts/download_script.php?src_id=7142
+# Source0-md5: 0efade2902d7b9142d4bf43f2569ec4d
+URL: http://www.vim.org/scripts/script.php?script_id=1876
+Requires: vim >= 4:7.0
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _vimdatadir %{_datadir}/vim/vimfiles
+
+%description
+Vim's internal modeline support allows all sorts of annoying and potentially
+insecure options to be set. This script implements a much more heavily
+restricted modeline parser that permits only user-specified options to be set.
+
+%prep
+%setup -q -c -T
+install %{SOURCE0} securemodelines.vim
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_vimdatadir}/plugin}
+install securemodelines.vim $RPM_BUILD_ROOT%{_vimdatadir}/plugin
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_vimdatadir}/plugin/*
+
+%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 2008-01-21 19:05:15 glen
+- new. solves the syntax modelines not recognized for root user problem
+
================================================================
More information about the pld-cvs-commit
mailing list