Crates.io | cargo-rpm |
lib.rs | cargo-rpm |
version | 0.8.0 |
source | src |
created_at | 2018-04-20 04:27:07.362381 |
updated_at | 2020-07-09 18:15:41.532946 |
description | Build RPMs from Rust projects using Cargo workflows |
homepage | |
repository | https://github.com/iqlusioninc/cargo-rpm |
max_upload_size | |
id | 61509 |
size | 109,693 |
cargo subcommand for building .rpm
releases of Rust projects.
Install cargo rpm
by running: cargo install cargo-rpm
.
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
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>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.