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] [-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.
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
fontrpmspec-0.8.tar.gz
(58.3 kB
view hashes)
Built Distribution
fontrpmspec-0.8-py3-none-any.whl
(52.4 kB
view hashes)
Close
Hashes for fontrpmspec-0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea0b3e09cea5a9f1d2c2046202488aa8f410d36c80fdb0425c1afaf206f4ec98 |
|
MD5 | f515acf715caa2194d5e15bb3399c4de |
|
BLAKE2b-256 | 8e59bc09ceb9bc21c5a24668071ce5d6349b6faf9a79edd75b7f68c4a81dd23e |