[packages/vim-plugin-sleuth] - initial

arekm arekm at pld-linux.org
Sat Oct 28 20:31:18 CEST 2017


commit a64d8170c914d63eb0e4ce931a3e2953929b0baf
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Oct 28 20:31:03 2017 +0200

    - initial

 vim-plugin-sleuth.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
---
diff --git a/vim-plugin-sleuth.spec b/vim-plugin-sleuth.spec
new file mode 100644
index 0000000..919994e
--- /dev/null
+++ b/vim-plugin-sleuth.spec
@@ -0,0 +1,47 @@
+%define		commit	d56a4302358359ddf9845252addf637a5e6bd6d5
+%define		plugin	sleuth
+Summary:	Vim plugin: Heuristically set buffer options
+Name:		vim-plugin-%{plugin}
+Version:	0.20171028.1
+Release:	1
+License:	Vim
+Group:		Applications/Editors/Vim
+Source0:	https://github.com/tpope/vim-sleuth/archive/%{commit}.zip
+# Source0-md5:	aaf96c48053eb67cd80977b84eac06c5
+URL:		https://github.com/tpope/vim-sleuth
+# for _vimdatadir
+Requires:	vim-rt >= 4:7.2.170
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_vimdatadir	%{_datadir}/vim
+
+%description
+This plugin automatically adjusts 'shiftwidth' and 'expandtab'
+heuristically based on the current file, or, in the case the current
+file is new, blank, or otherwise insufficient, by looking at other
+files of the same type in the current and parent directories. In lieu
+of adjusting 'softtabstop', 'smarttab' is enabled.
+
+%prep
+%setup -q -n vim-sleuth-%{commit}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_vimdatadir}
+cp -a doc plugin $RPM_BUILD_ROOT%{_vimdatadir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+# if packaging doc/* files
+%post
+echo 'helptags %{_vimdatadir}/doc' | vim -e -s -V0 -R -n --noplugin
+
+%postun
+echo 'helptags %{_vimdatadir}/doc' | vim -e -s -V0 -R -n --noplugin
+
+%files
+%defattr(644,root,root,755)
+%doc %{_vimdatadir}/doc/sleuth.txt
+%{_vimdatadir}/plugin/sleuth.vim
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vim-plugin-sleuth.git/commitdiff/a64d8170c914d63eb0e4ce931a3e2953929b0baf



More information about the pld-cvs-commit mailing list