Skip to main content

Font packaging library in Fedora

Project description

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] [-u URL] [-c CHANGELOG] [--email EMAIL] [--username USERNAME] [--summary SUMMARY]
                       [--description DESCRIPTION] [-a ALIAS] [--lang [LANG ...]] [--priority PRIORITY]
                       NAME [VERSION]

Fonts RPM spec file generator against guidelines

positional arguments:
  NAME                  Package name
  VERSION               Package version (default: None)

options:
  -h, --help            show this help message and exit
  -f JSON_FILE, --json-file JSON_FILE
                        Config file written in JSON (default: None)
  -l LICENSE, --license LICENSE
                        License name of this project (default: OFL-1.1)
  -o OUTPUT, --output OUTPUT
                        Output file (default: -)
  --outputdir OUTPUTDIR
                        Output directory (default: .)
  --sourcedir SOURCEDIR
                        Source directory (default: .)
  -s SOURCE, --source SOURCE
                        Source file (default: None)
  -u URL, --url URL     Project URL (default: None)
  -c CHANGELOG, --changelog CHANGELOG
                        Changelog entry (default: Initial import)
  --email EMAIL         email address to put into changelog (default: yourname@example.com)
  --username USERNAME   Real user name to put into changelog (default: Your Name)
  --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.)
  -a ALIAS, --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)

fontrpmspec-conv

usage: fontrpmspec-conv [-h] [--sourcedir SOURCEDIR] [-o OUTPUT] SPEC

Fonts RPM spec file converter against guidelines

positional arguments:
  SPEC                  Spec file to convert

options:
  -h, --help            show this help message and exit
  --sourcedir SOURCEDIR
                        Source directory (default: .)
  -o OUTPUT, --output OUTPUT
                        Output file (default: -)

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] [-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)
  -O, --outputdir OUTPUTDIR
                        Output directory (default: None)
  -v, --verbose         Show more detailed logs (default: False)

Happy Packaging :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fontrpmspec-0.16.tar.gz (60.8 kB view details)

Uploaded Source

Built Distribution

fontrpmspec-0.16-py3-none-any.whl (56.1 kB view details)

Uploaded Python 3

File details

Details for the file fontrpmspec-0.16.tar.gz.

File metadata

  • Download URL: fontrpmspec-0.16.tar.gz
  • Upload date:
  • Size: 60.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for fontrpmspec-0.16.tar.gz
Algorithm Hash digest
SHA256 81a5df557f233fc97c561b78373ad8ae0a98a30a8f28286bd1fe62fd894fd2e4
MD5 b8a40fc3750e4682b5d8c92acab5d471
BLAKE2b-256 b9514b4c2d037310fa28b14580b101def049709865d22d9133ee1c6a32826092

See more details on using hashes here.

File details

Details for the file fontrpmspec-0.16-py3-none-any.whl.

File metadata

  • Download URL: fontrpmspec-0.16-py3-none-any.whl
  • Upload date:
  • Size: 56.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for fontrpmspec-0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 da4e2ec8ea17a879b972a3e94a413a52320378c1f80cb38a7bb267da969b17e6
MD5 1a81e7f213407e564abc540a04d08218
BLAKE2b-256 2fa926b9be87f21eba0d76d88d9e444d67fd5ac5acf96f2751f69f40e4c84713

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page