automatic version update by autodist [release 4.3.2-1mamba;Wed May 19 2021]
This commit is contained in:
parent
cce538c791
commit
28f7339b1f
134
publican.spec
134
publican.spec
@ -1,46 +1,59 @@
|
||||
%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
|
||||
Version: 2.8
|
||||
Release: 3mamba
|
||||
Version: 4.3.2
|
||||
Release: 1mamba
|
||||
Summary: Common files and scripts for publishing with DocBook XML
|
||||
Group: Applications/Text
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://fedorahosted.org/publican/
|
||||
Source: https://fedorahosted.org/released/publican/Publican-%{version}.tar.gz
|
||||
URL: https://sourceware.org/publican/
|
||||
Source: https://sourceware.org/publican/releases/Publican-v%{version}.tar.gz
|
||||
Patch0: publican-2.8-fix-test-suite-perl-CA.patch
|
||||
License: Artistic, Creative Commons License, GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: libperl
|
||||
BuildRequires: perl-Archive-Zip
|
||||
BuildRequires: perl-Config-Simple
|
||||
BuildRequires: perl-DateTime
|
||||
BuildRequires: perl-DateTime-Format-DateParse
|
||||
BuildRequires: perl-DBD-SQLite
|
||||
BuildRequires: perl-DBI
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl-DateTime
|
||||
BuildRequires: perl-DateTime-Format-DateParse
|
||||
BuildRequires: perl-File-Copy-Recursive
|
||||
BuildRequires: perl-File-Find-Rule
|
||||
BuildRequires: perl-File-pushd
|
||||
BuildRequires: perl-File-Inplace
|
||||
BuildRequires: perl-File-Slurp
|
||||
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-Image-Size
|
||||
BuildRequires: perl-HTML-WikiConverter
|
||||
BuildRequires: perl-IO-String
|
||||
BuildRequires: perl-Locale-Maketext-Gettext
|
||||
BuildRequires: perl-Locale-PO
|
||||
BuildRequires: perl-Magick
|
||||
BuildRequires: perl-Makefile-Parser
|
||||
BuildRequires: perl-Sort-Versions
|
||||
BuildRequires: perl-String-Similarity
|
||||
BuildRequires: perl-Syntax-Highlight-Engine-Kate
|
||||
BuildRequires: perl-Template-Toolkit
|
||||
BuildRequires: perl-Text-CSV_XS
|
||||
BuildRequires: perl-XML-LibXML
|
||||
BuildRequires: perl-XML-LibXSLT
|
||||
BuildRequires: perl-XML-Simple
|
||||
BuildRequires: perl-XML-TreeBuilder
|
||||
BuildRequires: perl-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: perl(HTML::WikiConverter::Markdown)
|
||||
BuildRequires: perl(Lingua::EN::Fathom)
|
||||
BuildRequires: perl(Locale::Msgfmt)
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: docbook-xsl
|
||||
BuildRequires: docbook5-xsl
|
||||
BuildRequires: gettext-devel
|
||||
# fonts
|
||||
BuildRequires: baekmuk-ttf-fonts
|
||||
@ -52,24 +65,20 @@ BuildRequires: liberation-fonts
|
||||
BuildRequires: lklug-fonts
|
||||
BuildRequires: sazanami-fonts
|
||||
# java
|
||||
BuildRequires: apache-fop == 0.95
|
||||
BuildRequires: apache-fop
|
||||
BuildRequires: apache-batik
|
||||
BuildRequires: jakarta-commons-logging
|
||||
BuildRequires: jakarta-commons-io
|
||||
BuildRequires: java-excalibur-avalon-framework
|
||||
BuildRequires: xmlgraphics-commons == 1.3.1
|
||||
BuildRequires: java-xmlgraphics-commons
|
||||
BuildRequires: docbook5-xsl
|
||||
Requires: apache-batik
|
||||
Requires: apache-fop == 0.95
|
||||
Requires: apache-fop
|
||||
Requires: cvs
|
||||
Requires: docbook-xsl
|
||||
Requires: docbook5-xsl
|
||||
Requires: gettext
|
||||
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: cjkuni-ukai-ttf-fonts
|
||||
Requires: cjkuni-uming-ttf-fonts
|
||||
@ -78,7 +87,6 @@ Requires: ipa-pgothic-fonts
|
||||
Requires: liberation-fonts
|
||||
Requires: lklug-fonts
|
||||
Requires: sazanami-fonts
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup -q -n Publican-%{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
|
||||
%setup -q -n Publican-v%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Build.PL \
|
||||
installdirs=vendor \
|
||||
perl=%{__perl}
|
||||
# From internal spec file
|
||||
sed -i -e 's,PATH,%{DBPATH},g' catalog
|
||||
XML_CATALOG_FILES=$dir/catalog %{__perl} Build.PL installdirs=vendor --nocolours=1
|
||||
|
||||
./Build
|
||||
dir=`pwd` && cd Users_Guide && perl -CA -I $dir/blib/lib $dir/blib/script/publican build \
|
||||
--formats=html-desktop --publish --langs=all \
|
||||
XML_CATALOG_FILES=$dir/catalog ./Build --nocolours=1
|
||||
dir=`pwd`
|
||||
|
||||
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_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
|
||||
[ "%{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 \;
|
||||
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|@@ICON@@|%{_docdir}/%{name}-doc-%{version}/en-US/images/icon.svg|' 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%{!?_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
|
||||
lang=`echo "$file" | sed -e 's/po\/\(.*\)\.po/\1/'`;
|
||||
mkdir -p %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES;
|
||||
msgfmt $file -o %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/%{name}.mo;
|
||||
done
|
||||
# Package web common files
|
||||
mkdir -p -m755 %{buildroot}/%{wwwdir}/common
|
||||
dir=`pwd`
|
||||
cd datadir/Common_Content/common
|
||||
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}
|
||||
|
||||
@ -149,29 +168,38 @@ done
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/publican-website.cfg
|
||||
%config(noreplace) %{_sysconfdir}/bash_completion.d/_publican
|
||||
%{_bindir}/db4-2-db5
|
||||
%{_bindir}/db5-valid
|
||||
%{_bindir}/publican
|
||||
%dir %{_datadir}/publican
|
||||
%config(noreplace) %{_datadir}/publican/default.db
|
||||
%{_datadir}/publican/rpmlint.cfg
|
||||
%{_datadir}/publican/Common_Content
|
||||
%{_datadir}/publican/book_templates
|
||||
%{_datadir}/publican/fop
|
||||
%{_datadir}/publican/rpm_templates
|
||||
%{_datadir}/publican/sitetemplate
|
||||
%{_datadir}/publican/templates
|
||||
%{_datadir}/publican/xsl
|
||||
%{_datadir}/publican/footer.html
|
||||
%{_datadir}/publican/header.html
|
||||
%{perl_vendorlib}/Publican.pm
|
||||
%{perl_vendorlib}/Publican/*
|
||||
%{_datadir}/applications/openmamba-publican-releasenotes.desktop
|
||||
%{_datadir}/applications/openmamba-publican.desktop
|
||||
%{_mandir}/man3/*.3pm.gz
|
||||
%{_mandir}/man1/publican.1.gz
|
||||
%{_mandir}/man1/publican.1*
|
||||
%doc Artistic COPYING LICENSE
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/applications/publican.desktop
|
||||
/%{wwwdir}/common
|
||||
/%{wwwdir}/common-db5
|
||||
%doc fdl.txt Users_Guide/publish/desktop/*
|
||||
%doc CHANGES README
|
||||
%doc README
|
||||
|
||||
%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
|
||||
- don't depend on perl minor release; call /usr/bin/perl
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user