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
|
|
|
#
|
2015-03-09 06:58:07 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: asciidoc
|
2015-03-09 06:58:07 +00:00
|
|
|
Version: 8.6.9
|
|
|
|
Release: 0
|
2007-01-15 22:51:37 +00:00
|
|
|
Summary: Text-Based Document Generation
|
2012-10-27 13:11:21 +00:00
|
|
|
License: GPL-2.0+
|
2007-11-16 00:12:21 +00:00
|
|
|
Group: Development/Tools/Doc Generators
|
2015-03-09 06:58:07 +00:00
|
|
|
Url: http://www.methods.co.nz/asciidoc/
|
|
|
|
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2008-05-05 23:33:07 +00:00
|
|
|
Requires: docbook-xsl-stylesheets
|
2012-10-27 13:11:21 +00:00
|
|
|
Requires: python >= 2.3
|
|
|
|
Requires: python-xml
|
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-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
|
|
|
|
|
|
|
|
%description examples
|
2012-10-27 13:11:21 +00:00
|
|
|
This package contains examples and documents of asciidoc.
|
2007-11-16 00:12:21 +00:00
|
|
|
|
2007-01-15 22:51:37 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2015-03-09 06:58:07 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/asciidoc/filters
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/asciidoc
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
install -m 0644 *.conf %{buildroot}%{_sysconfdir}/asciidoc
|
|
|
|
install -m 0644 filters/*/*.conf %{buildroot}%{_sysconfdir}/asciidoc/filters/
|
|
|
|
install -m 0755 filters/*/*.py %{buildroot}%{_sysconfdir}/asciidoc/filters/
|
|
|
|
install -m 0755 -D asciidoc.py %{buildroot}%{_bindir}/asciidoc
|
|
|
|
install -m 0755 -D a2x.py %{buildroot}%{_bindir}/a2x
|
|
|
|
install -m 0644 doc/*.1 %{buildroot}%{_mandir}/man1/
|
2008-07-08 13:59:08 +00:00
|
|
|
for i in images stylesheets javascripts docbook-xsl dblatex; do
|
2015-03-09 06:58:07 +00:00
|
|
|
cp -av $i %{buildroot}%{_datadir}/asciidoc/
|
|
|
|
ln -s ../../%{_datadir}/asciidoc/$i %{buildroot}%{_sysconfdir}/asciidoc
|
2007-01-15 22:51:37 +00:00
|
|
|
done
|
2008-01-24 19:16:27 +00:00
|
|
|
# install vim files
|
2015-03-09 06:58:07 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/vim/site/{syntax,ftdetect}
|
|
|
|
install -m 0644 vim/syntax/* %{buildroot}%{_datadir}/vim/site/syntax
|
2007-01-15 22:51:37 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2015-03-09 06:58:07 +00:00
|
|
|
%config %{_sysconfdir}/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
|