Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soleinik/rust-pkg-rpm
rpm pakaging primer
https://github.com/soleinik/rust-pkg-rpm
cargo-rpm rust rust-lang rust-language
Last synced: about 1 hour ago
JSON representation
rpm pakaging primer
- Host: GitHub
- URL: https://github.com/soleinik/rust-pkg-rpm
- Owner: soleinik
- License: mit
- Created: 2020-02-13T02:12:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-16T02:22:38.000Z (almost 5 years ago)
- Last Synced: 2024-11-25T10:18:04.015Z (2 months ago)
- Topics: cargo-rpm, rust, rust-lang, rust-language
- Language: Rust
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rust-rpm-app primer
## host info
```
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
```## local cargo setup
![cargo-rpm](https://crates.io/crates/cargo-rpm)
## steps
```
$ cargo install cargo-rpm
``````
$ sudo apt install rpm
```## this is run once to init (this repo already initialized)
```
$ cargo rpm init
Created /home/soleinik/work/rust/rust-pkg-rpm/.rpm
Rendered /home/soleinik/work/rust/rust-pkg-rpm/.rpm/rust-rpm-daemon.spec
Updating /home/soleinik/work/rust/rust-pkg-rpm/Cargo.toml
Finished rust-rpm-daemon configured (type "cargo rpm build" to build)
```## to build
```
$ cargo rpm build
Compiling rust-rpm-daemon v0.1.0 (/home/soleinik/work/rust/rust-pkg-rpm)
Finished release [optimized] target(s) in 0.21s
Building rust-rpm-daemon-0.1.0-1.rpm (using rpmbuild 4.14.1)$ tree target/release/rpmbuild/
target/release/rpmbuild/
├── BUILD
│ └── rust-rpm-daemon-0.1.0
│ └── usr
│ ├── bin
│ │ └── rust-rpm-daemon
│ └── share
│ ├── doc
│ │ └── rust-rpm-daemon
│ │ ├── COPYRIGHT
│ │ └── LICENSE
│ ├── etc
│ │ └── rust-rpm-daemon
│ │ └── rust-rpm-daemon.conf
│ └── info
│ └── rust-pkg-rpm.info
├── BUILDROOT
│ └── rust-rpm-daemon-0.1.0-1.x86_64
│ └── usr
│ ├── bin
│ │ └── rust-rpm-daemon
│ ├── lib
│ └── share
│ ├── doc
│ │ └── rust-rpm-daemon
│ │ ├── COPYRIGHT
│ │ └── LICENSE
│ ├── etc
│ │ └── rust-rpm-daemon
│ │ └── rust-rpm-daemon.conf
│ └── info
│ └── rust-pkg-rpm.info.gz
├── RPMS
│ └── x86_64
│ └── rust-rpm-daemon-0.1.0-1.x86_64.rpm
├── SOURCES
│ └── rust-rpm-daemon-0.1.0.tar.gz
├── SPECS
│ └── rust-rpm-daemon.spec
├── SRPMS
│ └── rust-rpm-daemon-0.1.0-1.src.rpm
└── tmp27 directories, 14 files
```