Skip to main content

Font RPM Spec Generator

pip version badge tag badge license badge

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 BuildRequires section as per your font requiremnts in your spec.
  • Also update the %build section 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 :)

Release files for fontrpmspec 0.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fontrpmspec 0.19
File Size Uploaded
fontrpmspec-0.19.tar.gz 38.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fontrpmspec 0.19
File Interpreter ABI Platform
fontrpmspec-0.19-py3-none-any.whl Python 3 none any Details

Total release size: 84.3 kB

Release files / fontrpmspec-0.19.tar.gz

Download URL fontrpmspec-0.19.tar.gz
Size 38.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f1196d0f02cb9b0dd1605e3ee2f01038247c7d9c93645e531c5a77e6dd660585
BLAKE2b-256 checksum
How to use checksums
89d3f7a5afdf20c9f225554efd97fb8a0f79f842709e830706fe55956282b429
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2025.

Transparency log

Release files / fontrpmspec-0.19-py3-none-any.whl

Download URL fontrpmspec-0.19-py3-none-any.whl
Size 45.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49897eb18dc924090061ccd358435c60bfba23877d08f54d3e7a985854a5529a
BLAKE2b-256 checksum
How to use checksums
f333ddc4e367dd27c7f83b5466c589ccee1deb45c10e7f2e3bdcf7e0d51187d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 4, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.19 This release

2 release files

0.18

2 release files

0.17

2 release files

0.16

2 release files

0.15

2 release files

0.14

2 release files

0.13

2 release files

0.12

2 release files

0.11

2 release files

0.10

2 release files

0.9

2 release files

0.8

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page