1 unstable release

0.4.0 Jun 27, 2024
0.3.0 Apr 24, 2021
0.2.0 Apr 11, 2021
0.1.0 Apr 10, 2021

#1179 in Parser implementations

Download history 14/week @ 2024-07-25 1/week @ 2024-08-01 13/week @ 2024-09-12 4/week @ 2024-09-19 5/week @ 2024-09-26 5/week @ 2024-10-03

160 downloads per month

MIT license

185KB
3.5K SLoC

rpmspec-rs

A pure Rust library for parsing RPM spec files.

System Build Dependencies

  • luajit-devel

lib.rs:

rpmspec-rs

RPM Spec parser in Rust

RPMs are built from sources using a spec file. The spec file contains information on how to build the package, what files to include, and what dependencies are required.

RPMs make use of macros, which are evaluated at build time. Macros are defined in the spec files and various other files in the macros directory. They are also picked up from ~/.rpmrc and /etc/rpmrc.

To get started, see [SpecParser::parse()].

Dependencies

~22–31MB
~465K SLoC