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
|
|
|
#
|
2020-01-14 15:24:42 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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
|
2020-01-14 15:24:42 +00:00
|
|
|
Version: 9.0.0rc1
|
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
|
2020-01-14 15:24:42 +00:00
|
|
|
URL: https://github.com/asciidoc/asciidoc-py3
|
|
|
|
Source0: https://github.com/%{name}/%{name}-py3/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
|
2020-01-14 15:24:42 +00:00
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: python3-xml
|
2008-05-05 23:33:07 +00:00
|
|
|
Requires: docbook-xsl-stylesheets
|
2020-01-14 15:24:42 +00:00
|
|
|
Requires: python3
|
|
|
|
Requires: python3-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
|
2020-01-14 15:29:29 +00:00
|
|
|
%autosetup -n %{name}-py3-%{version} -p1
|
2007-01-15 22:51:37 +00:00
|
|
|
|
2020-01-14 15:24:42 +00:00
|
|
|
# do not use env
|
2020-01-14 15:29:29 +00:00
|
|
|
find ./ -name \*.py -exec sed -i -e 's:%{_bindir}/env\ :%{_bindir}/:g' {} \;
|
2020-01-14 15:24:42 +00:00
|
|
|
|
2007-01-15 22:51:37 +00:00
|
|
|
%build
|
2020-01-14 15:29:29 +00:00
|
|
|
autoreconf -fiv
|
2017-10-04 07:04:15 +00:00
|
|
|
%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
|
2020-01-14 15:29:29 +00:00
|
|
|
%license COPYRIGHT
|
|
|
|
%doc README.asciidoc BUGS.txt CHANGELOG.txt
|
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/*
|
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
|