2007-01-15 22:51:37 +00:00
|
|
|
#
|
2011-09-19 13:38:57 +00:00
|
|
|
# spec file for package asciidoc
|
2007-01-15 22:51:37 +00:00
|
|
|
#
|
2011-09-19 13:38:57 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 22:51:37 +00:00
|
|
|
#
|
2008-11-03 10:55:37 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 22:51:37 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-05-05 23:33:07 +00:00
|
|
|
|
2007-01-15 22:51:37 +00:00
|
|
|
Name: asciidoc
|
|
|
|
Summary: Text-Based Document Generation
|
2009-07-23 15:20:55 +00:00
|
|
|
Version: 8.4.5
|
2009-05-15 21:12:17 +00:00
|
|
|
Release: 1
|
2007-11-16 00:12:21 +00:00
|
|
|
License: GPL v2 or later
|
|
|
|
Group: Development/Tools/Doc Generators
|
2009-01-29 22:07:50 +00:00
|
|
|
Requires: python >= 2.3
|
2008-05-05 23:33:07 +00:00
|
|
|
Requires: docbook-xsl-stylesheets
|
2009-01-29 22:07:50 +00:00
|
|
|
Recommends: dblatex
|
2008-08-03 22:30:38 +00:00
|
|
|
# a2x needs /usr/bin/xsltproc
|
2009-01-29 22:07:50 +00:00
|
|
|
Recommends: libxslt
|
2007-11-16 00:12:21 +00:00
|
|
|
Url: http://www.methods.co.nz/asciidoc/
|
2007-01-15 22:51:37 +00:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2008-07-08 13:59:08 +00:00
|
|
|
Patch0: asciidoc-vim-fix.diff
|
|
|
|
Patch1: asciidoc-8.2.6-no-safe-check.diff
|
2009-01-08 13:50:47 +00:00
|
|
|
Patch3: asciidoc-ignore-deprecation.diff
|
2009-02-03 21:42:12 +00:00
|
|
|
Patch4: a2x-missing-package-msg.diff
|
2007-01-15 22:51:37 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-11-16 00:12:21 +00:00
|
|
|
BuildArch: noarch
|
2007-01-15 22:51:37 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
AsciiDoc is a text document format for writing short documents,
|
|
|
|
articles, books, and UNIX man pages. AsciiDoc files can be translated
|
|
|
|
to HTML and DocBook markups using the asciidoc command.
|
|
|
|
|
2007-11-16 00:12:21 +00:00
|
|
|
%package examples
|
|
|
|
Summary: Examples and Documents for asciidoc
|
|
|
|
Group: Development/Tools/Doc Generators
|
|
|
|
License: GPL v2 or later
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
This package contains examples and documetns of asciidoc.
|
|
|
|
|
2007-01-15 22:51:37 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-01-08 13:50:47 +00:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2008-07-24 21:39:25 +00:00
|
|
|
%patch3 -p1
|
2009-02-03 21:42:12 +00:00
|
|
|
%patch4
|
2007-01-15 22:51:37 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/asciidoc/filters
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/asciidoc
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
install -m 0644 *.conf $RPM_BUILD_ROOT/etc/asciidoc
|
2009-01-08 13:50:47 +00:00
|
|
|
install -m 0644 filters/*/*.conf $RPM_BUILD_ROOT/etc/asciidoc/filters/
|
|
|
|
install -m 0755 filters/*/*.py $RPM_BUILD_ROOT/etc/asciidoc/filters/
|
2007-01-15 22:51:37 +00:00
|
|
|
install -m 0755 -D asciidoc.py $RPM_BUILD_ROOT%{_bindir}/asciidoc
|
|
|
|
install -m 0755 -D a2x $RPM_BUILD_ROOT%{_bindir}/a2x
|
|
|
|
install -m 0644 doc/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
2008-07-08 13:59:08 +00:00
|
|
|
for i in images stylesheets javascripts docbook-xsl dblatex; do
|
2007-01-15 22:51:37 +00:00
|
|
|
cp -av $i $RPM_BUILD_ROOT%{_datadir}/asciidoc/
|
|
|
|
ln -s ../../%{_datadir}/asciidoc/$i $RPM_BUILD_ROOT/etc/asciidoc
|
|
|
|
done
|
2008-01-24 19:16:27 +00:00
|
|
|
# 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
|
2007-01-15 22:51:37 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-01-08 13:50:47 +00:00
|
|
|
%config /etc/asciidoc
|
2007-01-15 22:51:37 +00:00
|
|
|
%{_datadir}/asciidoc
|
|
|
|
%{_bindir}/*
|
2008-01-25 15:46:49 +00:00
|
|
|
%{_datadir}/vim
|
2007-01-15 22:51:37 +00:00
|
|
|
%doc %{_mandir}/man1/*
|
2007-11-16 00:12:21 +00:00
|
|
|
%doc README BUGS CHANGELOG COPYRIGHT
|
2007-01-15 22:51:37 +00:00
|
|
|
|
2007-11-16 00:12:21 +00:00
|
|
|
%files examples
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc doc examples
|
2008-01-12 00:19:43 +00:00
|
|
|
|
2007-04-03 17:46:38 +00:00
|
|
|
%changelog
|