]>
Commit | Line | Data |
---|---|---|
23868a4f JB |
1 | # TODO: |
2 | # - svg dtds ("-//W3C//DTD SVG 1.0//EN", "-//W3C//DTD SVG 1.1 Basic//EN") | |
3 | # - oodraw? | |
4 | Summary: DAPS: DocBook Authoring and Publishing Suite | |
5 | Summary(pl.UTF-8): DAPS - zestaw narzędzi do tworzenia i publikowania dokumentów w DocBooku | |
6 | Name: daps | |
7 | Version: 3.0.0 | |
8 | Release: 1 | |
9 | License: GPL v2 or GPL v3 | |
10 | Group: Applications/Publishing | |
11 | #Source0Download: https://github.com/openSUSE/daps/releases | |
12 | Source0: https://github.com/openSUSE/daps/archive/%{version}/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: abb853ba10ecd5c3f8d8edf0dc61b65a | |
14 | URL: https://opensuse.github.io/daps/ | |
15 | BuildRequires: ImageMagick | |
16 | BuildRequires: docbook-style-xsl-nons >= 1.78 | |
17 | BuildRequires: docbook-style-xsl-ns >= 1.78 | |
18 | BuildRequires: docbook-dtd45-xml | |
7af50b21 | 19 | BuildRequires: docbook-dtd51-xml >= 5.1-2 |
23868a4f JB |
20 | BuildRequires: jing |
21 | BuildRequires: libxml2-progs | |
22 | BuildRequires: python3 >= 1:3.4 | |
23 | BuildRequires: python3-lxml >= 3.4.0 | |
24 | BuildRequires: rpm-perlprov | |
25 | BuildRequires: rpmbuild(macros) >= 1.745 | |
26 | BuildRequires: ruby-asciidoctor | |
27 | BuildRequires: sed >= 4.0 | |
28 | BuildRequires: sgml-common | |
29 | Requires: ImageMagick | |
30 | Requires: docbook-style-xsl-nons >= 1.78 | |
31 | Requires: docbook-style-xsl-ns >= 1.78 | |
32 | Requires: docbook-dtd45-xml | |
7af50b21 | 33 | Requires: docbook-dtd51-xml >= 5.1-2 |
23868a4f JB |
34 | Requires: ghostscript |
35 | Requires: jing | |
36 | Requires: jpackage-utils | |
37 | Requires: libxslt-progs | |
38 | Requires: make | |
39 | Requires: python3 >= 1:3.4 | |
40 | Requires: python3-lxml >= 3.4.0 | |
41 | Requires: sgml-common | |
42 | Requires: zip | |
43 | Suggests: dia | |
44 | Suggests: fop >= 1.0 | |
45 | Suggests: inkscape | |
46 | #Suggests: oodraw | |
47 | Suggests: optipng | |
48 | Suggests: perl-Image-ExifTool | |
49 | Suggests: poppler-progs | |
50 | Suggests: saxon | |
51 | Suggests: xfig | |
52 | Suggests: xmlstarlet | |
53 | BuildArch: noarch | |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
55 | ||
56 | %description | |
57 | A complete environment to build HTML, PDF, EPUB and other formats from | |
58 | DocBook XML. Documentation is available at | |
59 | <https://opensuse.github.io/daps/doc/index.html>. | |
60 | ||
61 | %description -l pl.UTF-8 | |
62 | Pełne środowisko do budowania dokumentów w formatach HTML, PDF, EPUB i | |
63 | innych z formatu DocBook XML. Dokumentacja jest dostępna pod | |
64 | <https://opensuse.github.io/daps/doc/index.html>. | |
65 | ||
66 | %package -n bash-completion-daps | |
67 | Summary: Bash completion for daps command | |
68 | Summary(pl.UTF-8): Bashowe dopełnianie parametrów polecenia daps | |
69 | Group: Applications/Shells | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | Requires: bash-completion >= 2.0 | |
72 | ||
73 | %description -n bash-completion-daps | |
74 | Bash completion for daps command. | |
75 | ||
76 | %description -n bash-completion-daps -l pl.UTF-8 | |
77 | Bashowe dopełnianie parametrów polecenia daps. | |
78 | ||
79 | %prep | |
80 | %setup -q | |
81 | ||
82 | %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' libexec/daps-xmlwellformed | |
83 | ||
84 | %build | |
85 | %configure \ | |
86 | DIA=/usr/bin/dia \ | |
87 | EXIFTOOL=/usr/bin/exiftool \ | |
88 | GS=/usr/bin/gs \ | |
89 | INKSCAPE=/usr/bin/inkscape \ | |
90 | OPTIPNG=/usr/bin/optipng \ | |
91 | PDFFONTS=/usr/bin/pdffonts \ | |
92 | XFIG=/usr/bin/xfig \ | |
93 | --disable-edit-rootcatalog | |
94 | %{__make} | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %{__make} -j1 install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
102 | # packaged as %doc | |
103 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/daps | |
104 | ||
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %files | |
109 | %defattr(644,root,root,755) | |
110 | %doc AUTHORS BUGS COPYING ChangeLog README.adoc README.quickstart.adoc TODO TROUBLESHOOTING doc/build/{daps-asciidoc/single-html/daps-asciidoc,daps-quick/single-html/daps-quick,daps-user/single-html/daps-user} | |
111 | %attr(755,root,root) %{_bindir}/ccecho | |
112 | %attr(755,root,root) %{_bindir}/daps | |
113 | %attr(755,root,root) %{_bindir}/daps-auto.pl | |
114 | %attr(755,root,root) %{_bindir}/daps-autobuild | |
115 | %attr(755,root,root) %{_bindir}/daps-check-deps | |
116 | %attr(755,root,root) %{_bindir}/daps-init | |
117 | %attr(755,root,root) %{_bindir}/daps-xmlformat | |
118 | %dir %{_sysconfdir}/daps | |
119 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/daps/CatalogManager.properties | |
120 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/daps/config | |
121 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/daps/docbook-xmlformat.conf | |
122 | %dir %{_sysconfdir}/daps/fop | |
123 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/daps/fop/fop-daps.xml | |
124 | %dir %{_sysconfdir}/daps/xep | |
125 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/daps/xep/xep-daps.xml | |
126 | %dir %{_sysconfdir}/daps/xep/hyphen | |
127 | %{_sysconfdir}/daps/xep/hyphen/czhyphen.il2 | |
128 | %{_sysconfdir}/daps/xep/hyphen/dehyph_rx.tex | |
129 | %{_sysconfdir}/daps/xep/hyphen/dkcommon.tex | |
130 | %{_sysconfdir}/daps/xep/hyphen/eshyph_rx.tex | |
131 | %{_sysconfdir}/daps/xep/hyphen/huhyph_rx.tex | |
132 | %{_sysconfdir}/daps/xep/hyphen/hyphen_rx.tex | |
133 | %{_sysconfdir}/daps/xep/hyphen/ithyph_rx.tex | |
134 | %{_sysconfdir}/daps/xep/hyphen/plhyph_rx.tex | |
135 | %{_sysconfdir}/daps/xep/hyphen/ruhyphal.tex | |
136 | # TODO: add catalog.d support to PLD | |
137 | #%{_sysconfdir}/xml/catalog.d/daps.xml | |
138 | %dir %{_datadir}/daps | |
139 | %{_datadir}/daps/daps-xslt | |
140 | %{_datadir}/daps/init_templates | |
141 | %{_datadir}/daps/lib | |
142 | %dir %{_datadir}/daps/libexec | |
143 | %attr(755,root,root) %{_datadir}/daps/libexec/daps-fop | |
144 | %attr(755,root,root) %{_datadir}/daps/libexec/daps-jing | |
145 | %attr(755,root,root) %{_datadir}/daps/libexec/daps-migrate | |
146 | %attr(755,root,root) %{_datadir}/daps/libexec/daps-xep | |
147 | %attr(755,root,root) %{_datadir}/daps/libexec/daps-xmlwellformed | |
148 | %attr(755,root,root) %{_datadir}/daps/libexec/daps-xslt | |
149 | %attr(755,root,root) %{_datadir}/daps/libexec/entities-exchange.sh | |
150 | %attr(755,root,root) %{_datadir}/daps/libexec/getentityname.py | |
151 | %attr(755,root,root) %{_datadir}/daps/libexec/webhelpindexer | |
152 | %attr(755,root,root) %{_datadir}/daps/libexec/xml_cat_resolver | |
153 | %{_datadir}/daps/libexec/daps-xmlwellformed-xinclude.xsl | |
154 | %{_datadir}/daps/make | |
155 | %{_datadir}/xml/daps | |
156 | %{_mandir}/man1/ccecho.1* | |
157 | %{_mandir}/man1/daps.1* | |
158 | %{_mandir}/man1/daps-autobuild.1* | |
159 | %{_mandir}/man1/daps-init.1* | |
160 | ||
161 | %files -n bash-completion-daps | |
162 | %defattr(644,root,root,755) | |
163 | %{bash_compdir}/daps | |
164 | ||
165 | # -n emacs-docbook? | |
166 | #%{_datadir}/emacs/site-lisp/docbook_macros.el |