Compare commits

...

17 Commits
master ... f12

Author SHA1 Message Date
Ruediger Landmann 254f2aea0c * Thu Oct 07 2010 Jeff Fearn <jfearn@redhat.com> 2.3-0
- Prepend product name to product/version splash pages.
- Fix bash completion for --brand and --type.
- Use --nocolours in spec files.
- Update tocs when home/product/version pages are updated. BZ #612027
- Scroll to current entry in navigation menu.
- Highlight current book in navigation menu.
- Fix single quote in abstract/subtitle breaking RPM install. BZ #642088
- Fix RPM website not installing cleanly.
- Fix splash page icon wrap. BZ #642109
- Moved titles before: example, equation, table. BZ #638787
- Change html and PDF style for verbatim & example. BZ #638787
- Change html and PDF style for admonitions. BZ #638787
- Fix HTML footer style and layout.
- Add bump action Tech Preview.
- Fix indexterm merge missing nested nodes. BZ #643275
- Add phrase to translatable tag list. BZ #643287
- Fix POT files breaking when using HTML::Tree 4.0.
- Fix translated label missing from manually installed book. BZ #643781
- Add icon.svg to Create Book. BZ #644105
- Add XML dump options for site config.
- Fix histroy typo
- Stop max_image_width overriding XML width settings.
- Decrease white space at top and bottom of PDF.
- Fix toc links to refentry in chunked HTML. BZ #645602
2010-10-26 13:04:51 +10:00
Ruediger Landmann 0bc1079559 * Wed Oct 06 2010 Jeff Fearn <jfearn@redhat.com> 2.2-0
- Extend callout graphics to 40; adjust colour and font BZ #629804 <r.landmann@redhat.com>
- Make keycombo example consistent with RHEL6 behaviour. BZ #618735 <r.landmann@redhat.com>
- Restrict CSS style for edition to title pages to avoid applying to bibliographies <r.landmann@redhat.com>
- Fix images/icon.svg breaking rpm build. BZ #612515
- Fix empty term breaking PDF build. BZ #614728
- Fix footnote not catching modified para. BZ #565903
- Fix SRPM not including web labels. BZ #621036
- Update tocs when home page is updated. BZ #612027
- Don't display stats for unused languages. BZ #613500
- Fix admonitions/varlistentry not having IDs. BZ #616112
- Fix procedure/itemizedlist/orderedlist not having IDs. BZ #612817
- Catch invalid revision in translation. BZ #621721
- Limit index.html redirection to installed languages. BZ #612009
- Fix smaller width being overridden by max_image_width. BZ #613140
- Fix support for def_lang for web sites. BZ #622030
- Remove ant trails from selected links.
- Add --novalid option to disable validation when building. BZ #616142
- Revert change to escaping ', ", >, <. BZ #628266
- Add support for product and version splash pages. BZ #613502
- Fix unused version breaking product hiding.
- Add support for alerts for parameters.
- Add bash completion.
- Validate revnumber for changelog. BZ #628464
- Add basic man page support. BZ #632027
- Add basic support for line numbers. BZ #629463
- Add warning messages for out of date translations.
- Add productname to IGNOREBLOCKS. BZ #625316
- Add OPDS support. BZ #615831
- Fix translated labels in web nav. BZ #631647
- Remove highlighting from output of prompt tag in html. BZ #618902 <ryanlerch@gmail.com>
- Resize index title font to a sane size. BZ #624392
- Fix misapplied fonts for CJK. BZ #628786
- Fix attributes breaking translation merge. BZ #638816
- Fix entities missing from RPM description. BZ #626254
- Add bridgehead_in_toc parameter. BZ #616123
- Support '--lang all' for lang_stats.
- Left align CJK in PDF. BZ #639811
- Fix constraint regex on docname and productname. BZ #640082
2010-10-06 11:49:50 +10:00
Fedora Release Engineering e1cb5f7e10 dist-git conversion 2010-07-29 09:52:18 +00:00
Rüdiger Landmann a762eca185 - Fix broken install_book not updating DB.
- Fix typos in docs.
2010-07-07 02:43:06 +00:00
Rüdiger Landmann 4d97086e5e - Add Publican::Website.
- Add web_*_label params for web menus.
- Add underscores to cleanset, installbrand, and printtree. BZ #581090
- Update docs with Website content
- Update brand license text.
- Fix different log jar path on F14+
- Add constraint to help_config output.
- Fix segfault when indexterm has no leading content. BZ #592666
- Fix inline indexterm. BZ #592823
- Translate productname tag. BZ #592669
- Fix formalpara missing ID. BZ #595564
- Add dummy lang.css to avoid 404's. BZ #595799
- Improve validation error message. BZ #593887
- Fix qandaentry ID. BZ #593892
- Fix Icon non-conformance. BZ #593890
- Fix admonitions splitting across pages. BZ #596257
- Fix HTML simple list border. BZ #599258
- Fix formal object IDs. BZ #601363
- Fix Revision History layout. BZ #559787 #598828 #598833
- Remove title color from term in HTML. BZ #592822
- Fix highlight breaking callouts. BZ #590933
- Add support for LineColumn coords in area tag.
- Update font requires for F12 and F13.
- Fix clean_ids adding newline to verbatim. BZ #604465
- Fix index missing ID. BZ #606418
- Fix files dir being missed. BZ #609345
- Adjust admonition layout.
2010-07-06 05:40:07 +00:00
Rüdiger Landmann 3ef1b817bc - Disable verbatim hyphenation. BZ #577068
- Fix anchors breaking HTML. BZ #579069
- Fix common options not in help text.
- Fix formatting of abstract in spec. BZ #579928
- Translate verbatim tags. BZ #580360
- Add print_unused option. BZ #580799
- Overwrite zero length PO files. BZ #581397
- Fix citerefentry breaking translation. BZ #581773
- Fix reference bug in html-single.
- Added print_known and print_banned actions.
- Fix typo in POD. Raphaël Hertzog <hertzog@debian.org>
- Fix indexterm translation. BZ #582255
- Fix non-breaking space being treated like normal white space. BZ #582649
- Fix webkit & pdf table borders. BZ #585115
- Make indexterm translatable. BZ #582680
- Make keyword translatable. BZ #583224
- Add Eclipse help target. BZ #587489
- Convert MAX_WIDTH to a parameter max_image_width. BZ #580774
- Add confidential text to title, first, and blank pages in PDF. BZ #588980
- Add confidential_text parameter. BZ #588980
- Fix article list formatting in HTML. BZ #588999
- Fix epub validation issues. BZ #589333
- Fix xref to term with indexterm BOOM. BZ #580751
- Fix keyword highlight breaking callouts. BZ #590933
- Fix right icon misaligned. BZ #590964
2010-05-12 05:31:49 +00:00
Rüdiger Landmann 542466e6db - Fix hyphenate.verbatim running out of depth. BZ #577095
- Fix UTF8 error in translations. BZ #576771
- Add surname and othername to translatable tag list. BZ #578343
- No fuzzy strings in merged XML. BZ #578337
- Allow clean_ids to add entity reference. BZ #576462
- Added --quiet and --nocolours. BZ #578366
2010-04-01 04:51:36 +00:00
Rüdiger Landmann a4d3f890dc - Fix package_brand including unwanted files. BZ #570715
- Fix empty lines breaking callouts. BZ #570046
- Detect verbatim content in translatable content. BZ #571633
- Fix missing IO::String requires properly. BZ #568950
- Add print style sheet to XHTML. RT #60327
- Force UTF8 on all files. BZ #570979
- Fix comments in callout breaking build. BZ #572047
- Fix table border display. BZ #572995
2010-03-23 23:48:51 +00:00
Rüdiger Landmann 501509af3d - Fix missing IO::String requires. BZ #568950
- Fix xml_lang error. BZ #569249
2010-03-01 03:39:17 +00:00
Rüdiger Landmann dcad5a8d80 - Croak if profiling would remove root node.
- Add Archive::Zip to Build.pl
- Fix --config and add to help text
- Force footnotes and indexterms to be inline for translations. BZ #563056
- Add CVS package option. RT #59132
- Fix white space issues in abstract. BZ #559823
- Fix translation strings not matching correctly BZ #563397
- Fix entity with underscore. BZ #561178
- Fix config values of zero being ignored. BZ #564405
- Fix footnote number missing in footer. BZ #565903
- Fix duplicate text in callouts. BZ #561618
- Remove outdated references to catalogs parameter. BZ #565498
- Fix white space in book name breaking creation.
- Fix nested tag with similar name breaking translation. BZ #568201
- Fix translated packages using source version.
- Switch from object to iframe BZ #542524
- More accurate word counts for translations reports.
2010-02-26 04:53:31 +00:00
Rüdiger Landmann 20b3e33dca - make font BuildRequires match requires.
Mon Jan 25 2010 Jeff Fearn <jfearn@redhat.com> 1.4-0
- Ignore obsolete entries in stats code. BZ #546130
- Fix valid_lang matching on unknown languages.
- Fix invalid tag in DTD. BZ #548629
- Added contrib to translation tag list. BZ #550460
- Added firstname, lastname, orgname to translation tag list. BZ #555645
- Remove comments from translations. BZ #555647
- Fix content in root nodes not being added to pot. BZ #554261
- Fix mixed mode content being dropped when merging translations. BZ
    #549925
