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
|
|
|
#
|
2019-10-17 13:42:56 +00:00
|
|
|
# Copyright (c) 2019 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.
|
|
|
|
|
2019-10-17 13:42:56 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 22:51:37 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: asciidoc
|
2017-10-04 07:04:15 +00:00
|
|
|
Version: 8.6.10
|
2015-03-09 06:58:07 +00:00
|
|
|
Release: 0
|
2007-01-15 22:51:37 +00:00
|
|
|
Summary: Text-Based Document Generation
|
2019-10-17 13:42:56 +00:00
|
|
|
License: GPL-2.0-or-later
|
2017-10-04 07:04:15 +00:00
|
|
|
Url: http://asciidoc.org
|
|
|
|
Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2017-10-04 12:32:57 +00:00
|
|
|
Patch0: asciidoc.version.patch
|
2017-10-04 07:04:15 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2017-11-07 12:46:54 +00:00
|
|
|
BuildRequires: python2 >= 2.3
|
|
|
|
BuildRequires: python2-xml
|
2008-05-05 23:33:07 +00:00
|
|
|
Requires: docbook-xsl-stylesheets
|
2017-11-07 12:46:54 +00:00
|
|
|
Requires: python2 >= 2.3
|
|
|
|
Requires: python2-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-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
|
|
|
|
|
|
|
|
%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
|
2017-10-04 12:32:57 +00:00
|
|
|
%patch0 -p1
|
2007-01-15 22:51:37 +00:00
|
|
|
|
|
|
|
%build
|
2017-11-07 12:46:54 +00:00
|
|
|
sed -i "s|python|python2|g" Makefile.in
|
2017-10-04 07:04:15 +00:00
|
|
|
autoreconf -fi
|
|
|
|
%configure
|
2007-01-15 22:51:37 +00:00
|
|
|
|
|
|
|
%install
|
2017-10-04 07:04:15 +00:00
|
|
|
%make_install
|
|
|
|
|
|
|
|
# Strip .py extension from binaries
|
|
|
|
pushd %{buildroot}%{_bindir}
|
|
|
|
mv %{name}.py %{name}
|
|
|
|
mv a2x.py a2x
|
|
|
|
popd
|
|
|
|
|
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
|
2017-10-04 07:04:15 +00:00
|
|
|
%config %{_sysconfdir}/%{name}
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/a2x
|
2008-01-25 15:46:49 +00:00
|
|
|
%{_datadir}/vim
|
2017-10-04 07:04:15 +00:00
|
|
|
%{_mandir}/man1/*
|
2017-10-06 07:35:01 +00:00
|
|
|
%doc README.asciidoc BUGS.txt CHANGELOG.txt COPYRIGHT
|
2007-01-15 22:51:37 +00:00
|
|
|
|
2007-11-16 00:12:21 +00:00
|
|
|
%files examples
|
|
|
|
%doc doc examples
|
2008-01-12 00:19:43 +00:00
|
|
|
|
2007-04-03 17:46:38 +00:00
|
|
|
%changelog
|