[Bug 461174] New: spec skeleton for vim
https://bugzilla.novell.com/show_bug.cgi?id=461174 Summary: spec skeleton for vim Product: openSUSE 11.2 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mstopka@opensuse.org QAContact: qa@suse.de Found By: --- Hi a few releases before I created spec skeleton for vim and I would like share this skeleton with more openSUSE users. I think it could be nice to have my skeleton in openSUSE 11.2 vim package by default. I will describe here all needed changes... First you have to create file /usr/share/vim/current/skeletons/skeleton.spec with following content: # # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # norootforbuild Name: specRPM_CREATION_NAME Version: Release: Summary: Group: License: URL: Source: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: %description Authors: -------- Name Surname %prep rm -rf $RPM_BUILD_ROOT %setup %build %configure make %{?jobs:-j%jobs} %install %makeinstall %clean rm -rf $RPM_BUILD_ROOT %post %postun %files %defattr(-,root,root,0755) %doc ChangeLog README COPYING %changelog * specRPM_CREATION_DATE - specRPM_CREATION_AUTHOR_MAIL Second, you have to add these few lines to /etc/vimrc: " skeletons autocmd BufNewFile *.spec call SKEL_spec() function! SKEL_spec() 0r /usr/share/vim/current/skeletons/skeleton.spec language time en_US " set LC_TIME for vim to en_US exe "%s/specRPM_CREATION_DATE/" . strftime("%a\ %b\ %d\ %Y") . "/ge" exe "%s/specRPM_CREATION_AUTHOR_MAIL/e-mail@domena.tld/ge" exe "%s/specRPM_CREATION_NAME/" . expand("%:t:r") . "/ge" endfunction I think part e-mail@domena.tld could be replaced by something "Set your e-mail in /etc/vimrc file" :-) What you think, can you make this as a part of our vim or create a subpackage vim-skeletons with few more skeletons like this? :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=461174 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chrubis@novell.com AssignedTo|bnc-team-screening@forge.provo.novell.com |mkoenig@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=461174 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=461174#c2 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |werner@novell.com Resolution| |FIXED --- Comment #2 from Dr. Werner Fink <werner@novell.com> 2009-02-17 05:21:16 MST --- Add it to /etc/skel/.vimrc -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com