From 39b1922971af3ca9c8ce8bd3b4f5102fd0e0808cdb7d6cf5157e6e33b9caffcd Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 24 Jan 2008 19:16:27 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/asciidoc?expand=0&rev=7 --- asciidoc-vim-fix.diff | 13 +++++++++++++ asciidoc.changes | 5 +++++ asciidoc.spec | 35 ++++++++++++++++++++++------------- 3 files changed, 40 insertions(+), 13 deletions(-) create mode 100644 asciidoc-vim-fix.diff diff --git a/asciidoc-vim-fix.diff b/asciidoc-vim-fix.diff new file mode 100644 index 0000000..4b7d9c0 --- /dev/null +++ b/asciidoc-vim-fix.diff @@ -0,0 +1,13 @@ +--- vim/ftdetect/asciidoc_filetype.vim-dist 2008-01-24 17:39:34.000000000 +0100 ++++ vim/ftdetect/asciidoc_filetype.vim 2008-01-24 17:39:39.000000000 +0100 +@@ -10,8 +10,8 @@ + " The first sets asciidoc syntax highlighting on all .txt files, the second + " only existing files *.txt that appear to be AsciiDoc files. + +-au BufNewFile,BufRead *.txt setfiletype asciidoc +-"au BufRead *.txt call s:FTasciidoc() ++"au BufNewFile,BufRead *.txt setfiletype asciidoc ++au BufRead *.txt call s:FTasciidoc() + + " This function checks for a valid AsciiDoc document title after first + " skipping any leading comments. diff --git a/asciidoc.changes b/asciidoc.changes index 7b15758..0e36a84 100644 --- a/asciidoc.changes +++ b/asciidoc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 24 17:40:00 CET 2008 - tiwai@suse.de + +- install vim files (#353528) + ------------------------------------------------------------------- Mon Jan 14 15:16:18 CET 2008 - tiwai@suse.de diff --git a/asciidoc.spec b/asciidoc.spec index b0fe59d..3089a0e 100644 --- a/asciidoc.spec +++ b/asciidoc.spec @@ -13,7 +13,7 @@ Name: asciidoc Summary: Text-Based Document Generation Version: 8.2.5 -Release: 2 +Release: 7 License: GPL v2 or later Group: Development/Tools/Doc Generators Requires: python >= 2.3, fop @@ -21,6 +21,7 @@ AutoReqProv: on Url: http://www.methods.co.nz/asciidoc/ Source0: %{name}-%{version}.tar.bz2 Patch: asciidoc-a2x-fop-fix.diff +Patch1: asciidoc-vim-fix.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -52,6 +53,7 @@ Authors: %prep %setup -q %patch +%patch1 %build @@ -69,6 +71,10 @@ for i in images stylesheets javascripts docbook-xsl; do cp -av $i $RPM_BUILD_ROOT%{_datadir}/asciidoc/ ln -s ../../%{_datadir}/asciidoc/$i $RPM_BUILD_ROOT/etc/asciidoc done +# install vim files +mkdir -p $RPM_BUILD_ROOT%{_datadir}/vim/site/{syntax,ftdetect} +install -m 0644 vim/syntax/* $RPM_BUILD_ROOT%{_datadir}/vim/site/syntax +install -m 0644 vim/ftdetect/* $RPM_BUILD_ROOT%{_datadir}/vim/site/ftdetect %clean rm -rf $RPM_BUILD_ROOT @@ -78,6 +84,7 @@ rm -rf $RPM_BUILD_ROOT /etc/asciidoc %{_datadir}/asciidoc %{_bindir}/* +%{_datadir}/vim/site %doc %{_mandir}/man1/* %doc README BUGS CHANGELOG COPYRIGHT @@ -86,13 +93,15 @@ rm -rf $RPM_BUILD_ROOT %doc doc examples %changelog -* Mon Jan 14 2008 - tiwai@suse.de +* Thu Jan 24 2008 tiwai@suse.de +- install vim files (#353528) +* Mon Jan 14 2008 tiwai@suse.de - add requirement to fop, fix the fop command name in a2x (#353527) -* Tue Jan 08 2008 - tiwai@suse.de +* Tue Jan 08 2008 tiwai@suse.de - updated to version 8.2.5: * fixes couple of bugs in 8.2.4, no new features -* Thu Nov 15 2007 - tiwai@suse.de +* Thu Nov 15 2007 tiwai@suse.de - updated to version 8.2.2-8.2.4: * improvements on lang attribute handling * fixed spurious warning in Python 2.6 @@ -114,7 +123,7 @@ rm -rf $RPM_BUILD_ROOT {imagesdir} attribute to image link targets - split doc and examples to separate sub-package to make rpmlint happy -* Tue May 22 2007 - tiwai@suse.de +* Tue May 22 2007 tiwai@suse.de - updated to version 8.2.1: * VIM syntax highlighter * Labeled list definitions have been tightened @@ -126,7 +135,7 @@ rm -rf $RPM_BUILD_ROOT * The Revision line now accommodates Subversion $Id markers * a2x(1) option —skip-asciidoc * Defaults to appropriate format if -format isn't given. -* Mon Apr 02 2007 - tiwai@suse.de +* Mon Apr 02 2007 tiwai@suse.de - updated to version 8.1.0: * AsciiDoc generated XHTML documents now display as table of contents if the toc attribute is defined. @@ -140,23 +149,23 @@ rm -rf $RPM_BUILD_ROOT * Renamed {docdir} intrinsic attribute to unambiguous`{indir} * If asciidoc(1) outputs to stdout then instrinsic attribute {docname} is extracted from the input file name. -* Thu Nov 23 2006 - tiwai@suse.de +* Thu Nov 23 2006 tiwai@suse.de - Add missing a2x and other config files (#223299). -* Thu Oct 12 2006 - tiwai@suse.de +* Thu Oct 12 2006 tiwai@suse.de - updated to version 8.0.0: * An experimental LaTeX backend * Unconstrained quoting allows quoting to appear anywhere in inline text * a2x toolchain wrapper script can generate Open Document text files * More on CHANGELOG -* Mon May 15 2006 - tiwai@suse.de +* Mon May 15 2006 tiwai@suse.de - updated to version 7.1.2. * a2x toolchain wrapper * ASCIIMathML support -* Wed Jan 25 2006 - mls@suse.de +* Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Wed Jan 11 2006 - tiwai@suse.de +* Wed Jan 11 2006 tiwai@suse.de - updated to version 7.0.4. -* Fri Jul 01 2005 - tiwai@suse.de +* Fri Jul 01 2005 tiwai@suse.de - fixed norootforbuild. -* Fri Jun 24 2005 - tiwai@suse.de +* Fri Jun 24 2005 tiwai@suse.de - initial version: 7.0.1.