Mailinglist Archive: opensuse-bugs (11339 mails)
| < Previous | Next > |
[Bug 461174] New: spec skeleton for vim
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Sat, 20 Dec 2008 06:04:31 -0700 (MST)
- Message-id: <bug-461174-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
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@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: mstopka@xxxxxxxxxxxx
QAContact: qa@xxxxxxx
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@xxxxxxxxxx/ge"
exe "%s/specRPM_CREATION_NAME/" . expand("%:t:r") . "/ge"
endfunction
I think part e-mail@xxxxxxxxxx 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.
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@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: mstopka@xxxxxxxxxxxx
QAContact: qa@xxxxxxx
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@xxxxxxxxxx/ge"
exe "%s/specRPM_CREATION_NAME/" . expand("%:t:r") . "/ge"
endfunction
I think part e-mail@xxxxxxxxxx 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.
| < Previous | Next > |