Struct rpm::RPMBuilder [−][src]
pub struct RPMBuilder { /* fields omitted */ }
Expand description
Builder pattern for a full rpm file.
Prefered method of creating a rpm file.
Implementations
pub fn add_changelog_entry<E, F>(self, author: E, entry: F, time: i32) -> Self where
E: Into<String>,
F: Into<String>,
pub async fn with_file_async<T, P>(
self,
source: P,
options: T
) -> Result<Self, RPMError> where
P: AsRef<Path>,
T: Into<RPMFileOptions>,
pub fn with_file<T, P>(self, source: P, options: T) -> Result<Self, RPMError> where
P: AsRef<Path>,
T: Into<RPMFileOptions>,
build without a signature
ignores a present key, if any
pub fn build_and_sign<S>(self, signer: S) -> Result<RPMPackage, RPMError> where
S: Signing<RSA>,
pub fn build_and_sign<S>(self, signer: S) -> Result<RPMPackage, RPMError> where
S: Signing<RSA>,
use an external signer to sing and build
See signature::Signing
for more details.