asciidoc/asciidoc.spec

85 lines
2.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package asciidoc
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: asciidoc
Version: 8.6.9
Release: 0
Summary: Text-Based Document Generation
License: GPL-2.0+
Group: Development/Tools/Doc Generators
Url: http://www.methods.co.nz/asciidoc/
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
Requires: docbook-xsl-stylesheets
Requires: python >= 2.3
Requires: python-xml
Recommends: dblatex
# a2x needs /usr/bin/xsltproc
Recommends: libxslt
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%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.
%package examples
Summary: Examples and Documents for asciidoc
Group: Development/Tools/Doc Generators
%description examples
This package contains examples and documents of asciidoc.
%prep
%setup -q
%build
%install
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/
for i in images stylesheets javascripts docbook-xsl dblatex; do
cp -av $i %{buildroot}%{_datadir}/asciidoc/
ln -s ../../%{_datadir}/asciidoc/$i %{buildroot}%{_sysconfdir}/asciidoc
done
# install vim files
mkdir -p %{buildroot}%{_datadir}/vim/site/{syntax,ftdetect}
install -m 0644 vim/syntax/* %{buildroot}%{_datadir}/vim/site/syntax
%files
%defattr(-,root,root)
%config %{_sysconfdir}/asciidoc
%{_datadir}/asciidoc
%{_bindir}/*
%{_datadir}/vim
%doc %{_mandir}/man1/*
%doc README BUGS CHANGELOG COPYRIGHT
%files examples
%defattr(-,root,root)
%doc doc examples
%changelog