Spec-file and build environment fixes
OBS-URL: https://build.opensuse.org/package/show/Documentation:Tools/daps?expand=0&rev=206
This commit is contained in:
parent
8e4f93313a
commit
93f1081831
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:4cb178ca20fe1865f6b9bc7707edad3175d33b9dcc6481feabf04bda503b162d
|
oid sha256:062eb5420d6995f4d179ed2faffbed265d9ae5055be3a9547d1084fe020a3501
|
||||||
size 2245473
|
size 2387786
|
||||||
|
21
daps.spec
21
daps.spec
@ -42,7 +42,7 @@ Release: 0
|
|||||||
%define daps_catalog for-catalog-%{name}.xml
|
%define daps_catalog for-catalog-%{name}.xml
|
||||||
|
|
||||||
Summary: DocBook Authoring and Publishing Suite
|
Summary: DocBook Authoring and Publishing Suite
|
||||||
License: GPL-2.0-only OR GPL-3.0-only
|
License: GPL-2.0 or GPL-3.0
|
||||||
Group: Productivity/Publishing/XML
|
Group: Productivity/Publishing/XML
|
||||||
Url: https://github.com/openSUSE/daps
|
Url: https://github.com/openSUSE/daps
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
@ -61,6 +61,7 @@ BuildRequires: docbook_4
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: ghostscript
|
BuildRequires: ghostscript
|
||||||
BuildRequires: inkscape
|
BuildRequires: inkscape
|
||||||
|
BuildRequires: jing
|
||||||
BuildRequires: libxml2-tools
|
BuildRequires: libxml2-tools
|
||||||
BuildRequires: libxslt
|
BuildRequires: libxslt
|
||||||
BuildRequires: libxslt-tools
|
BuildRequires: libxslt-tools
|
||||||
@ -75,6 +76,19 @@ BuildRequires: xml-commons-jaxp-1.3-apis
|
|||||||
BuildRequires: xmlgraphics-fop >= 0.94
|
BuildRequires: xmlgraphics-fop >= 0.94
|
||||||
BuildRequires: xmlstarlet
|
BuildRequires: xmlstarlet
|
||||||
|
|
||||||
|
# Asciidoctor is not available on Leap 42.3
|
||||||
|
# If we have asciidoctor we build the asciidoc manual
|
||||||
|
# for which we need docbook_5 and jing
|
||||||
|
#
|
||||||
|
%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
|
||||||
|
Recommends: rubygem(%{rb_default_ruby_abi}:asciidoctor)
|
||||||
|
%else
|
||||||
|
Requires: rubygem(%{rb_default_ruby_abi}:asciidoctor)
|
||||||
|
BuildRequires: docbook_5
|
||||||
|
BuildRequires: jing
|
||||||
|
BuildRequires: rubygem(%{rb_default_ruby_abi}:asciidoctor)
|
||||||
|
%endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# In order to keep the requirements list as short as possible, only packages
|
# In order to keep the requirements list as short as possible, only packages
|
||||||
# needed to build EPUB, HTML and PDF are really required
|
# needed to build EPUB, HTML and PDF are really required
|
||||||
@ -109,7 +123,6 @@ Requires: xml-commons-jaxp-1.3-apis
|
|||||||
Requires: xmlgraphics-fop >= 0.94
|
Requires: xmlgraphics-fop >= 0.94
|
||||||
Requires: xmlstarlet
|
Requires: xmlstarlet
|
||||||
Requires: zip
|
Requires: zip
|
||||||
Requires: rubygem(%{rb_default_ruby_abi}:asciidoctor)
|
|
||||||
|
|
||||||
Recommends: aspell-en
|
Recommends: aspell-en
|
||||||
Recommends: calibre
|
Recommends: calibre
|
||||||
@ -164,10 +177,6 @@ sed -i '1 s|/usr/bin/env python|/usr/bin/python|' libexec/daps-xmlwellformed
|
|||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# FIXME: temporary workaround for buildstep that is not executed... start workaround vvv
|
|
||||||
sed -i 's_\(xml:base\)="[^"]*"_\1="file:///usr/share/daps/daps-xslt/"_g' $RPM_BUILD_ROOT/%{_sysconfdir}/xml/catalog.d/%{name}.xml
|
|
||||||
# ^^^ end workaround
|
|
||||||
|
|
||||||
# create symlinks:
|
# create symlinks:
|
||||||
%fdupes -s $RPM_BUILD_ROOT/%{_datadir}
|
%fdupes -s $RPM_BUILD_ROOT/%{_datadir}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user