Font packaging library in Fedora
Project description
Font RPM Spec Generator
This tool generates RPM specfile for a given font.
setup & use
$ pip3 install build
$ python3 -m build
$ pip3 install --user dist/fontrpmspec*.whl
usage
fontrpmspec-gen
usage: fontrpmspec-gen [-h] [-f JSON_FILE] [-l LICENSE] [-o OUTPUT]
[--outputdir OUTPUTDIR] [--sourcedir SOURCEDIR]
[-s SOURCE] [-c CHANGELOG] [--email EMAIL]
[--username USERNAME] [--summary SUMMARY]
[--description DESCRIPTION]
[--common-description COMMON_DESCRIPTION] [-a ALIAS]
[--lang [LANG ...]] [--priority PRIORITY]
[--vf-priority VF_PRIORITY] [--foundry FOUNDRY]
[-e EXCLUDEPATH] [--rpmautospec | --no-rpmautospec]
[--autorelease-opt AUTORELEASE_OPT]
[--ignore-error [IGNORE_ERROR ...]]
NAME [VERSION] URL
Fonts RPM spec file generator against guidelines
positional arguments:
NAME Package name
VERSION Package version (default: None)
URL Project URL
options:
-h, --help show this help message and exit
-f, --json-file JSON_FILE
Config file written in JSON (default: None)
-l, --license LICENSE
License name of this project (default: OFL-1.1)
-o, --output OUTPUT Output file (default: -)
--outputdir OUTPUTDIR
Output directory (default: .)
--sourcedir SOURCEDIR
Source directory (default: .)
-s, --source SOURCE Source file (default: None)
-c, --changelog CHANGELOG
Changelog entry (default: Initial import)
--email EMAIL email address to put into changelog (default:
tagoh@redhat.com)
--username USERNAME Real user name to put into changelog (default: Akira
TAGOH)
--summary SUMMARY Summary text for package (default: {family}, {alias}
typeface {type} font)
--description DESCRIPTION
Package description (default: This package contains
{family} which is a {alias} typeface of {type} font.)
--common-description COMMON_DESCRIPTION
Common package description. this is only used when
generating multi packages. (default: None)
-a, --alias ALIAS Set an alias name for family, such as sans-serif,
serif, monospace (default: auto)
--lang [LANG ...] Targetted language for a font (default: None)
--priority PRIORITY Number of Fontconfig config priority (default: 69)
--vf-priority VF_PRIORITY
Number of Fontconfig config priority for variable font
(default: 68)
--foundry FOUNDRY Use this as foundry name instead of figuring out from
a font (default: None)
-e, --excludepath EXCLUDEPATH
Exclude path from source archives (default: None)
--rpmautospec, --no-rpmautospec
Use rpmautospec. (default: True)
--autorelease-opt AUTORELEASE_OPT
Extra arguments to %autorelease. (default: None)
--ignore-error [IGNORE_ERROR ...]
Deal with the specific error as warning (default:
None)
fontrpmspec-conv
usage: fontrpmspec-conv [-h] [--foundry FOUNDRY] [--sourcedir SOURCEDIR]
[-o OUTPUT] [--ignore-error [IGNORE_ERROR ...]]
SPEC
Fonts RPM spec file converter against guidelines
positional arguments:
SPEC Spec file to convert
options:
-h, --help show this help message and exit
--foundry FOUNDRY Use this as foundry name instead of figuring out from
a font. (default: None)
--sourcedir SOURCEDIR
Source directory (default: .)
-o, --output OUTPUT Output file (default: -)
--ignore-error [IGNORE_ERROR ...]
Deal with the specific error as warning (default:
None)
Note:
- You may need to update
BuildRequiressection as per your font requiremnts in your spec. - Also update the
%buildsection if your font uses some other build process.
fontrpmspec-gentmt
usage: fontrpmspec-gentmt [-h] [--extra-buildopts EXTRA_BUILDOPTS] [-a] [-l [FILE]]
[-s] [-O OUTPUTDIR] [-v]
REPO
TMT plan generator
positional arguments:
REPO Package repository path
options:
-h, --help show this help message and exit
--extra-buildopts EXTRA_BUILDOPTS
Extra buildopts to build package (default: None)
-a, --add-prepare Add prepare section for local testing (default: False)
-l, --local [FILE] Generate a fmf file for local testing. `fedpkg local`
must be run before `tmt run` (default: False)
-s, --single-plan Generate single plan with list file (default: False)
-O, --outputdir OUTPUTDIR
Output directory (default: None)
-v, --verbose Show more detailed logs (default: False)
Happy Packaging :)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fontrpmspec-0.19.tar.gz.
File metadata
- Download URL: fontrpmspec-0.19.tar.gz
- Upload date:
- Size: 38.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1196d0f02cb9b0dd1605e3ee2f01038247c7d9c93645e531c5a77e6dd660585
|
|
| MD5 |
9ecdbc9b49f4fb9ef6e817fe9ac04ee0
|
|
| BLAKE2b-256 |
89d3f7a5afdf20c9f225554efd97fb8a0f79f842709e830706fe55956282b429
|
Provenance
The following attestation bundles were made for fontrpmspec-0.19.tar.gz:
Publisher:
publish.yml on fedora-i18n/font-rpm-spec-generator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontrpmspec-0.19.tar.gz -
Subject digest:
f1196d0f02cb9b0dd1605e3ee2f01038247c7d9c93645e531c5a77e6dd660585 - Sigstore transparency entry: 665019348
- Sigstore integration time:
-
Permalink:
fedora-i18n/font-rpm-spec-generator@0ebf5170d33539eb1f033f39c3b637ce976f340f -
Branch / Tag:
refs/tags/0.19 - Owner: https://github.com/fedora-i18n
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0ebf5170d33539eb1f033f39c3b637ce976f340f -
Trigger Event:
release
-
Statement type:
File details
Details for the file fontrpmspec-0.19-py3-none-any.whl.
File metadata
- Download URL: fontrpmspec-0.19-py3-none-any.whl
- Upload date:
- Size: 45.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49897eb18dc924090061ccd358435c60bfba23877d08f54d3e7a985854a5529a
|
|
| MD5 |
f07512b631ef8a0643e7fa4d9f710eef
|
|
| BLAKE2b-256 |
f333ddc4e367dd27c7f83b5466c589ccee1deb45c10e7f2e3bdcf7e0d51187d1
|
Provenance
The following attestation bundles were made for fontrpmspec-0.19-py3-none-any.whl:
Publisher:
publish.yml on fedora-i18n/font-rpm-spec-generator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fontrpmspec-0.19-py3-none-any.whl -
Subject digest:
49897eb18dc924090061ccd358435c60bfba23877d08f54d3e7a985854a5529a - Sigstore transparency entry: 665019359
- Sigstore integration time:
-
Permalink:
fedora-i18n/font-rpm-spec-generator@0ebf5170d33539eb1f033f39c3b637ce976f340f -
Branch / Tag:
refs/tags/0.19 - Owner: https://github.com/fedora-i18n
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0ebf5170d33539eb1f033f39c3b637ce976f340f -
Trigger Event:
release
-
Statement type: