1
1
#
2
2
# spec file for package daps
3
3
#
4
- # Copyright (c) 2020 SUSE LLC
4
+ # Copyright (c) 2021 SUSE LLC
5
5
#
6
6
# All modifications and additions to the file contributed by third parties
7
7
# remain the property of their copyright owners, unless otherwise agreed
17
17
18
18
19
19
Name: daps
20
- Version: 3.0 .0
20
+ Version: 3.1 .0
21
21
Release: 0
22
22
23
- ###############################################################
24
- #
25
- # ATTENTION: Do NOT edit this file outside of
26
- # https://github.com/openSUSE/daps/blob/main/packaging/daps.spec
27
- #
28
- # Your changes will be lost on the next update
29
- # If you do not have access to the GitHub repository, notify
30
- # <fsundermeyer@opensuse.org> or <toms@opensuse.org>
31
- # or send a patch
32
- #
33
- ################################################################
34
- #
35
- # Please submit bugfixes or comments via
36
- # https://github.com/openSUSE/daps/issues
37
- #
38
-
39
23
%define docbuilddir %{_datadir }/daps
40
- %define regcat %{_bindir }/sgml-register-catalog
41
- %define dbstyles %{_datadir }/xml/docbook/stylesheet/nwalsh/current
42
- %define daps_catalog for-catalog-%{name }.xml
43
24
44
25
Summary: DocBook Authoring and Publishing Suite
45
26
License: GPL-2.0 -only OR GPL-3.0 -only
46
27
Group: Productivity/Publishing/XML
47
28
URL: https://github.com/openSUSE/daps
48
29
Source0: %{name }-%{version }.tar.bz2
49
30
Source1: %{name }.rpmlintrc
50
- Source2: %{name }-fetch-source-git
51
31
BuildRoot: %{_tmppath }/%{name }-%{version }-build
52
32
53
33
BuildArch: noarch
@@ -58,6 +38,7 @@ BuildRequires: bash >= 4
58
38
BuildRequires: dia
59
39
BuildRequires: docbook-xsl-stylesheets >= 1.77
60
40
BuildRequires: docbook_4
41
+ BuildRequires: docbook_5
61
42
BuildRequires: fdupes
62
43
BuildRequires: ghostscript
63
44
BuildRequires: inkscape
@@ -73,21 +54,8 @@ BuildRequires: xerces-j2
73
54
BuildRequires: xml-apis
74
55
BuildRequires: xmlgraphics-fop >= 0.94
75
56
BuildRequires: xmlstarlet
76
-
77
- # Asciidoctor is not available on Leap 42.3
78
- # If we have asciidoctor we build the asciidoc manual
79
- # for which we need docbook_5 and jing
80
- #
81
- %if 0%{?sle_version } == 120300 && 0%{?is_opensuse }
82
- Recommends: rubygem(%{rb_default_ruby_abi }:asciidoctor)
83
- %else
84
- Requires: rubygem(%{rb_default_ruby_abi }:asciidoctor)
85
- BuildRequires: docbook_5
86
- BuildRequires: jing
87
57
BuildRequires: rubygem(%{rb_default_ruby_abi }:asciidoctor)
88
- %endif
89
58
90
- #
91
59
# In order to keep the requirements list as short as possible, only packages
92
60
# needed to build EPUB, HTML and PDF are really required
93
61
# All other packages required for editing or more exotic output formats
@@ -118,6 +86,7 @@ Requires: xml-apis
118
86
Requires: xmlgraphics-fop >= 0.94
119
87
Requires: xmlstarlet
120
88
Requires: zip
89
+ Requires: rubygem(%{rb_default_ruby_abi }:asciidoctor)
121
90
122
91
Recommends: aspell-en
123
92
Recommends: calibre
@@ -136,10 +105,7 @@ Recommends: w3m
136
105
Recommends: xmlformat
137
106
138
107
# Internal XEP package:
139
- Recommends: xep
140
-
141
- Obsoletes: susedoc < 4.3.32
142
- Provides: susedoc = 4.3.32
108
+ Suggests: xep
143
109
144
110
%description
145
111
DocBook Authoring and Publishing Suite (DAPS)
@@ -150,18 +116,13 @@ single command. It also contains tools to generate profiled source
150
116
tarballs for distributing your XML sources for translation or review.
151
117
152
118
DAPS also includes tools that assist you when writing DocBook XML:
153
- linkchecker, validator , spellchecker, editor macros and stylesheets for
119
+ validator, link checker , spellchecker, editor macros and stylesheets for
154
120
converting DocBook XML.
155
121
156
- DAPS is the successor of susedoc. See
157
- /usr/share/doc/packages/daps/README.upgrade_from_susedoc_4.x
158
- for upgrade instructions.
159
-
160
122
161
123
#--------------------------------------------------------------------------
162
124
%prep
163
- %setup -q -n %{name }
164
- #%%patch1 -p1
125
+ %setup -q -n %{name }-%{version }
165
126
166
127
# Correct shebang line as suggested in
167
128
# https://lists.opensuse.org/opensuse-packaging/2018-03/msg00017.html
@@ -170,7 +131,7 @@ sed -i '1 s|/usr/bin/env python|/usr/bin/python|' libexec/daps-xmlwellformed
170
131
#--------------------------------------------------------------------------
171
132
%build
172
133
%configure --docdir=%{_defaultdocdir }/%{name } --disable-edit-rootcatalog
173
- %__make %{?_smp_mflags }
134
+ %__make %{?_smp_mflags }
174
135
175
136
#--------------------------------------------------------------------------
176
137
%install
0 commit comments