diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e310817 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +otl2html-1.40.tgz +otl_handler.tgz +vimoutliner-0.3.4.tar.gz +vimoutliner-local.tar.bz2 +/vimoutliner-0.3.6.tgz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..9a6ec9b --- /dev/null +++ b/sources @@ -0,0 +1,4 @@ +1928092231296af34c00b1ff8eab7db0 vimoutliner-0.3.6.tgz +ca8393386032866d9f2b8a0d74d6c6fc otl_handler.tgz +4ce81f4db48e47ecf183fbbe85ef36c9 otl2html-1.40.tgz +1a6361c27f295404a057af93bf6fc23c vimoutliner-local.tar.bz2 diff --git a/vim-vimoutliner.spec b/vim-vimoutliner.spec new file mode 100644 index 0000000..dcd8efe --- /dev/null +++ b/vim-vimoutliner.spec @@ -0,0 +1,155 @@ +%define otl2html_version 1.40 + +Name: vim-vimoutliner +Version: 0.3.6 +Release: 1%{?dist} +Summary: Script for building an outline editor on top of Vim +Group: Applications/Editors +# LICENSE says v2, but the code all says v2+ +License: GPLv2+ +URL: http://www.vimoutliner.org/ +Source0: https://github.com/downloads/vimoutliner/vimoutliner/vimoutliner-%{version}.tgz +# the following two tarballs are from http://www.vimoutliner.org as well, but +# they are in CMS without good URLs. +Source1: otl2html-%{otl2html_version}.tgz +Source2: otl_handler.tgz +# things which are in discussion about putting upstream +Source3: vimoutliner-local.tar.bz2 +Source4: vimoutliner-README.Fedora +Source5: vimoutliner-Makefile +Patch: vimoutliner-mc-build.patch +BuildArch: noarch +Requires: vim-enhanced perl python +Requires(post): vim-enhanced +Requires(postun): vim-enhanced +#Requires: libxml-writer-perl libpalm-perl + +%description +Vimoutliner provides commands for building using the Vim text editor as an +outline editor. For more explanation on what outlines are and what they are +good for see the script's webpage at +http://www.vimoutliner.org and the general discussion of outlines on +http://www.troubleshooters.com/tpromag/199911/199911.htm. + +%prep +%setup -q -n vimoutliner -a 1 -a 2 -a 3 +cp -f -p %{SOURCE4} README.Fedora +cp -f -p %{SOURCE5} Makefile +find . -name .\*.swp -delete +mv ../{colors,doc,ftdetect,ftplugin,syntax,CHANGELOG,INSTALL,README*,install.sh,LICENSE} . +mv otl2html-* doc/otl2html +mv otl_handler doc/otl_handler +mv doc/otl2html/README README.otl2html +mv doc/otl_handler/README README.otl_handler +mv doc/vo_readme.txt . +find doc/ -type f -perm /111 -exec chmod -x '{}' \; +rm doc/otl2html/otl2html.py +%patch -p1 -b .MC-build + +%build +mv doc examples + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install +install -m a+rx,u+w -d $RPM_BUILD_ROOT%{_sysconfdir} +install -p -m a+r,u+w vimoutlinerrc \ + $RPM_BUILD_ROOT%{_sysconfdir}/vimoutlinerrc +install -m a+rx,u+w -d $RPM_BUILD_ROOT%{_datadir}/mime/packages +install -p -m a+r,u+w vimoutliner-mimefile.xml \ + $RPM_BUILD_ROOT%{_datadir}/mime/packages/vimoutliner.xml + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +umask 022 +[ ! -x %{_bindir}/update-mime-database ] \ + || update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||: +cd %{_datadir}/vim/vimfiles/doc +vim -u NONE -esX -c "helptags ." -c quit +grep -q "filetype plugin on" /etc/vimrc \ + || echo -e "\nfiletype plugin on" >>/etc/vimrc + +%postun +if [ $1 -eq 0 ]; then + umask 022 + [ ! -x %{_bindir}/update-mime-database ] \ + || update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||: + cd %{_datadir}/vim/vimfiles/doc + vim -u NONE -esX -c "helptags ." -c quit +fi + +%files +%defattr(-,root,root,-) +%doc README.otl2html README.otl_handler README.Fedora LICENSE +%doc examples +%config(noreplace) %{_sysconfdir}/vimoutlinerrc +#%_{_bindir}/otl2html +%{_bindir}/vo_maketags +%{_datadir}/vim/vimfiles/*/* +%{_datadir}/mime/packages/vimoutliner.xml +%{_mandir}/man1/*.1.gz + +%changelog +* Fri May 18 2012 Matěj Cepl - 0.3.6-1 +- New upstream and new upstream version. + +* Sat Jan 14 2012 Fedora Release Engineering - 0.3.4-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Feb 07 2011 Fedora Release Engineering - 0.3.4-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Jan 06 2010 Matěj Cepl - 0.3.4-13 +- Fix vimoutliner-mc-build.patch not to set maplocalleader + +* Sun Jul 26 2009 Fedora Release Engineering - 0.3.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 0.3.4-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Sep 8 2008 Tom "spot" Callaway - 0.3.4-10 +- fix license tag + +* Tue Apr 3 2007 Matej Cepl - 0.3.4-9 +- changed BuildRoot to more sane value, now it is allowed. + +* Mon Jan 8 2007 Matěj Cepl 0.3.4-8 +- changed named to vim-vimoutliner to follow Fedora Naming + Guidelines. +* Mon Dec 11 2006 Matěj Cepl 0.3.4-7 +- package should own only files in /usr/share/vim/vimfiles/*/ + directories, not the directory itself. Unfortunately, it is bad + hack, because /usr/share/vim/vimfiles directory itself is not + owned by any package (see bug no. 219154). +- made comments about origin of additional Sources. +- cp gets additional -p +- calling of update-desktop-database removed +- removed helpztags +* Mon Dec 4 2006 Matěj Cepl 0.3.4-6 +- other ugly Debianism: don't put additional files into diff, + when we could have another source file. +- again fixed problem with levels starting with non-ASCII + character +* Sat Dec 2 2006 Matěj Cepl 0.3.4-5 +- No macros in changelog anymore. +- Also there are no any s in this file. +- Package doesn't own directories in %%files when not required. +- Sources have URLs when possible. +* Tue Nov 28 2006 Matěj Cepl 0.3.4-4 +- Created Makefile for installation (so we could offer it upstream). +- compression of manpages is done automagically by rpmbuild, no need + to do it ourselves. +* Sat Nov 11 2006 Matěj Cepl 0.3.4-3 +- Finished Fedorization of originally README.Debian +- added otl2html and otl_handler to examples/ subdirectory of + %%doc. +- fixed manpages (don't install manpages for scripts we don't + carry). +* Wed Nov 8 2006 Matěj Cepl 0.3.4-2 +- Fixed paths in ftplugin/vo_base.vim so that additional plugins + actually load when requested. +* Tue Nov 7 2006 Matěj Cepl 0.3.4-1 +- Initial build. diff --git a/vimoutliner-Makefile b/vimoutliner-Makefile new file mode 100644 index 0000000..cb4c10d --- /dev/null +++ b/vimoutliner-Makefile @@ -0,0 +1,34 @@ +DESTDIR=$HOME/.vimoutliner + +all: build + +install: install-noarch install-man + +install-noarch: + install -m a+rx,u+w -d $(DESTDIR)/usr/share/vim/vimfiles/ftplugin + install -p -m a+r,u+w ftplugin/vo_*.vim \ + $(DESTDIR)/usr/share/vim/vimfiles/ftplugin/ + install -m a+rx,u+w -d $(DESTDIR)/usr/share/vim/vimfiles/syntax + install -p -m a+r,u+w syntax/vo_*.vim \ + $(DESTDIR)/usr/share/vim/vimfiles/syntax/ + install -m a+rx,u+w -d $(DESTDIR)/usr/share/vim/vimfiles/ftdetect + install -p -m a+r,u+w ftdetect/vo_*.vim \ + $(DESTDIR)/usr/share/vim/vimfiles/ftdetect/ + install -m a+rx,u+w -d $(DESTDIR)/usr/share/vim/vimfiles/doc + install -p -m a+r,u+w vo_readme.txt \ + $(DESTDIR)/usr/share/vim/vimfiles/doc + install -m a+rx,u+w -d $(DESTDIR)/usr/share/vim/vimfiles/colors + install -p -m a+r,u+w colors/vo_*.vim \ + $(DESTDIR)/usr/share/vim/vimfiles/colors/ + install -m a+rx,u+w -d $(DESTDIR)/usr/bin + install -p -m a+rx,u+w scripts/vo_maketags.pl \ + $(DESTDIR)/usr/bin/vo_maketags \ + +install-man: + install -m a+rx,u+w -d $(DESTDIR)/usr/share/man/man1/ + # don't install manpages for non-installed scripts + install -p -m a+r,u+w {otl2html,vo_maketags}.1 \ + $(DESTDIR)/usr/share/man/man1/ + +build: + /bin/true diff --git a/vimoutliner-README.Fedora b/vimoutliner-README.Fedora new file mode 100644 index 0000000..2f75d37 --- /dev/null +++ b/vimoutliner-README.Fedora @@ -0,0 +1,57 @@ +vimoutliner for Fedora +---------------------- + +1) Do not, I repeat, DO NOT follow installation instructions in + the upstream vo_readme.txt (which is installed as help :he + vo-install). It is not necessary (Fedora package should do all + installation itself) and locations of many files has been + changed to follow needs of one centralized installation. If + you want to know where everything is located, run + + rpm -ql vim-vimoutliner + +2) Upstream documentation (installed as :he vo) mentions ,, as + the prefix to most VO commands. In reality, even the upstream + package actually uses the native Vim variable, + which is set to \ (backslash) by default, so that a command + listed in the README file as ,,B -- "Make body text start with + a space", is actually executed when you type \B (with default + defintion of ). + + If you want to use different localleader uncomment in + /etc/vimoutlinerrc the following line and change the value + of the variable to whatever you want. + + "let maplocalleader = ",," " this is prepended to VO key + +3) For information how to use vimoutliner, you can use vim help + under :he vimoutliner. + +4) Two very useful plugins for VO -- hoist and checkbox -- ARE + enabled by default. Their status could be changed by changes + in the global variable g:vo_modules_load either in the VO + global configuration file /etc/vimoutlinerrc or in + personal configuration file ~/.vimoutlinerrc. + + Matej + +(additional information from the upstream vo_INSTALL.TXT file): +Feedback +Any feedback concerning these scripts or VimOutliner should be +sent to the project's email list (of course, all feedback +concerning bugs in packaging of this package should still go to +the Red Hat Bugzilla http://bugzilla.redhat.com component +vim-vimoutliner). + +Participation +If you'd like to help with the development, testing and/or +documentation of VimOutliner, please join the mailing list. You +can do so here: +http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner +or by sending email to vimoutliner-request@vimoutliner.org with +word "subscribe" in Subject: line of the message. + +Have fun! +Noel + +" vim:set nobackup tw=65 fo=tcqn ai: diff --git a/vimoutliner-mc-build.patch b/vimoutliner-mc-build.patch new file mode 100644 index 0000000..381d37d --- /dev/null +++ b/vimoutliner-mc-build.patch @@ -0,0 +1,93 @@ +diff -up vimoutliner/ftplugin/vo_base.vim.MC-build vimoutliner/ftplugin/vo_base.vim +--- vimoutliner/ftplugin/vo_base.vim.MC-build 2011-05-21 01:53:45.000000000 +0200 ++++ vimoutliner/ftplugin/vo_base.vim 2012-05-18 09:43:49.792318242 +0200 +@@ -65,7 +65,7 @@ let b:current_syntax = "outliner" + + " User Preferences {{{1 + +-let maplocalleader = ",," " this is prepended to VO key mappings ++"let maplocalleader = ",," " this is prepended to VO key mappings + + setlocal ignorecase " searches ignore case + setlocal smartcase " searches use smart case +diff -up vimoutliner/syntax/vo_base.vim.MC-build vimoutliner/syntax/vo_base.vim +--- vimoutliner/syntax/vo_base.vim.MC-build 2011-05-21 01:53:45.000000000 +0200 ++++ vimoutliner/syntax/vo_base.vim 2012-05-18 09:43:49.793318229 +0200 +@@ -231,7 +231,7 @@ syntax region BT8 start=+^\(\t\)\{7} \S+ + syntax region BT9 start=+^\(\t\)\{8} \S+ skip=+^\(\t\)\{8} \S+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + + "comment-style bodytext as per Steve Litt {{{2 +-syntax region BT1 start=+^:+ skip=+^:+ end=+^\S+me=e-1 end=+^\(\t\)\{1}\S+me=e-2 contains=spellErr,SpellErrors,BadWord contained ++syntax region BT1 start=+^:+ skip=+^:+ end=+^\S+me=e-1 end=+^\(\t\)\{1}\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region BT2 start=+^\(\t\)\{1}:+ skip=+^\(\t\)\{1}:+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region BT3 start=+^\(\t\)\{2}:+ skip=+^\(\t\)\{2}:+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region BT4 start=+^\(\t\)\{3}:+ skip=+^\(\t\)\{3}:+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained +@@ -242,7 +242,7 @@ syntax region BT8 start=+^\(\t\)\{7}:+ s + syntax region BT9 start=+^\(\t\)\{8}:+ skip=+^\(\t\)\{8}:+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + + "Preformatted body text {{{2 +-syntax region PT1 start=+^;+ skip=+^;+ end=+^\S+me=e-1 end=+^\(\t\)\{1}\S+me=e-2 contains=spellErr,SpellErrors,BadWord contained ++syntax region PT1 start=+^;+ skip=+^;+ end=+^\S+me=e-1 end=+^\(\t\)\{1}\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region PT2 start=+^\(\t\)\{1};+ skip=+^\(\t\)\{1};+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region PT3 start=+^\(\t\)\{2};+ skip=+^\(\t\)\{2};+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region PT4 start=+^\(\t\)\{3};+ skip=+^\(\t\)\{3};+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained +@@ -253,7 +253,7 @@ syntax region PT8 start=+^\(\t\)\{7};+ s + syntax region PT9 start=+^\(\t\)\{8};+ skip=+^\(\t\)\{8};+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + + "Preformatted tables {{{2 +-syntax region TA1 start=+^|+ skip=+^|+ end=+^\S+me=e-1 end=+^\(\t\)\{1}\S+me=e-2 contains=spellErr,SpellErrors,BadWord contained ++syntax region TA1 start=+^|+ skip=+^|+ end=+^\S+me=e-1 end=+^\(\t\)\{1}\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region TA2 start=+^\(\t\)\{1}|+ skip=+^\(\t\)\{1}|+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region TA3 start=+^\(\t\)\{2}|+ skip=+^\(\t\)\{2}|+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region TA4 start=+^\(\t\)\{3}|+ skip=+^\(\t\)\{3}|+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained +@@ -264,7 +264,7 @@ syntax region TA8 start=+^\(\t\)\{7}|+ s + syntax region TA9 start=+^\(\t\)\{8}|+ skip=+^\(\t\)\{8}|+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + + "wrapping user text {{{2 +-syntax region UT1 start=+^>+ skip=+^>+ end=+^\S+me=e-1 end=+^\(\t\)\{1}\S+me=e-2 contains=spellErr,SpellErrors,BadWord contained ++syntax region UT1 start=+^>+ skip=+^>+ end=+^\S+me=e-1 end=+^\(\t\)\{1}\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region UT2 start=+^\(\t\)\{1}>+ skip=+^\(\t\)\{1}>+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region UT3 start=+^\(\t\)\{2}>+ skip=+^\(\t\)\{2}>+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region UT4 start=+^\(\t\)\{3}>+ skip=+^\(\t\)\{3}>+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained +@@ -275,7 +275,7 @@ syntax region UT8 start=+^\(\t\)\{7}>+ s + syntax region UT9 start=+^\(\t\)\{8}>+ skip=+^\(\t\)\{8}>+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + + "non-wrapping user text {{{2 +-syntax region UB1 start=+^<+ skip=+^<+ end=+^\S+me=e-1 end=+^\(\t\)\{1}\S+me=e-2 contains=spellErr,SpellErrors,BadWord contained ++syntax region UB1 start=+^<+ skip=+^<+ end=+^\S+me=e-1 end=+^\(\t\)\{1}\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region UB2 start=+^\(\t\)\{1}<+ skip=+^\(\t\)\{1}<+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region UB3 start=+^\(\t\)\{2}<+ skip=+^\(\t\)\{2}<+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained + syntax region UB4 start=+^\(\t\)\{3}<+ skip=+^\(\t\)\{3}<+ end=+^\(\t\)*\S+me=s-1 contains=spellErr,SpellErrors,BadWord contained +@@ -292,7 +292,7 @@ setlocal com=sO:\:\ -,mO:\:\ \ ,eO:\:\:, + + " Headings {{{2 + syntax region OL1 start=+^[^:\t]+ end=+^[^:\t]+me=e-1 contains=outlTags,BT1,BT2,PT1,PT2,TA1,TA2,UT1,UT2,UB1,UB2,spellErr,SpellErrors,BadWord,OL2 keepend +-syntax region OL2 start=+^\t[^:\t]+ end=+^\t[^:\t]+me=e-2 contains=outlTags,BT2,BT3,PT2,PT3,TA2,TA3,UT2,UT3,UB2,UB3,spellErr,SpellErrors,BadWord,OL3 keepend ++syntax region OL2 start=+^\t[^:\t]+ end=+^\t[^:\t]+me=s-1 contains=outlTags,BT2,BT3,PT2,PT3,TA2,TA3,UT2,UT3,UB2,UB3,spellErr,SpellErrors,BadWord,OL3 keepend + syntax region OL3 start=+^\(\t\)\{2}[^:\t]+ end=+^\(\t\)\{2}[^:\t]+me=e-3 contains=outlTags,BT3,BT4,PT3,PT4,TA3,TA4,UT3,UT4,UB3,UB4,spellErr,SpellErrors,BadWord,OL4 keepend + syntax region OL4 start=+^\(\t\)\{3}[^:\t]+ end=+^\(\t\)\{3}[^:\t]+me=e-4 contains=outlTags,BT4,BT5,PT4,PT5,TA4,TA5,UT4,UT5,UB4,UB5,spellErr,SpellErrors,BadWord,OL5 keepend + syntax region OL5 start=+^\(\t\)\{4}[^:\t]+ end=+^\(\t\)\{4}[^:\t]+me=e-5 contains=outlTags,BT5,BT6,PT5,PT6,TA5,TA6,UT5,UT6,UB5,UB6,spellErr,SpellErrors,BadWord,OL6 keepend +diff -up vimoutliner/vo_readme.txt.MC-build vimoutliner/vo_readme.txt +--- vimoutliner/vo_readme.txt.MC-build 2011-05-10 01:09:26.000000000 +0200 ++++ vimoutliner/vo_readme.txt 2012-05-18 09:46:56.432984912 +0200 +@@ -254,14 +254,13 @@ Note: + CTRL-K is a VimOutliner synonym for CTRL-] + CTRL-N is a VimOutliner synonym for CTRL-T + +- *vo-debian* +-Debian Installation~ ++Installation from distribution packages ++ *vo-packages* *vo-debian* + +-Debian does include Vim Outliner as a package. However some Debian version +-require this line to be added to your .vimrc file: > +- +- syntax on +-> ++Debian and Fedora/Extras include Vim Outliner as a package. It is usually ++preferable to use official package custom-tailored for your distribution than ++to install VimOutliner from generic tarball. ++ + + ============================================================================== + Using VimOutliner On Other File Types *vo-other-files*