197 lines
6.4 KiB
RPMSpec
197 lines
6.4 KiB
RPMSpec
Name: vim-perl-support
|
|
Version: 4.11
|
|
Release: 1%{?dist}
|
|
Summary: Perl-IDE for VIM
|
|
|
|
Group: Applications/Editors
|
|
# according to plugin/perl-support.vim
|
|
License: GPLv2
|
|
URL: http://www.vim.org/scripts/script.php?script_id=556
|
|
# curl -o perl-support-4.11.zip 'http://vim.sourceforge.net/scripts/download_script.php?src_id=15492'
|
|
Source0: perl-support-%{version}.zip
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: vim-enhanced
|
|
Requires(post): vim-enhanced
|
|
Requires(postun): vim-enhanced
|
|
|
|
# optional requirements
|
|
|
|
# per-line Perl profiler
|
|
Requires: perl(Devel::SmallProf)
|
|
# Powerful feature-rich perl source code profiler
|
|
Requires: perl(Devel::NYTProf)
|
|
# "fast" per-line Perl profiler
|
|
Requires: perl(Devel::FastProf)
|
|
# Critique Perl source code for best-practices
|
|
Requires: perl(Perl::Critic)
|
|
# Generate Ctags style tags for Perl source code
|
|
Requires: perl(Perl::Tags)
|
|
# Parses and beautifies perl source
|
|
Requires: perl(Perl::Tidy)
|
|
|
|
# the following are not yet available in fedora
|
|
# Perl debugger using a Tk GUI
|
|
#Requires: perl(Devel::ptkdb)
|
|
# regular expression analyzer
|
|
#Requires: perl(YAPE::Regex::Explain)
|
|
|
|
%global vimfiles %{_datadir}/vim/vimfiles
|
|
|
|
# strip out false provides/requires from codesnippets
|
|
%{?perl_default_filter:
|
|
%filter_from_provides /perl(\(Class\|Package\)Name/d
|
|
%filter_from_requires /perl(\(Class\|base\)/d
|
|
%perl_default_filter
|
|
}
|
|
|
|
%description
|
|
Perl Support implements a Perl-IDE for Vim/gVim. It is written to considerably
|
|
speed up writing code in a consistent style. This is done by inserting
|
|
complete statements, comments, idioms, code snippets, templates, and POD
|
|
documentation. Reading perldoc is integrated. Syntax checking, running a
|
|
script, running perltidy, running perlcritics, starting a debugger and a
|
|
profiler can be done with a keystroke.
|
|
|
|
|
|
%prep
|
|
%setup -q -c
|
|
|
|
|
|
%build
|
|
# build is empty
|
|
|
|
|
|
%install
|
|
install -m 755 -d %{buildroot}%{vimfiles}/autoload
|
|
install -m 644 -p autoload/*.vim %{buildroot}%{vimfiles}/autoload
|
|
install -m 755 -d %{buildroot}%{vimfiles}/doc
|
|
install -m 644 -p doc/*.txt %{buildroot}%{vimfiles}/doc
|
|
install -m 755 -d %{buildroot}%{vimfiles}/ftplugin
|
|
install -m 644 -p ftplugin/*.vim %{buildroot}%{vimfiles}/ftplugin
|
|
install -m 755 -d %{buildroot}%{vimfiles}/plugin
|
|
install -m 644 -p plugin/*.vim %{buildroot}%{vimfiles}/plugin
|
|
install -m 755 -d %{buildroot}%{vimfiles}/perl-support/codesnippets
|
|
install -m 644 -p perl-support/codesnippets/* \
|
|
%{buildroot}%{vimfiles}/perl-support/codesnippets
|
|
install -m 755 -d %{buildroot}%{vimfiles}/perl-support/templates
|
|
install -m 644 -p perl-support/templates/* \
|
|
%{buildroot}%{vimfiles}/perl-support/templates
|
|
install -m 755 -d %{buildroot}%{vimfiles}/perl-support/modules
|
|
install -m 644 -p perl-support/modules/* \
|
|
%{buildroot}%{vimfiles}/perl-support/modules
|
|
install -m 755 -d %{buildroot}%{vimfiles}/perl-support/scripts
|
|
install -m 755 -p perl-support/scripts/*.{pl,sh} \
|
|
%{buildroot}%{vimfiles}/perl-support/scripts
|
|
install -m 755 -d %{buildroot}%{vimfiles}/perl-support/wordlists
|
|
install -m 644 -p perl-support/wordlists/* \
|
|
%{buildroot}%{vimfiles}/perl-support/wordlists
|
|
|
|
|
|
%post
|
|
umask 022
|
|
cd %{_datadir}/vim/vimfiles/doc
|
|
vim -u NONE -esX -c "helptags ." -c quit
|
|
exit 0
|
|
|
|
|
|
%postun
|
|
if [ $1 -eq 0 ]; then
|
|
umask 022
|
|
cd %{_datadir}/vim/vimfiles/doc
|
|
>tags
|
|
vim -u NONE -esX -c "helptags ." -c quit
|
|
fi
|
|
exit 0
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README.perlsupport perl-support/doc/* perl-support/rc
|
|
%{vimfiles}/perl-support
|
|
%{vimfiles}/autoload/*.vim
|
|
%{vimfiles}/doc/perlsupport.txt
|
|
%{vimfiles}/ftplugin/perl.vim
|
|
%{vimfiles}/plugin/perl-support.vim
|
|
|
|
|
|
%changelog
|
|
* Thu Apr 21 2011 Iain Arnell <iarnell@gmail.com> 4.11-1
|
|
- update to latest upstream version
|
|
|
|
* Sun Feb 27 2011 Iain Arnell <iarnell@gmail.com> 4.10-1
|
|
- update to latest upstream version
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.9-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Thu Dec 16 2010 Iain Arnell <iarnell@gmail.com> 4.9-1
|
|
- update to latest upstream version
|
|
- clean up spec for modern rpmbuild
|
|
|
|
* Fri Jun 18 2010 Iain Arnell <iarnell@gmail.com> 4.8-2
|
|
- use version number in source0 filename
|
|
|
|
* Mon May 31 2010 Iain Arnell <iarnell@gmail.com> 4.8-1
|
|
- update to latest upstream version
|
|
|
|
* Tue Apr 13 2010 Iain Arnell <iarnell@gmail.com> 4.7.1-1
|
|
- update to latest upstream version
|
|
|
|
* Wed Mar 03 2010 Iain Arnell <iarnell@gmail.com> 4.7-1
|
|
- update to 4.7
|
|
|
|
* Mon Jan 25 2010 Iain Arnell <iarnell@gmail.com> 4.6.1-1
|
|
- update to 4.6.1 - fix screen refresh when using syntax check (Vim only, not
|
|
gVim)
|
|
|
|
* Tue Jan 05 2010 Iain Arnell <iarnell@gmail.com> 4.6-1
|
|
- update to latest upstream release
|
|
- update requires/provides filtering
|
|
|
|
* Mon Oct 05 2009 Iain Arnell <iarnell@gmail.com> 4.5-1
|
|
- update to 4.5
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Fri Jul 03 2009 Iain Arnell <iarnell@gmail.com> 4.4-1
|
|
- update to 4.4
|
|
|
|
* Mon May 25 2009 Iain Arnell <iarnell@gmail.com> 4.3-1
|
|
- update to 4.3
|
|
|
|
* Fri May 08 2009 Iain Arnell <iarnell@gmail.com> 4.2-1
|
|
- update to 4.2
|
|
|
|
* Thu Apr 30 2009 Iain Arnell <iarnell@gmail.com> 4.1-3
|
|
- require Devel::FastProf and Perl::Tags
|
|
- use global macro, not define
|
|
|
|
* Mon Apr 13 2009 Iain Arnell <iarnell@gmail.com> 4.1-2
|
|
- require perl(Devel::NYTProf) now that it's available
|
|
|
|
* Tue Mar 17 2009 Iain Arnell <iarnell@gmail.com> 4.1-1
|
|
- update to latest upstream version
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Sat Jan 24 2009 Iain Arnell <iarnell@gmail.com> 4.0.1-2
|
|
- require perl(Devel::SmallProf) now that it's available
|
|
|
|
* Fri Jan 02 2009 Iain Arnell <iarnell@gmail.com> 4.0.1-1
|
|
- Bugfix: Error message in some functions that issue a prompt.
|
|
|
|
* Fri Jan 02 2009 Iain Arnell <iarnell@gmail.com> 4.0-1
|
|
- update to 4.0:
|
|
+ Completely new template system. Most menu items now user definable.
|
|
+ Plugin split into autoloadable modules (makes Vim startup faster).
|
|
+ Submenus for perlcritic severity and verbosity.
|
|
In consequence there are some obsolete files and global variables, and some
|
|
new files and hotkeys.
|
|
- fix bug in Perl_Input function
|
|
|
|
* Fri Nov 28 2008 Iain Arnell <iarnell@gmail.com> 3.9.1-1
|
|
- create vim-perl-support
|