2024-01-05 21:38:09 +01:00
|
|
|
Name: daps
|
2024-01-05 21:38:09 +01:00
|
|
|
Version: 3.0.0
|
|
|
|
Release: 1mamba
|
2024-01-05 21:38:09 +01:00
|
|
|
Summary: DocBook Authoring and Publishing Suite
|
|
|
|
Group: Applications/Publishing
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 21:38:09 +01:00
|
|
|
URL: https://daps.sourceforge.net/
|
|
|
|
Source: https://github.com/openSUSE/daps.git/%{version}/daps-%{version}.tar.bz2
|
2024-01-05 21:38:09 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libperl
|
|
|
|
BuildRequires: perl-Config-IniFiles
|
|
|
|
BuildRequires: perl-File-Copy-Recursive
|
|
|
|
BuildRequires: perl-File-Rsync
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires(post): libxml2-utils
|
|
|
|
Requires(post): xml-common
|
|
|
|
Requires(post): docbook-xsl
|
|
|
|
Requires(post): docbook-dtds
|
|
|
|
Requires: apache-fop
|
|
|
|
Requires: perl-Image-ExifTool
|
|
|
|
|
|
|
|
%description
|
|
|
|
A DocBook Authoring and Publishing Suite.
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 21:38:09 +01:00
|
|
|
%setup -q
|
2024-01-05 21:38:09 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--disable-edit-rootcatalog
|
2024-01-05 21:38:09 +01:00
|
|
|
|
2024-01-05 21:38:09 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
{ sed '/<\/catalog>/d' /etc/xml/catalog; \
|
|
|
|
/usr/bin/xmllint --nocatalogs --format %{_sysconfdir}/xml/for-catalog-daps.xml | \
|
|
|
|
awk '/<\/catalog>/{next} s == 1 {print} /<catalog/{s=1} \
|
|
|
|
END{print "</catalog>"}'; } > %{_sysconfdir}/xml/catalog.2t9kL
|
|
|
|
chmod --reference=%{_sysconfdir}/xml/catalog %{_sysconfdir}/xml/catalog.2t9kL
|
|
|
|
mv %{_sysconfdir}/xml/catalog.2t9kL %{_sysconfdir}/xml/catalog
|
|
|
|
|
|
|
|
# From docbook-xsl post script
|
|
|
|
CATALOG=/etc/xml/catalog
|
|
|
|
[ -e $CATALOG ] || /usr/bin/xmlcatalog --noout --create $CATALOG
|
|
|
|
|
|
|
|
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl/1.78.1" \
|
|
|
|
"file:///usr/share/sgml/docbook/xsl-stylesheets-1.78.1" $CATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl/1.78.1" \
|
|
|
|
"file:///usr/share/sgml/docbook/xsl-stylesheets-1.78.1" $CATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
|
|
|
"file:///usr/share/sgml/docbook/xsl-stylesheets-1.78.1" $CATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
|
|
|
"file:///usr/share/sgml/docbook/xsl-stylesheets-1.78.1" $CATALOG
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/usr/bin/xmllint --nocatalogs --format %{_sysconfdir}/xml/catalog | \
|
|
|
|
awk "/<\/group>/ && s == 1 {s=0;next} s == 1 {next} /<group id=\"daps\">/{s=1;next} {print}" > %{_sysconfdir}/xml/catalog.1CGk0
|
|
|
|
chmod --reference=%{_sysconfdir}/xml/catalog %{_sysconfdir}/xml/catalog.1CGk0
|
|
|
|
mv %{_sysconfdir}/xml/catalog.1CGk0 %{_sysconfdir}/xml/catalog
|
|
|
|
|
|
|
|
# From docbook-xsl post script
|
|
|
|
CATALOG=/etc/xml/catalog
|
|
|
|
[ -e $CATALOG ] || /usr/bin/xmlcatalog --noout --create $CATALOG
|
|
|
|
|
|
|
|
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl/1.78.1" \
|
|
|
|
"file:///usr/share/sgml/docbook/xsl-stylesheets-1.78.1" $CATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl/1.78.1" \
|
|
|
|
"file:///usr/share/sgml/docbook/xsl-stylesheets-1.78.1" $CATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "rewriteSystem" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
|
|
|
"file:///usr/share/sgml/docbook/xsl-stylesheets-1.78.1" $CATALOG
|
|
|
|
/usr/bin/xmlcatalog --noout --add "rewriteURI" \
|
|
|
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
|
|
|
"file:///usr/share/sgml/docbook/xsl-stylesheets-1.78.1" $CATALOG
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_sysconfdir}/daps
|
2024-01-05 21:38:09 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/daps/config
|
|
|
|
%{_sysconfdir}/daps/CatalogManager.properties
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_sysconfdir}/daps/docbook-xmlformat.conf
|
|
|
|
%dir %{_sysconfdir}/daps/fop
|
|
|
|
%{_sysconfdir}/daps/fop/fop-daps.xml
|
|
|
|
%dir %{_sysconfdir}/daps/xep
|
|
|
|
%dir %{_sysconfdir}/daps/xep/hyphen
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_sysconfdir}/daps/xep/hyphen/*
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_sysconfdir}/daps/xep/xep-daps.xml
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_sysconfdir}/xml/catalog.d/daps.xml
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_bindir}/ccecho
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_bindir}/daps*
|
|
|
|
%{_datadir}/xml/daps/schema/daps-autobuild.rnc
|
2024-01-05 21:38:09 +01:00
|
|
|
%dir %{_datadir}/daps
|
|
|
|
%dir %{_datadir}/daps/daps-xslt
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_datadir}/daps/daps-xslt/*
|
2024-01-05 21:38:09 +01:00
|
|
|
%dir %{_datadir}/daps/init_templates
|
|
|
|
%{_datadir}/daps/init_templates/*
|
|
|
|
%dir %{_datadir}/daps/lib
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_datadir}/daps/lib/*
|
2024-01-05 21:38:09 +01:00
|
|
|
%dir %{_datadir}/daps/libexec
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_datadir}/daps/libexec/*
|
2024-01-05 21:38:09 +01:00
|
|
|
%dir %{_datadir}/daps/make
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_datadir}/daps/make/*.mk
|
2024-01-05 21:38:09 +01:00
|
|
|
%dir %{_datadir}/doc/daps/
|
|
|
|
%{_datadir}/doc/daps/*
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_datadir}/bash-completion/completions/daps
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_datadir}/emacs/site-lisp/docbook_macros.el
|
|
|
|
%{_mandir}/man1/ccecho.1*
|
2024-01-05 21:38:09 +01:00
|
|
|
%{_mandir}/man1/daps*.1*
|
2024-01-05 21:38:09 +01:00
|
|
|
%doc AUTHORS COPYING
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 21:38:09 +01:00
|
|
|
* Wed Feb 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.0-1mamba
|
|
|
|
- update to 3.0.0
|
|
|
|
|
2024-01-05 21:38:09 +01:00
|
|
|
* Fri May 02 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.5-2mamba
|
|
|
|
- require exiftool (from perl-Image-ExifTool)
|
|
|
|
|
|
|
|
* Wed Apr 30 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.5-1mamba
|
|
|
|
- package created using the webbuild interface
|