publican package
command, Publican generates a tarball that you can use to build a package to distribute through different package manager software. If you run publican package
on a computer on which rpmbuild is not installed, Publican still generates the tarball, even though it cannot then generate an RPM package from that tarball.
/usr/share/doc/
, the location specified by the Filesystem Hierarchy Standard (FHS) for ‘Miscellaneous documentation’.[2] The desktop RPM package also contains a desktop file, to be placed in /usr/share/applications/
. This file enables desktop environments such as GNOME and KDE to add the installed document to their menus for ease of reference by users.
/var/www/html/
, a common document root for web servers. Note that the web SRPM package generates both a web binary RPM package and desktop binary RPM package.
publican package
commandpublican package --lang=Language_Code
command to package documents for distribution in the language that you specify with the --lang
option. Refer to Appendix D, Language codes for more information about language codes.
publican package
with no options other than the mandatory --lang
option, Publican produces a web SRPM package. The full range of options for publican package
is as follows:
--lang
ignored_translations
parameter in the document's publican.cfg
file. The package will be named appropriately for the language, but will contain documentation in the original language of the XML rather than a partial translation. When translation is complete, remove the ignored_translations
parameter, increase the release number in the Project-Id-Version
field in the Book_Info.po
file for that language, and generate the package again. When you distribute the revised package, it becomes available to replace the original untranslated package.
--desktop
--brew
--scratch
--brew
and --desktop
options, specifies that a SRPM package should be built as a scratch build when sent to Brew. Scratch builds are used to verify that an SRPM package is structured correctly, without updating the package database to use the resulting package.
--short_sighted
version
in the publican.cfg
file) in the package name.
--binary
publican package
command, Publican outputs completed SRPM packages to the document's tmp/rpm
directory, and completed binary RPM packages to the document's tmp/rpm/noarch
directory.
productname
-title
-productnumber
-[web]
-language
-edition
-pubsnumber
.[build_target]
.noarch.file_extension
. Publican uses the information in the document's publican.cfg
file to supply the various parameters in the file name, and then information in the Book_Info.xml
file for any parameters missing from the publican.cfg
file. Refer to Section 3.1, “Files in the book directory” for details of configuring these files. Additionally:
-web-
between the product version and the language code.
.src.rpm
but binary RPM packages have the file extension .rpm
[build_target]
.noarch
before the file extension, where [build_target]
represents the operating system and version that the package is built for as set by the os_ver
parameter in the publican.cfg
file. The noarch
element specifies that the package can be installed on any system, regardless of the system architecture.
--short_sighted
option removes the -productnumber
-
from the package name.
publican package
command — Example usagepublican package --lang=cs-CZ
publican package --desktop --lang=cs-CZ
publican package --binary --lang=cs-CZ
publican package --desktop --binary --lang=cs-CZ
publican package --desktop --short_sighted --lang=cs-CZ