| |
@@ -356,7 +356,7 @@
|
| |
This pattern starts with a block of traditional `spec` declarations:
|
| |
|
| |
.SRPM generic declarations
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
Version:
|
| |
Release:
|
| |
@@ -384,7 +384,7 @@
|
| |
%\{fontdocsex}:: exclusions from the `%\{fontdocs}` list
|
| |
|
| |
.Shared font declarations
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
%global foundry SIL
|
| |
%global fontlicense OFL
|
| |
@@ -413,7 +413,7 @@
|
| |
%\{fontdescription}:: a multi-line description block for the generated package. Each line should be less than 80 columns in length.
|
| |
|
| |
.Family-specific font declarations
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
%global fontfamily Andika
|
| |
%global fontsummary SIL Andika, a font family for literacy and beginning readers
|
| |
@@ -431,7 +431,7 @@
|
| |
Then package sources are declared the usual way.
|
| |
|
| |
.Source declarations
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
Source:
|
| |
Source10: [number]-%{fontpkgname}.conf
|
| |
@@ -457,7 +457,7 @@
|
| |
%fontfiles:: generate font package `%file` lists
|
| |
|
| |
.Remainer of the spec file
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
%fontpkg
|
| |
|
| |
@@ -483,7 +483,7 @@
|
| |
Putting it all together:
|
| |
|
| |
.spectemplate-fonts-0-simple.spec
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
include::{examplesdir}/fonts/spectemplate-fonts-0-simple.spec[]
|
| |
----
|
| |
@@ -507,7 +507,7 @@
|
| |
%\{fontpkgheader}:: multi-line container for package header directives
|
| |
|
| |
.Semi-complex family declaration
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
%global fontfamily PT Sans
|
| |
%global fontsummary PT Sans, a grotesque pan-Cyrillic font family
|
| |
@@ -538,7 +538,7 @@
|
| |
Bulky documentation can be split in a separate subpackage
|
| |
|
| |
.Documentation subpackage
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
%package doc
|
| |
Summary: %{name} optional documentation files
|
| |
@@ -565,7 +565,7 @@
|
| |
Putting it all together:
|
| |
|
| |
.spectemplate-fonts-1-full.spec
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
include::{examplesdir}/fonts/spectemplate-fonts-1-full.spec[]
|
| |
----
|
| |
@@ -586,7 +586,7 @@
|
| |
A variable, can be used to share a description block:
|
| |
|
| |
.Using a common description variable
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
%global common_description %{expand:
|
| |
IBM wanted Plex to be a distinctive, yet timeless workhorse — an alternative to
|
| |
@@ -645,7 +645,7 @@
|
| |
* `-z [numbers]` restrict metapackaging to `[numbers]`è space-separated list of font package suffixes
|
| |
|
| |
.Complex metapackaging example
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
%fontmetapkg -z 1,2,3
|
| |
|
| |
@@ -664,7 +664,7 @@
|
| |
Putting it all together:
|
| |
|
| |
.spectemplate-fonts-2-multi.spec
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
include::{examplesdir}/fonts/spectemplate-fonts-2-multi.spec[]
|
| |
----
|
| |
@@ -689,7 +689,7 @@
|
| |
Putting it all together:
|
| |
|
| |
.spectemplate-fonts-3-sub.spec
|
| |
- [source,RPMSpec]
|
| |
+ [source,rpm-spec]
|
| |
----
|
| |
include::{examplesdir}/fonts/spectemplate-fonts-3-sub.spec[]
|
| |
----
|
| |
As with other recent PRs, this updates embedded
.spec
code blocks to be annotated[source,rpm-spec]
rather than[source,RPMSpec]
, asrpm-spec
is one of the officially-recognized aliases for thehighlight.js
rpm-specfile
syntax-highlighting plugin.