- Fix ID creation in refentry. BZ #553085
- Add gettext Requires. BZ #550461
- Fix non-default tmp dir. BZ #551974
- Fix validation output. BZ #556684
- Fix tag attributes breaking translation merge. BZ #554230
- Format XML when running create. BZ #556201
- Switch Japanese font to ipa-gothic-fonts on Fedora.
- Fix Japanes mono/proportional font selection.
- Add TTC build time script. BZ #557336
- Add check for main file before parsing.
- Add check for OS before running FOP.
2010-01-29 01:14:09 +00:00
Rüdiger Landmann 07506076a9 - Fixed --version BZ #533081
- Fixed empty params in new book cfg file. BZ #533322
- Fixed clean_ids taking too long.
- Added nowait option for brew.
- Improved epub support. BZ #536706
- Add missing rpm-build req. BZ #537970
- Changed ol ol style. BZ #537256
- Fix missing revision history field crash. BZ #539741
- Fix bug in condition logic in XmlClean. BZ #540685
- Add translation stats. BZ #540696
- Stopped processing xml files in extras dir. BZ #540383
- Fixed callout rendering. BZ #531686
- Fix wrong docs for condition usage. BZ #540691
- Remove list style from stepalternatives. BZ #511404
- Force step::para to keep-with-next if followed by a figure.
- Edited Conventions.xml.
- Exclude Legal_Notice.xml from pot creation.
- Fix nested XML breaking translations.
- Fix syntax highlighting adding whitespace. BZ #544141
- Better error message for Kate language mismatch.
2009-12-08 01:17:56 +00:00
Bill Nottingham 589102522b Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:44:19 +00:00
Rüdiger Landmann 71ca3beeba - Fix images missing from distributed set output. BZ #532837
- Correct image path when running clean_ids.
- Fix typo in format description. BZ #532379
- Add comment to clean.
- force package to run clean to avoid stale content.
2009-11-04 05:24:02 +00:00
Rüdiger Landmann c0f2164c0d - Fix brew failure. BZ #532383
- Fix distributed sets no packaging properly.
2009-11-02 04:02:57 +00:00
Rüdiger Landmann 3bdf0307b8 - Add base langauge summary & descriptions to translated spec file. BZ
#515573
- Fix translated package build failure.
- Change tabs to spaces in generated spec files.
- Fix Locale::Maketext::Gettext dep being missed on RHEL.
- Fix common paths on Windows
- Added docbook-style-xsl dep for version 1.75.1+
- POD fix from Mikhail Gusarov <dottedmag@dottedmag.net>
- Added processing file message to update_pot. BZ #518354
- add EPUB stub
- Clean up Copyright in numerous files.
- Add security callback for exslt:document.
- Update XML::LibXML & XML::LibXSLT minimum versions to 1.67
- Fix rounded corners in HTML. BZ #509768
- Fix nested images breakin in PDF. BZ #491782
- Remove border from HTML table for simplelist. BZ #502126
- Fix remarks not being highlighted in PDF. BZ #509307
- Resize shade.verbatim font size. BZ #497462
- Change step page size limitation to para size limitation. BZ#492984
- Add warning message for missing images. BZ #495821
- Fix fuzzy images. BZ #479794
- swap from paths from Publican to publican and obsolete beta packages.
- Fix large example PDF issue. BZ #531685
2009-11-01 03:51:38 +00:00
Jesse Keating 09eb0527ba Initialize branch F-12 for publican 2009-09-29 06:31:17 +00:00
5 changed files with 459 additions and 132 deletions

