(New page: ==Proposed Packaging Guidelines for Documentation Packages generated by Publican== ==Package naming convention== Proposed: Documentation packages be named with version numbering in the p...) |
|||
Line 14: | Line 14: | ||
==Desktop .spec file== | ==Desktop .spec file== | ||
Proposed: Allow the Desktop entry to be included inline in the %install section of the spec file rather than requiring it as a separate file. | Proposed: Allow the Desktop entry to be included inline in the <code>%install</code> section of the <code>.spec</code> file rather than requiring it as a separate file. | ||
for example: | for example: | ||
<pre>%install | |||
rm -rf $RPM_BUILD_ROOT | |||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications | |||
cat > %{name}.desktop <<'EOF' | cat > %{name}.desktop <<'EOF' | ||
Line 28: | Line 32: | ||
Encoding=UTF-8 | Encoding=UTF-8 | ||
Terminal=false | Terminal=false | ||
EOF | EOF</pre> | ||
See: [https://bugzilla.redhat.com/show_bug.cgi?id=482972 https://bugzilla.redhat.com/show_bug.cgi?id=482972] | See: | ||
[https://www.redhat.com/archives/fedora-docs-list/2009-March/msg00153.html https://www.redhat.com/archives/fedora-docs-list/2009-March/msg00153.html] | * [https://bugzilla.redhat.com/show_bug.cgi?id=482972 https://bugzilla.redhat.com/show_bug.cgi?id=482972] | ||
* [https://www.redhat.com/archives/fedora-docs-list/2009-March/msg00153.html https://www.redhat.com/archives/fedora-docs-list/2009-March/msg00153.html] |
Revision as of 01:44, 30 March 2009
Proposed Packaging Guidelines for Documentation Packages generated by Publican
Package naming convention
Proposed: Documentation packages be named with version numbering in the package name to allow parallel installation of multiple versions.
Example: fedora-security-guide-11-en-US
Rationale: There are several use cases where installing multiple versions of documentation on the same system is desirable.
See: https://bugzilla.redhat.com/show_bug.cgi?id=476471#c57 https://www.redhat.com/archives/fedora-docs-list/2009-March/msg00154.html
Desktop .spec file
Proposed: Allow the Desktop entry to be included inline in the %install
section of the .spec
file rather than requiring it as a separate file.
for example:
%install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications cat > %{name}.desktop <<'EOF' [Desktop Entry] Name=fedora 11: security-guide Comment=A Guide to Securing Fedora Linux Exec=%{viewer} %{_docdir}/%{name}-%{version}/index.html Icon=%{_docdir}/%{name}-%{version}/images/icon.svg Categories=Documentation;X-Red-Hat-Base; Type=Application Encoding=UTF-8 Terminal=false EOF
See: