Group :: Editors
RPM: vim-plugin-mediawiki-syntax
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: vim-plugin-mediawiki-syntax
Version: 0.0
Release: alt5
URL: http://en.wikipedia.org/wiki/Wikipedia:Text_editor_support#Vim
License: GPL
Group: Editors
# wget "http://en.wikipedia.org/w/index.php?title=Wikipedia:Text_editor_support&action=raw&ctype=text/css" -O Text_editor_support.wiki
Source: Text_editor_support.wiki
BuildArch: noarch
Summary: Mediawiki (Wikipedia) syntax highlighting plugin for VIM
Group: Editors
Requires: %_bindir/vim
%description
Mediawiki (Wikipedia) syntax highlighting/filetype plugin for VIM.
%prep
cat > ./cutpart << at at at
#!/bin/sh
sed -n "/\$2/,/\$3/{
/^<syntaxhighlight/,/^<\/syntaxhighlight/p
}" "\$1" | sed '/^<syntaxhighlight/d;/^<\/syntaxhighlight/d'
at at at
chmod +x ./cutpart
cp %SOURCE0 .
%build
./cutpart %SOURCE0 \
"syntax.mediawiki.vim" "ftdetect.mediawiki.vim" > syntax.vim
./cutpart %SOURCE0 \
"ftdetect.mediawiki.vim" "ftplugin.mediawiki.vim" > ftdetect.vim
./cutpart %SOURCE0 \
"Additional Gimmicks" "In-browser editors" > ftplugin.vim
%install
for d in syntax ftdetect ftplugin; do
install -D $d.vim %buildroot%_datadir/vim/$d/mediawiki.vim
done
%files
%_datadir/vim/syntax/*
%_datadir/vim/ftplugin/*
%_datadir/vim/ftdetect/*
%doc *.wiki
%changelog
…
Full changelog you can see here
Version: 0.0
Release: alt5
URL: http://en.wikipedia.org/wiki/Wikipedia:Text_editor_support#Vim
License: GPL
Group: Editors
# wget "http://en.wikipedia.org/w/index.php?title=Wikipedia:Text_editor_support&action=raw&ctype=text/css" -O Text_editor_support.wiki
Source: Text_editor_support.wiki
BuildArch: noarch
Summary: Mediawiki (Wikipedia) syntax highlighting plugin for VIM
Group: Editors
Requires: %_bindir/vim
%description
Mediawiki (Wikipedia) syntax highlighting/filetype plugin for VIM.
%prep
cat > ./cutpart << at at at
#!/bin/sh
sed -n "/\$2/,/\$3/{
/^<syntaxhighlight/,/^<\/syntaxhighlight/p
}" "\$1" | sed '/^<syntaxhighlight/d;/^<\/syntaxhighlight/d'
at at at
chmod +x ./cutpart
cp %SOURCE0 .
%build
./cutpart %SOURCE0 \
"syntax.mediawiki.vim" "ftdetect.mediawiki.vim" > syntax.vim
./cutpart %SOURCE0 \
"ftdetect.mediawiki.vim" "ftplugin.mediawiki.vim" > ftdetect.vim
./cutpart %SOURCE0 \
"Additional Gimmicks" "In-browser editors" > ftplugin.vim
%install
for d in syntax ftdetect ftplugin; do
install -D $d.vim %buildroot%_datadir/vim/$d/mediawiki.vim
done
%files
%_datadir/vim/syntax/*
%_datadir/vim/ftplugin/*
%_datadir/vim/ftdetect/*
%doc *.wiki
%changelog
…
Full changelog you can see here