Skip to content

Cargo subcommand for building .rpm releases of Rust projects

License

Notifications You must be signed in to change notification settings

jamessewell/cargo-rpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cargo rpm

Crate Build Status Apache 2.0 Licensed

A cargo subcommand for building .rpm releases of Rust projects.

Installation

Install cargo rpm by running: cargo install cargo-rpm.

Configuring a crate

To configure your crate for RPM releases, run cargo rpm init

This will create a .rpm/YOURCRATENAME.spec file which is passed to the rpmbuild command. Though the generated spec should work out of the box, it may need some customization if the resulting RPM has dependencies or files other than target binaries.

For more information on spec files, see: http://ftp.rpm.org/max-rpm/s1-rpm-build-creating-spec-file.html

Building RPMs

Once your crate has been configured, run cargo rpm build to build release targets for your project and package them into an RPM.

If you encounter errors, you may need to see more information about why rpmbuild failed. Run cargo rpm build -v to enable verbose mode.

Finished .rpm files will be placed in target/release/rpmbuild/RPMs/<arch>

License

The cargo-rpm crate is distributed under the terms of the Apache License (Version 2.0).

See LICENSE file in the rustrpm/crates toplevel directory for more information.

About

Cargo subcommand for building .rpm releases of Rust projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 97.4%
  • HTML 2.6%