View File

@ -1 +0,0 @@
publican-0.44.tgz

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
Publican-2.1.tar.gz
/Publican-2.2.tar.gz
/Publican-2.3.tar.gz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: publican
# $Id$
NAME := publican
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View File

@ -1,49 +1,140 @@
%define my_vendor fedora
%define EMBED_DOCKBOOK45 0
%define HTMLVIEW 0
%define PREMOLESTATION 0
%define FC10 0
%define FC11 1
Name: publican
Summary: Common files and scripts for publishing with DocBook XML
Version: 0.44
Release: 2%{?dist}
License: GPLv2+ and GFDL
# The following directories are licensed under the GFDL:
# content, Book_Template, Set_Template, Article_Template
Group: Applications/Text
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Buildarch: noarch
Source: https://fedorahosted.org/releases/p/u/publican/%{name}-%{version}.tgz
Requires: gettext libxslt docbook-dtds docbook-style-xsl elinks aspell
Requires: %{_bindir}/xml2pot %{_bindir}/po2xml
Requires: perl-ParseLex perl-HTML-Template make
Requires: fop batik saxon ImageMagick
Requires: xerces-j2 rpm-build
Requires: perl-XML-TreeBuilder >= 3.09-11
# Track font name changes
%define RHEL5 %(test %{?dist} == .el5 && echo 1 || echo 0)
%define RHEL6 %(test %{?dist} == .el6 && echo 1 || echo 0)
# Assume not rhel means FC11+ ... ugly
%define OTHER 1
%if %{RHEL6}
%define OTHER 0
%endif
%if %{RHEL5}
%define OTHER 0
%endif
BuildRequires: gettext libxslt docbook-dtds docbook-style-xsl aspell
BuildRequires: %{_bindir}/xml2pot %{_bindir}/po2xml
BuildRequires: desktop-file-utils
BuildRequires: perl-XML-TreeBuilder >= 3.09-11
BuildRequires: fop saxon ImageMagick
# who doesn't have xdg-open?
%define HTMLVIEW %{RHEL5}
Requires: liberation-mono-fonts liberation-sans-fonts liberation-serif-fonts
Requires: cjkuni-uming-fonts
Requires: sazanami-gothic-fonts sazanami-mincho-fonts
Requires: lklug-fonts
Requires: baekmuk-ttf-batang-fonts
# required for desktop file install
%define my_vendor %(test %{OTHER} == 1 && echo "fedora" || echo "redhat")
BuildRequires: liberation-mono-fonts liberation-sans-fonts liberation-serif-fonts
BuildRequires: cjkuni-uming-fonts
BuildRequires: sazanami-gothic-fonts sazanami-mincho-fonts
BuildRequires: lklug-fonts
BuildRequires: baekmuk-ttf-batang-fonts
%define TESTS 0
URL: https://fedorahosted.org/publican
Obsoletes: documentation-devel < 0.26-3
Obsoletes: perl-SGML-Translate <= 0.37-3
Name: publican
Version: 2.3
Release: 0%{?dist}
Summary: Common files and scripts for publishing with DocBook XML
# For a breakdown of the licensing, refer to LICENSE
License: (GPLv2+ or Artistic) and CC0
Group: Applications/Publishing
URL: https://publican.fedorahosted.org
Source0: https://fedorahosted.org/released/publican/Publican-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Limited to these arches on RHEL 6 due to PDF + Java limitations
%if %{RHEL6}
BuildArch: i386 x86_64
%else
BuildArch: noarch
%endif
# Get rid of the old packages
Obsoletes: perl-Publican-WebSite < 1.5
Obsoletes: publican-WebSite-obsoletes < 1.21
Provides: perl-Publican-WebSite = 1.5
Provides: publican-WebSite-obsoletes = 1.21
BuildRequires: perl(Devel::Cover)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Perl::Critic)
BuildRequires: perl(Archive::Tar)
BuildRequires: perl(Archive::Zip)
BuildRequires: perl(Carp)
BuildRequires: perl(Config::Simple)
BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::DateParse)
BuildRequires: perl(Encode)
BuildRequires: perl(File::Copy::Recursive)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Find::Rule)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::pushd)
BuildRequires: perl(HTML::FormatText)
BuildRequires: perl(HTML::TreeBuilder)
BuildRequires: perl(I18N::LangTags::List)
BuildRequires: perl(Image::Magick)
BuildRequires: perl(Image::Size)
BuildRequires: perl(Locale::Maketext::Gettext)
BuildRequires: perl(Locale::Language)
BuildRequires: perl(Locale::PO)
BuildRequires: perl(Makefile::Parser)
BuildRequires: perl(Syntax::Highlight::Engine::Kate)
BuildRequires: perl(Term::ANSIColor)
BuildRequires: perl(Text::Wrap)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(version)
BuildRequires: perl(XML::LibXML) >= 1.67
BuildRequires: perl(XML::LibXSLT) >= 1.67
BuildRequires: perl(XML::Simple)
BuildRequires: perl(XML::TreeBuilder) >= 3.09-15
BuildRequires: fop >= 0.95
BuildRequires: batik
BuildRequires: docbook-style-xsl >= 1.75.2-5
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: perl-Template-Toolkit
BuildRequires: perl(DBD::SQLite)
# Most of these are handled automatically
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Locale::Maketext::Gettext)
Requires: fop >= 0.95
Requires: batik rpm-build
Requires: docbook-style-xsl >= 1.75.2-5
Requires: perl(XML::LibXML) >= 1.67
Requires: perl(XML::LibXSLT) >= 1.67
Requires: perl(XML::TreeBuilder) >= 3.09-15
Requires: gettext cvs
Requires: perl-Template-Toolkit
Requires: perl(DBD::SQLite)
# Pull in the fonts for all languages, else you can't build translated PDF in brew/koji
%if %{RHEL5}
Requires: fonts-bengali fonts-chinese fonts-chinese-zysong fonts-gujarati
Requires: fonts-hindi fonts-japanese fonts-kannada fonts-korean
Requires: fonts-malayalam fonts-oriya fonts-punjabi fonts-sinhala
Requires: fonts-tamil fonts-telugu liberation-fonts
BuildRequires: fonts-bengali fonts-chinese fonts-chinese-zysong fonts-gujarati
BuildRequires: fonts-hindi fonts-japanese fonts-kannada fonts-korean
BuildRequires: fonts-malayalam fonts-oriya fonts-punjabi fonts-sinhala
BuildRequires: fonts-tamil fonts-telugu liberation-fonts
#BuildRequires: java-1.5.0-sun java-1.5.0-sun-devel chkconfig
%endif
%if %{RHEL6}
Requires: liberation-mono-fonts liberation-sans-fonts liberation-serif-fonts
Requires: cjkuni-uming-fonts ipa-gothic-fonts ipa-pgothic-fonts
Requires: lklug-fonts baekmuk-ttf-batang-fonts
BuildRequires: liberation-mono-fonts liberation-sans-fonts liberation-serif-fonts
BuildRequires: cjkuni-uming-fonts ipa-gothic-fonts ipa-pgothic-fonts
BuildRequires: lklug-fonts baekmuk-ttf-batang-fonts
%endif
%if %{OTHER}
Requires: liberation-mono-fonts liberation-sans-fonts liberation-serif-fonts
Requires: cjkuni-uming-fonts ipa-gothic-fonts ipa-pgothic-fonts
Requires: lklug-fonts baekmuk-ttf-batang-fonts
BuildRequires: liberation-mono-fonts liberation-sans-fonts liberation-serif-fonts
BuildRequires: cjkuni-uming-fonts ipa-gothic-fonts ipa-pgothic-fonts
BuildRequires: lklug-fonts baekmuk-ttf-batang-fonts
%endif
Obsoletes: Publican < 1.0
Provides: Publican = 1.0
%description
Publican is a DocBook publication system, not just a DocBook processing tool.
@ -51,13 +142,15 @@ As well as ensuring your DocBook XML is valid, publican works to ensure
your XML is up to publishable standard.
%package doc
Group: Documentation
Summary: Documentation for the Publican package
Group: Documentation
Summary: Documentation for the Publican package
%if %{HTMLVIEW}
Requires: htmlview
Requires: htmlview
%else
Requires: xdg-utils
Requires: xdg-utils
%endif
Obsoletes: Publican-doc < 1.0
Provides: Publican-doc = 1.0
%description doc
Publican is a tool for publishing material authored in DocBook XML.
@ -66,34 +159,25 @@ using publican. It is not a DocBook XML tutorial and concentrates
solely on using the publican tools.
%prep
%setup -q
%setup -q -n Publican-%{version}
%build
%{__make} OS_VER=%{?dist} docs
%{__perl} Build.PL installdirs=vendor
./Build
dir=`pwd` && cd Users_Guide && perl -I $dir/blib/lib $dir/blib/script/publican build \
--formats=html-desktop --publish --langs=all \
--common_config="$dir/blib/datadir" \
--common_content="$dir/blib/datadir/Common_Content"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p -m755 $RPM_BUILD_ROOT%{_datadir}/%{name}/Templates
mkdir -p -m755 $RPM_BUILD_ROOT%{_datadir}/applications
mkdir -p -m755 $RPM_BUILD_ROOT%{_bindir}
install -m 755 bin/* $RPM_BUILD_ROOT%{_bindir}
%if %{EMBED_DOCKBOOK45}
%{__perl} -p -i -e 's|^#CATALOGS_OVERRIDE$|CATALOGS\t= XML_CATALOG_FILES="%{_datadir}/%{name}/xsl/docbook/dtd-4.5/catalog.xml %{_datadir}/%{name}/xsl/docbook/1.72.0/catalog.xml"|g' make/Makefile.templates
%endif
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
for i in fop make xsl Common_Content templates maven; do
cp -rf $i $RPM_BUILD_ROOT%{_datadir}/%{name}/$i
done
cp -rf Book_Template $RPM_BUILD_ROOT%{_datadir}/%{name}/Templates/common-Book_Template
cp -rf Set_Template $RPM_BUILD_ROOT%{_datadir}/%{name}/Templates/common-Set_Template
cp -rf Article_Template $RPM_BUILD_ROOT%{_datadir}/%{name}/Templates/common-Article_Template
%{_fixperms} $RPM_BUILD_ROOT/*
%if %{EMBED_DOCKBOOK45}
cp -rf xsl_extras/docbook $RPM_BUILD_ROOT%{_datadir}/%{name}/xsl/.
%endif
cp xsl_extras/docbook/1.72.0/extensions/saxon65.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/xsl/.
./fop-ttc-metric.pl --outdir $RPM_BUILD_ROOT%{_datadir}/publican/fop/font-metrics --conffile $RPM_BUILD_ROOT%{_datadir}/publican/fop/fop.xconf
sed -i -e 's|@@FILE@@|%{_docdir}/%{name}-doc-%{version}/en-US/index.html|' %{name}.desktop
sed -i -e 's|@@ICON@@|%{_docdir}/%{name}-doc-%{version}/en-US/images/icon.svg|' %{name}.desktop
@ -104,38 +188,299 @@ sed -i -e 's|xdg-open|htmlview|' %{name}.desktop
desktop-file-install --vendor="%{my_vendor}" --dir=$RPM_BUILD_ROOT%{_datadir}/applications %{name}.desktop
for file in po/*.po; do
lang=`echo "$file" | sed -e 's/po\/\(.*\)\.po/\1/'`;
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES;
msgfmt $file -o $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/%{name}.mo;
done
%find_lang %{name}
%check
%if %{TESTS}
./Build test
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README
%doc COPYING
%doc fdl.txt
%{_datadir}/%{name}
%{_bindir}/create_book
%{_bindir}/mkxpot
%{_bindir}/msgxmerge
%{_bindir}/po2xlf
%{_bindir}/po2sgml
%{_bindir}/potmerge
%{_bindir}/poxmerge
%{_bindir}/rmImages
%{_bindir}/StSe_Reports
%{_bindir}/xlf2pot
%{_bindir}/xmlClean
%doc CHANGES README COPYING Artistic
%{perl_vendorlib}/Publican.pm
%{perl_vendorlib}/Publican/*
%{_mandir}/man3/Publican*
%{_mandir}/man1/*
%{_bindir}/publican
%{_datadir}/publican
%config(noreplace) %{_datadir}/publican/default.db
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/publican-website.cfg
%config(noreplace) %{_sysconfdir}/bash_completion.d/_publican
%files doc
%doc docs/*
%defattr(-,root,root,-)
%doc Users_Guide/publish/desktop/*
%{_datadir}/applications/%{my_vendor}-%{name}.desktop
%doc fdl.txt
%changelog
* Fri Sep 21 2009 Jeff Fearn <jfearn@redhat.com> 0.44-2
- remove lohit font deps, they don't work for PDFs generated in FOP
* Tue Oct 26 2010 Jeff Fearn <jfearn@redhat.com> 2.3-0
- Prepend product name to product/version splash pages.
- Fix bash completion for --brand and --type.
- Use --nocolours in spec files.
- Update tocs when home/product/version pages are updated. BZ #612027
- Scroll to current entry in navigation menu.
- Highlight current book in navigation menu.
- Fix single quote in abstract/subtitle breaking RPM install. BZ #642088
- Fix RPM website not installing cleanly.
- Fix splash page icon wrap. BZ #642109
- Moved titles before: example, equation, table. BZ #638787
- Change html and PDF style for verbatim & example. BZ #638787
- Change html and PDF style for admonitions. BZ #638787
- Fix HTML footer style and layout.
- Add bump action Tech Preview.
- Fix indexterm merge missing nested nodes. BZ #643275
- Add phrase to translatable tag list. BZ #643287
- Fix POT files breaking when using HTML::Tree 4.0.
- Fix translated label missing from manually installed book. BZ #643781
- Add icon.svg to Create Book. BZ #644105
- Add XML dump options for site config.
- Fix histroy typo
- Stop max_image_width overriding XML width settings.
- Decrease white space at top and bottom of PDF.
- Fix toc links to refentry in chunked HTML. BZ #645602
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.44-1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Oct 06 2010 Jeff Fearn <jfearn@redhat.com> 2.2-0
- Extend callout graphics to 40; adjust colour and font BZ #629804 <r.landmann@redhat.com>
- Make keycombo example consistent with RHEL6 behaviour. BZ #618735 <r.landmann@redhat.com>
- Restrict CSS style for edition to title pages to avoid applying to bibliographies <r.landmann@redhat.com>
- Fix images/icon.svg breaking rpm build. BZ #612515
- Fix empty term breaking PDF build. BZ #614728
- Fix footnote not catching modified para. BZ #565903
- Fix SRPM not including web labels. BZ #621036
- Update tocs when home page is updated. BZ #612027
- Don't display stats for unused languages. BZ #613500
- Fix admonitions/varlistentry not having IDs. BZ #616112
- Fix procedure/itemizedlist/orderedlist not having IDs. BZ #612817
- Catch invalid revision in translation. BZ #621721
- Limit index.html redirection to installed languages. BZ #612009
- Fix smaller width being overridden by max_image_width. BZ #613140
- Fix support for def_lang for web sites. BZ #622030
- Remove ant trails from selected links.
- Add --novalid option to disable validation when building. BZ #616142
- Revert change to escaping ', ", >, <. BZ #628266
- Add support for product and version splash pages. BZ #613502
- Fix unused version breaking product hiding.
- Add support for alerts for parameters.
- Add bash completion.
- Validate revnumber for changelog. BZ #628464
- Add basic man page support. BZ #632027
- Add basic support for line numbers. BZ #629463
- Add warning messages for out of date translations.
- Add productname to IGNOREBLOCKS. BZ #625316
- Add OPDS support. BZ #615831
- Fix translated labels in web nav. BZ #631647
- Remove highlighting from output of prompt tag in html. BZ #618902 <ryanlerch@gmail.com>
- Resize index title font to a sane size. BZ #624392
- Fix misapplied fonts for CJK. BZ #628786
- Fix attributes breaking translation merge. BZ #638816
- Fix entities missing from RPM description. BZ #626254
- Add bridgehead_in_toc parameter. BZ #616123
- Support '--lang all' for lang_stats.
- Left align CJK in PDF. BZ #639811
- Fix constraint regex on docname and productname. BZ #640082
* Tue Jul 06 2010 Jeff Fearn <jfearn@redhat.com> 2.1-0
- Fix broken install_book not updating DB.
- Fix typos in docs.
* Tue Jul 06 2010 Jeff Fearn <jfearn@redhat.com> 2.0-0
- Add Publican::Website.
- Add web_*_label params for web menus.
- Add underscores to cleanset, installbrand, and printtree. BZ #581090
- Update docs with Website content
- Update brand license text.
- Fix different log jar path on F14+
- Add constraint to help_config output.
- Fix segfault when indexterm has no leading content. BZ #592666
- Fix inline indexterm. BZ #592823
- Translate productname tag. BZ #592669
- Fix formalpara missing ID. BZ #595564
- Add dummy lang.css to avoid 404's. BZ #595799
- Improve validation error message. BZ #593887
- Fix qandaentry ID. BZ #593892
- Fix Icon non-conformance. BZ #593890
- Fix admonitions splitting across pages. BZ #596257
- Fix HTML simple list border. BZ #599258
- Fix formal object IDs. BZ #601363
- Fix Revision History layout. BZ #559787 #598828 #598833
- Remove title color from term in HTML. BZ #592822
- Fix highlight breaking callouts. BZ #590933
- Add support for LineColumn coords in area tag.
- Update font requires for F12 and F13.
- Fix clean_ids adding newline to verbatim. BZ #604465
- Fix index missing ID. BZ #606418
- Fix files dir being missed. BZ #609345
- Adjust admonition layout.
* Wed May 12 2010 Jeff Fearn <jfearn@redhat.com> 1.6.3-0
- Disable verbatim hyphenation. BZ #577068
- Fix anchors breaking HTML. BZ #579069
- Fix common options not in help text.
- Fix formatting of abstract in spec. BZ #579928
- Translate verbatim tags. BZ #580360
- Add print_unused option. BZ #580799
- Overwrite zero length PO files. BZ #581397
- Fix citerefentry breaking translation. BZ #581773
- Fix reference bug in html-single.
- Added print_known and print_banned actions.
- Fix typo in POD. Raphaël Hertzog <hertzog@debian.org>
- Fix indexterm translation. BZ #582255
- Fix non-breaking space being treated like normal white space. BZ #582649
- Fix webkit & pdf table borders. BZ #585115
- Make indexterm translatable. BZ #582680
- Make keyword translatable. BZ #583224
- Add Eclipse help target. BZ #587489
- Convert MAX_WIDTH to a parameter max_image_width. BZ #580774
- Add confidential text to title, first, and blank pages in PDF. BZ #588980
- Add confidential_text parameter. BZ #588980
- Fix article list formatting in HTML. BZ #588999
- Fix epub validation issues. BZ #589333
- Fix xref to term with indexterm BOOM. BZ #580751
- Fix keyword highlight breaking callouts. BZ #590933
- Fix right icon misaligned. BZ #590964
* Thu Apr 01 2010 Jeff Fearn <jfearn@redhat.com> 1.6.2-0
- Fix hyphenate.verbatim running out of depth. BZ #577095
- Fix UTF8 error in translations. BZ #576771
- Add surname and othername to translatable tag list. BZ #578343
- No fuzzy strings in merged XML. BZ #578337
- Allow clean_ids to add entity reference. BZ #576462
- Added --quiet and --nocolours. BZ #578366
* Mon Mar 22 2010 Jeff Fearn <jfearn@redhat.com> 1.6.1-0
- Fix package_brand including unwanted files. BZ #570715
- Fix empty lines breaking callouts. BZ #570046
- Detect verbatim content in translatable content. BZ #571633
- Fix missing IO::String requires properly. BZ #568950
- Add print style sheet to XHTML. RT #60327
- Force UTF8 on all files. BZ #570979
- Fix comments in callout breaking build. BZ #572047
- Fix table border display. BZ #572995
* Mon Mar 01 2010 Jeff Fearn <jfearn@redhat.com> 1.6-0
- Fix missing IO::String requires. BZ #568950
- Fix xml_lang error. BZ #569249
* Fri Feb 26 2010 Jeff Fearn <jfearn@redhat.com> 1.5-0
- Croak if profiling would remove root node.
- Add Archive::Zip to Build.pl
- Fix --config and add to help text
- Force footnotes and indexterms to be inline for translations. BZ #563056
- Add CVS package option. RT #59132
- Fix white space issues in abstract. BZ #559823
- Fix translation strings not matching correctly BZ #563397
- Fix entity with underscore. BZ #561178
- Fix config values of zero being ignored. BZ #564405
- Fix footnote number missing in footer. BZ #565903
- Fix duplicate text in callouts. BZ #561618
- Remove outdated references to catalogs parameter. BZ #565498
- Fix white space in book name breaking creation.
- Fix nested tag with similar name breaking translation. BZ #568201
- Fix translated packages using source version.
- Switch from object to iframe BZ #542524
- More accurate word counts for translations reports.
* Fri Jan 29 2010 Jeff Fearn <jfearn@redhat.com> 1.4-1
- make font BuildRequires match requires.
* Mon Jan 25 2010 Jeff Fearn <jfearn@redhat.com> 1.4-0
- Ignore obsolete entries in stats code. BZ #546130
- Fix valid_lang matching on unknown languages.
- Fix invalid tag in DTD. BZ #548629
- Added contrib to translation tag list. BZ #550460
- Added firstname, lastname, orgname to translation tag list. BZ #555645
- Remove comments from translations. BZ #555647
- Fix content in root nodes not being added to pot. BZ #554261
- Fix mixed mode content being dropped when merging translations. BZ #549925
- Fix ID creation in refentry. BZ #553085
- Add gettext Requires. BZ #550461
- Fix non-default tmp dir. BZ #551974
- Fix validation output. BZ #556684
- Fix tag attributes breaking translation merge. BZ #554230
- Format XML when running create. BZ #556201
- Switch Japanese font to ipa-gothic-fonts on Fedora.
- Fix Japanes mono/proportional font selection.
- Add TTC build time script. BZ #557336
- Add check for main file before parsing.
- Add check for OS before running FOP.
* Tue Dec 08 2009 Jeff Fearn <jfearn@redhat.com> 1.3-0
- Fixed --version BZ #533081
- Fixed empty params in new book cfg file. BZ #533322
- Fixed clean_ids taking too long.
- Added nowait option for brew.
- Improved epub support. BZ #536706
- Add missing rpm-build req. BZ #537970
- Changed ol ol style. BZ #537256
- Fix missing revision history field crash. BZ #539741
- Fix bug in condition logic in XmlClean. BZ #540685
- Add translation stats. BZ #540696
- Stopped processing xml files in extras dir. BZ #540383
- Fixed callout rendering. BZ #531686
- Fix wrong docs for condition usage. BZ #540691
- Remove list style from stepalternatives. BZ #511404
- Force step::para to keep-with-next if followed by a figure.
- Edited Conventions.xml.
- Exclude Legal_Notice.xml from pot creation.
- Fix nested XML breaking translations.
- Fix syntax highlighting adding whitespace. BZ #544141
- Better error message for Kate language mismatch.
* Wed Nov 4 2009 Jeff Fearn <jfearn@redhat.com> 1.2-0
- Fix images missing from distributed set output. BZ #532837
- Correct image path when running clean_ids.
- Fix typo in format description. BZ #532379
- Add comment to clean.
- force package to run clean to avoid stale content. BZ #538676
* Mon Nov 2 2009 Jeff Fearn <jfearn@redhat.com> 1.1-0
- Fix brew failure. BZ #532383
- Fix distributed sets no packaging properly.
* Mon Oct 26 2009 Jeff Fearn <jfearn@redhat.com> 1.0-0
- Add base langauge summary & descriptions to translated spec file. BZ #515573
- Fix translated package build failure.
- Change tabs to spaces in generated spec files.
- Fix Locale::Maketext::Gettext dep being missed on RHEL.
- Fix common paths on Windows
- Added docbook-style-xsl dep for version 1.75.1+
- POD fix from Mikhail Gusarov <dottedmag@dottedmag.net>
- Added processing file message to update_pot. BZ #518354
- add EPUB stub
- Clean up Copyright in numerous files.
- Add security callback for exslt:document.
- Update XML::LibXML & XML::LibXSLT minimum versions to 1.67
- Fix rounded corners in HTML. BZ #509768
- Fix nested images breakin in PDF. BZ #491782
- Remove border from HTML table for simplelist. BZ #502126
- Fix remarks not being highlighted in PDF. BZ #509307
- Resize shade.verbatim font size. BZ #497462
- Change step page size limitation to para size limitation. BZ#492984
- Add warning message for missing images. BZ #495821
- Fix fuzzy images. BZ #479794
- swap from paths from Publican to publican and obsolete beta packages.
- Fix large example PDF issue. BZ #531685
* Sat Jul 18 2009 Jeff Fearn <jfearn@redhat.com> 0.99-0.ALPHA1
- Rebase to Perl rewrite.
* Wed Mar 25 2009 Jeff Fearn <jfearn@redhat.com> 0.45
- Add keep-together.within-column="always" to step. BZ #492021
- Fix right to left fo ar-AR. BZ #486162
- Patches and translations by Muayyad Alsadi <alsadi@ojuba.org>
- Added missing doccomment and number to PDF highlight. BZ #491241
- Fix files dir missing from RPMs. BZ #492034
* Wed Mar 11 2009 Jeff Fearn <jfearn@redhat.com> 0.44
- Add 0-9 and '.' to DOCNAME regex. BZ #489626
@ -487,10 +832,10 @@ rm -rf $RPM_BUILD_ROOT
- Added build message when copying Product Specific common files
- Move local entity to first position so it overrides common entity files
- Added missing DocBook tags to xmlClean:
- accel blockquote classname code colophon envar example footnote
- guisubmenu interface keycap keycombo literal literallayout option
- parameter prompt property see seealso substeps systemitem wordasword
- glossary glossdiv glosssee glossseealso
- accel blockquote classname code colophon envar example footnote
- guisubmenu interface keycap keycombo literal literallayout option
- parameter prompt property see seealso substeps systemitem wordasword
- glossary glossdiv glosssee glossseealso
- Moved executables in to bin directory.
- Fixed layout of formal para titles in PDF
- Removed trunctaion and elipses from title used for page headers
@ -576,23 +921,23 @@ rm -rf $RPM_BUILD_ROOT
- add DocBook 1.72.0 xsl to package
- modify makefiles to use new DocBook catalogs
- xmlClean:
- Changed DTD from 4.3 to 4.5
- Added bookname to node id's to help avoid id clashes in sets
- Fixed line wrap issue in PDF generation for zh-CN and zh-TW
- Enforced validation of xml on all build targets
- Add legalnotice tag
- Add address tag
- Add street tag
- Add city tag
- Add state tag
- Add postcode tag
- Add country tag
- Add phone tag
- Add fax tag
- Add pob tag
- Add preface tag
- Add bibliograpy related tags
- Add qandaset related tags
- Changed DTD from 4.3 to 4.5
- Added bookname to node id's to help avoid id clashes in sets
- Fixed line wrap issue in PDF generation for zh-CN and zh-TW
- Enforced validation of xml on all build targets
- Add legalnotice tag
- Add address tag
- Add street tag
- Add city tag
- Add state tag
- Add postcode tag
- Add country tag
- Add phone tag
- Add fax tag
- Add pob tag
- Add preface tag
- Add bibliograpy related tags
- Add qandaset related tags
- Removed Confidential image and restyle confidential html text
- Added po2xlf script
- Added xlf2po script
@ -617,9 +962,9 @@ rm -rf $RPM_BUILD_ROOT
- fix image dimensions on content/common/en-US/images/redhat-logo.svg
- remove leading space from rpm spec desription
- Made abstract wrap at 72 characters and be left aligned.
- it's used for the spec description
- it's used for the spec description
- Move legal notice link param from xhtml.xsl to main-html so nochunks
- target will have legal notice embedded in page
- target will have legal notice embedded in page
* Tue Apr 24 2007 Jeff Fearn <jfearn@redhat.com> 0.9.1
- fix path to xsl <blush>
@ -709,3 +1054,4 @@ rm -rf $RPM_BUILD_ROOT
* Wed Feb 07 2007 Jeff Fearn <jfearn@redhat.com> 0.0
- Initial creation

View File

@ -1 +1 @@
720fcfd8903fe370a69107350e2afa22 publican-0.44.tgz
d9c50d9f8c09183f210d7373dd688142 Publican-2.3.tar.gz