From 89fbae84840e5f95d82483150b909713c74f4412 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:38:09 +0100 Subject: [PATCH] require exiftool (from perl-Image-ExifTool) [release 1.1.5-2mamba;Fri May 02 2014] --- README.md | 2 + daps.spec | 180 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 182 insertions(+) create mode 100644 daps.spec diff --git a/README.md b/README.md index ce96cb4..97a1a60 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # daps +A DocBook Authoring and Publishing Suite. + diff --git a/daps.spec b/daps.spec new file mode 100644 index 0000000..d0c115b --- /dev/null +++ b/daps.spec @@ -0,0 +1,180 @@ +Name: daps +Version: 1.1.5 +Release: 2mamba +Summary: DocBook Authoring and Publishing Suite +Group: Applications/Publishing +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://daps.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/daps/daps-%{version}.tar.bz2 +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A DocBook Authoring and Publishing Suite. + +%prep +%setup -q -n %{name} + +%build +%configure \ + --disable-edit-rootcatalog +%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} /"}'; } > %{_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} //{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 +%{_sysconfdir}/daps/catalog.xml +%{_sysconfdir}/daps/config +%{_sysconfdir}/daps/config.in +%{_sysconfdir}/daps/docbook-xmlformat.conf +%dir %{_sysconfdir}/daps/fop +%{_sysconfdir}/daps/fop/fop-daps.xml +%dir %{_sysconfdir}/daps/xep +%dir %{_sysconfdir}/daps/xep/hyphen +%{_sysconfdir}/daps/xep/hyphen/czhyphen.il2 +%{_sysconfdir}/daps/xep/hyphen/dehyph_rx.tex +%{_sysconfdir}/daps/xep/hyphen/dkcommon.tex +%{_sysconfdir}/daps/xep/hyphen/eshyph_rx.tex +%{_sysconfdir}/daps/xep/hyphen/huhyph_rx.tex +%{_sysconfdir}/daps/xep/hyphen/hyphen_rx.tex +%{_sysconfdir}/daps/xep/hyphen/ithyph_rx.tex +%{_sysconfdir}/daps/xep/hyphen/plhyph_rx.tex +%{_sysconfdir}/daps/xep/hyphen/ruhyphal.tex +%{_sysconfdir}/daps/xep/xep-daps.xml +%{_sysconfdir}/xml/for-catalog-daps.xml +%{_bindir}/ccecho +%{_bindir}/daps +%{_bindir}/daps-auto.pl +%{_bindir}/daps-envconvert +%{_bindir}/daps-init +%{_bindir}/daps-susespell +%{_bindir}/daps-xmlformat +%dir %{_datadir}/daps +%dir %{_datadir}/daps/daps-xslt +%dir %{_datadir}/daps/daps-xslt/common +%{_datadir}/daps/daps-xslt/common/* +%dir %{_datadir}/daps/daps-xslt/desktop +%{_datadir}/daps/daps-xslt/desktop/* +%dir %{_datadir}/daps/daps-xslt/epub +%{_datadir}/daps/daps-xslt/epub/db2db.xsl +%dir %{_datadir}/daps/daps-xslt/index +%{_datadir}/daps/daps-xslt/index/xml2idx.xsl +%dir %{_datadir}/daps/daps-xslt/mallard +%{_datadir}/daps/daps-xslt/mallard/docbook.xsl +%dir %{_datadir}/daps/daps-xslt/profiling +%{_datadir}/daps/daps-xslt/profiling/* +%dir %{_datadir}/daps/daps-xslt/yelp +%{_datadir}/daps/daps-xslt/yelp/docbook.xsl +%dir %{_datadir}/daps/init_templates +%{_datadir}/daps/init_templates/* +%dir %{_datadir}/daps/lib +%{_datadir}/daps/lib/daps_functions +%{_datadir}/daps/lib/entities.common.sed +%{_datadir}/daps/lib/entities.preserve.sed +%{_datadir}/daps/lib/entities.recover.sed +%{_datadir}/daps/lib/suse_aspell.rws +%dir %{_datadir}/daps/libexec +%{_datadir}/daps/libexec/daps-fop +%{_datadir}/daps/libexec/daps-xep +%{_datadir}/daps/libexec/entities-exchange.sh +%{_datadir}/daps/libexec/getentityname.py +%{_datadir}/daps/libexec/webhelpindexer +%dir %{_datadir}/daps/make +%{_datadir}/daps/make/common.mk +%{_datadir}/daps/make/images.mk +%{_datadir}/daps/make/layout.mk +%{_datadir}/daps/make/package.mk +%dir %{_datadir}/doc/daps/ +%{_datadir}/doc/daps/* +%{_datadir}/emacs/site-lisp/docbook_macros.el +%{_datadir}/fonts/truetype/NimbusMonL-Bold.ttf +%{_datadir}/fonts/truetype/NimbusMonL-BoldObli.ttf +%{_datadir}/fonts/truetype/NimbusMonL-Regu.ttf +%{_datadir}/fonts/truetype/NimbusMonL-ReguObli.ttf +%{_datadir}/fonts/truetype/TomsCallouts.ttf +%{_mandir}/man1/ccecho.1* +%{_mandir}/man1/daps.1* +%doc AUTHORS COPYING + +%changelog +* Fri May 02 2014 Silvan Calarco 1.1.5-2mamba +- require exiftool (from perl-Image-ExifTool) + +* Wed Apr 30 2014 Silvan Calarco 1.1.5-1mamba +- package created using the webbuild interface