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

#1175 in Parser implementations

27 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–30MB
~467K SLoC