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

adamg adamg at pld-linux.org
Wed Aug 6 17:21:40 CEST 2008


Author: adamg                        Date: Wed Aug  6 15:21:40 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: SPECS/vim-syntax-openvpn.spec
diff -u /dev/null SPECS/vim-syntax-openvpn.spec:1.1
--- /dev/null	Wed Aug  6 17:21:40 2008
+++ SPECS/vim-syntax-openvpn.spec	Wed Aug  6 17:21:34 2008
@@ -0,0 +1,53 @@
+# $Revision$, $Date$
+%define		_vimdatadir	%{_datadir}/vim/vimfiles
+%define		_syntax		openvpn
+Summary:	Vim syntax: Highlight code in OpenVPN config file
+Summary(pl.UTF-8):	Opis składni dla Vima: podświetlanie kodu wewnątrz plików konfiguracyjnych OpenVPN
+Name:		vim-syntax-openvpn
+Version:	1.09
+Release:	1
+License:	public domain
+Group:		Applications/Editors/Vim
+#Source0:	http://vim.sourceforge.net/scripts/download_script.php?src_id=8938
+Source0:	%{_syntax}.vim
+URL:		http://vim.sourceforge.net/scripts/script.php?script_id=1420
+# 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 OpenVPN config file.
+
+%description -l pl.UTF-8
+Ten skrypt podświetla kod w pliku konfiguracyjnym OpenVPN.
+
+%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 *openvpn*/*.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  2008/08/06 15:21:34  adamg
+- new
+
================================================================


More information about the pld-cvs-commit mailing list