automatic version update by autodist [release 4.3.2-1mamba;Wed May 19 2021]

This commit is contained in:
Automatic Build System 2024-01-06 10:34:51 +01:00
parent cce538c791
commit 28f7339b1f

View File

@ -1,46 +1,59 @@
%define with_test 0 %define with_test 0
%define DBPATH %(find /usr/share/sgml/docbook/xml-dtd-4.5*/dbcentx.mod)
%define wwwdir /var/www/html/docs
Name: publican Name: publican
Version: 2.8 Version: 4.3.2
Release: 3mamba Release: 1mamba
Summary: Common files and scripts for publishing with DocBook XML Summary: Common files and scripts for publishing with DocBook XML
Group: Applications/Text Group: Applications/Text
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://fedorahosted.org/publican/ URL: https://sourceware.org/publican/
Source: https://fedorahosted.org/released/publican/Publican-%{version}.tar.gz Source: https://sourceware.org/publican/releases/Publican-v%{version}.tar.gz
Patch0: publican-2.8-fix-test-suite-perl-CA.patch Patch0: publican-2.8-fix-test-suite-perl-CA.patch
License: Artistic, Creative Commons License, GPL License: Artistic, Creative Commons License, GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-Archive-Zip BuildRequires: perl-Archive-Zip
BuildRequires: perl-Config-Simple BuildRequires: perl-Config-Simple
BuildRequires: perl-DateTime
BuildRequires: perl-DateTime-Format-DateParse
BuildRequires: perl-DBD-SQLite BuildRequires: perl-DBD-SQLite
BuildRequires: perl-DBI BuildRequires: perl-DBI
BuildRequires: perl-devel BuildRequires: perl-DateTime
BuildRequires: perl-DateTime-Format-DateParse
BuildRequires: perl-File-Copy-Recursive BuildRequires: perl-File-Copy-Recursive
BuildRequires: perl-File-Find-Rule BuildRequires: perl-File-Find-Rule
BuildRequires: perl-File-pushd BuildRequires: perl-File-Inplace
BuildRequires: perl-File-Slurp
BuildRequires: perl-File-Which BuildRequires: perl-File-Which
BuildRequires: perl-HTML-Format BuildRequires: perl-File-pushd
BuildRequires: perl-HTML-FormatText-WithLinks
BuildRequires: perl-HTML-FormatText-WithLinks-AndTables
BuildRequires: perl-HTML-Formatter
BuildRequires: perl-HTML-Tree BuildRequires: perl-HTML-Tree
BuildRequires: perl-Image-Size BuildRequires: perl-HTML-WikiConverter
BuildRequires: perl-IO-String BuildRequires: perl-IO-String
BuildRequires: perl-Locale-Maketext-Gettext BuildRequires: perl-Locale-Maketext-Gettext
BuildRequires: perl-Locale-PO BuildRequires: perl-Locale-PO
BuildRequires: perl-Magick BuildRequires: perl-Sort-Versions
BuildRequires: perl-Makefile-Parser BuildRequires: perl-String-Similarity
BuildRequires: perl-Syntax-Highlight-Engine-Kate BuildRequires: perl-Syntax-Highlight-Engine-Kate
BuildRequires: perl-Template-Toolkit BuildRequires: perl-Template-Toolkit
BuildRequires: perl-Text-CSV_XS
BuildRequires: perl-XML-LibXML BuildRequires: perl-XML-LibXML
BuildRequires: perl-XML-LibXSLT BuildRequires: perl-XML-LibXSLT
BuildRequires: perl-XML-Simple BuildRequires: perl-XML-Simple
BuildRequires: perl-XML-TreeBuilder BuildRequires: perl-XML-TreeBuilder
BuildRequires: perl-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: perl(HTML::WikiConverter::Markdown)
BuildRequires: perl(Lingua::EN::Fathom)
BuildRequires: perl(Locale::Msgfmt)
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: docbook-xsl BuildRequires: docbook-xsl
BuildRequires: docbook5-xsl
BuildRequires: gettext-devel BuildRequires: gettext-devel
# fonts # fonts
BuildRequires: baekmuk-ttf-fonts BuildRequires: baekmuk-ttf-fonts
@ -52,24 +65,20 @@ BuildRequires: liberation-fonts
BuildRequires: lklug-fonts BuildRequires: lklug-fonts
BuildRequires: sazanami-fonts BuildRequires: sazanami-fonts
# java # java
BuildRequires: apache-fop == 0.95 BuildRequires: apache-fop
BuildRequires: apache-batik BuildRequires: apache-batik
BuildRequires: jakarta-commons-logging BuildRequires: jakarta-commons-logging
BuildRequires: jakarta-commons-io BuildRequires: jakarta-commons-io
BuildRequires: java-excalibur-avalon-framework BuildRequires: java-excalibur-avalon-framework
BuildRequires: xmlgraphics-commons == 1.3.1 BuildRequires: java-xmlgraphics-commons
BuildRequires: docbook5-xsl
Requires: apache-batik Requires: apache-batik
Requires: apache-fop == 0.95 Requires: apache-fop
Requires: cvs Requires: cvs
Requires: docbook-xsl Requires: docbook-xsl
Requires: docbook5-xsl
Requires: gettext Requires: gettext
Requires: perl Requires: perl
Requires: perl(DBD::SQLite)
Requires: perl(Locale::Maketext::Gettext)
Requires: perl-Template-Toolkit
Requires: perl(XML::LibXML)
Requires: perl(XML::LibXSLT)
Requires: perl(XML::TreeBuilder)
Requires: baekmuk-ttf-fonts Requires: baekmuk-ttf-fonts
Requires: cjkuni-ukai-ttf-fonts Requires: cjkuni-ukai-ttf-fonts
Requires: cjkuni-uming-ttf-fonts Requires: cjkuni-uming-ttf-fonts
@ -78,7 +87,6 @@ Requires: ipa-pgothic-fonts
Requires: liberation-fonts Requires: liberation-fonts
Requires: lklug-fonts Requires: lklug-fonts
Requires: sazanami-fonts Requires: sazanami-fonts
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
Publican is a DocBook publication system, not just a DocBook processing tool. Publican is a DocBook publication system, not just a DocBook processing tool.
@ -94,46 +102,57 @@ Publican is a tool for publishing material authored in DocBook XML.
This guide explains how to to create and build books and articles using publican. It is not a DocBook XML tutorial and concentrates solely on using the publican tools. This guide explains how to to create and build books and articles using publican. It is not a DocBook XML tutorial and concentrates solely on using the publican tools.
%prep %prep
%setup -q -n Publican-%{version} %setup -q -n Publican-v%{version}
chmod +w t/900.publican.t
chmod +w t/910.publican.Users_Guide.t
%patch0 -p1
sed -i "s|/usr/share/java/avalon-framework.jar|/usr/share/java/excalibur/avalon-framework.jar|" fop-ttc-metric.pl
%build %build
%{__perl} Build.PL \ # From internal spec file
installdirs=vendor \ sed -i -e 's,PATH,%{DBPATH},g' catalog
perl=%{__perl} XML_CATALOG_FILES=$dir/catalog %{__perl} Build.PL installdirs=vendor --nocolours=1
./Build XML_CATALOG_FILES=$dir/catalog ./Build --nocolours=1
dir=`pwd` && cd Users_Guide && perl -CA -I $dir/blib/lib $dir/blib/script/publican build \ dir=`pwd`
--formats=html-desktop --publish --langs=all \
cd Users_Guide && XML_CATALOG_FILES=$dir/catalog %{__perl} -CDAS -I $dir/blib/lib $dir/blib/script/publican build \
--formats=html-desktop --publish --langs=en-US \
--common_config="$dir/blib/datadir" \ --common_config="$dir/blib/datadir" \
--common_content="$dir/blib/datadir/Common_Content" --common_content="$dir/blib/datadir/Common_Content" --nocolours
cd $dir
cd Release_Notes && XML_CATALOG_FILES=$dir/catalog %{__perl} -CDAS -I $dir/blib/lib $dir/blib/script/publican build \
--formats=html-desktop --publish --langs=en-US \
--common_config="$dir/blib/datadir" \
--common_content="$dir/blib/datadir/Common_Content" --nocolours
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
dir=`pwd`
./Build install destdir=%{buildroot} create_packlist=0 XML_CATALOG_FILES=$dir/catalog ./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
chmod -R u+w %{buildroot}/*
./fop-ttc-metric.pl --outdir %{buildroot}%{_datadir}/publican/fop/font-metrics --conffile %{buildroot}%{_datadir}/publican/fop/fop.xconf %{_fixperms} %{buildroot}/*
sed -i -e 's|@@FILE@@|%{_docdir}/%{name}-doc-%{version}/en-US/index.html|' publican.desktop sed -i -e 's|@@FILE@@|%{_docdir}/%{name}-doc%{!?_docdir_fmt:-%{version}}/en-US/index.html|' %{name}.desktop
sed -i -e 's|@@ICON@@|%{_docdir}/%{name}-doc-%{version}/en-US/images/icon.svg|' publican.desktop sed -i -e 's|@@ICON@@|%{_docdir}/%{name}-doc%{!?_docdir_fmt:-%{version}}/en-US/images/icon.svg|' %{name}.desktop
sed -i -e 's|@@FILE@@|%{_docdir}/%{name}-releasenotes%{!?_docdir_fmt:-%{version}}/en-US/index.html|' %{name}-releasenotes.desktop
sed -i -e 's|@@ICON@@|%{_docdir}/%{name}-releasenotes%{!?_docdir_fmt:-%{version}}/en-US/images/icon.svg|' %{name}-releasenotes.desktop
sed -i -e 's|Categories=Documentation;X-Red-Hat-Base;|Categories=Development;|' publican.desktop desktop-file-install --vendor="openmamba" --dir=%{buildroot}%{_datadir}/applications %{name}.desktop
desktop-file-install --vendor="openmamba" --dir=%{buildroot}%{_datadir}/applications %{name}-releasenotes.desktop
desktop-file-install --dir=%{buildroot}%{_datadir}/applications publican.desktop %find_lang %{name} --with-man
for file in po/*.po; do # Package web common files
lang=`echo "$file" | sed -e 's/po\/\(.*\)\.po/\1/'`; mkdir -p -m755 %{buildroot}/%{wwwdir}/common
mkdir -p %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES; dir=`pwd`
msgfmt $file -o %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/%{name}.mo; cd datadir/Common_Content/common
done XML_CATALOG_FILES=$dir/catalog %{__perl} -CDAS -I $dir/blib/lib $dir/blib/script/publican install_brand --web --path=%{buildroot}/%{wwwdir}/common
cd -
mkdir -p -m755 %{buildroot}/%{wwwdir}/common-db5
cd datadir/Common_Content/common-db5
XML_CATALOG_FILES=$dir/catalog %{__perl} -CDAS -I $dir/blib/lib $dir/blib/script/publican install_brand --web --path=%{buildroot}/%{wwwdir}/common-db5
cd -
%find_lang %{name} %find_lang %{name}
@ -149,29 +168,38 @@ done
%defattr(-,root,root) %defattr(-,root,root)
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/publican-website.cfg %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/publican-website.cfg
%config(noreplace) %{_sysconfdir}/bash_completion.d/_publican %config(noreplace) %{_sysconfdir}/bash_completion.d/_publican
%{_bindir}/db4-2-db5
%{_bindir}/db5-valid
%{_bindir}/publican %{_bindir}/publican
%dir %{_datadir}/publican %dir %{_datadir}/publican
%config(noreplace) %{_datadir}/publican/default.db %config(noreplace) %{_datadir}/publican/default.db
%{_datadir}/publican/rpmlint.cfg
%{_datadir}/publican/Common_Content %{_datadir}/publican/Common_Content
%{_datadir}/publican/book_templates
%{_datadir}/publican/fop %{_datadir}/publican/fop
%{_datadir}/publican/rpm_templates
%{_datadir}/publican/sitetemplate %{_datadir}/publican/sitetemplate
%{_datadir}/publican/templates %{_datadir}/publican/templates
%{_datadir}/publican/xsl %{_datadir}/publican/xsl
%{_datadir}/publican/footer.html
%{_datadir}/publican/header.html
%{perl_vendorlib}/Publican.pm %{perl_vendorlib}/Publican.pm
%{perl_vendorlib}/Publican/* %{perl_vendorlib}/Publican/*
%{_datadir}/applications/openmamba-publican-releasenotes.desktop
%{_datadir}/applications/openmamba-publican.desktop
%{_mandir}/man3/*.3pm.gz %{_mandir}/man3/*.3pm.gz
%{_mandir}/man1/publican.1.gz %{_mandir}/man1/publican.1*
%doc Artistic COPYING LICENSE %doc Artistic COPYING LICENSE
%files doc %files doc
%defattr(-,root,root) %defattr(-,root,root)
%{_datadir}/applications/publican.desktop /%{wwwdir}/common
/%{wwwdir}/common-db5
%doc fdl.txt Users_Guide/publish/desktop/* %doc fdl.txt Users_Guide/publish/desktop/*
%doc CHANGES README %doc README
%changelog %changelog
* Wed May 19 2021 Automatic Build System <autodist@mambasoft.it> 4.3.2-1mamba
- automatic version update by autodist
* Sat Mar 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8-3mamba * Sat Mar 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8-3mamba
- don't depend on perl minor release; call /usr/bin/perl - don't depend on perl minor release; call /usr/bin/perl