From fdaa020d4963e422c323c4268ab75146a97222df Mon Sep 17 00:00:00 2001 From: Antony Hutchison Date: Mon, 1 Feb 2016 16:35:42 +0000 Subject: [PATCH] Added some guidance on using the RPM spec from Gist --- Package-Generation.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Package-Generation.md b/Package-Generation.md index 634d1c4..fc35e03 100644 --- a/Package-Generation.md +++ b/Package-Generation.md @@ -8,10 +8,16 @@ In this Wiki page, we collect information given by the community on how to gener The rpm package recipe is available here: https://gist.github.com/zimmerle/a2b069f0099c90c142e8#file-0d90c84a7a89d26b9cffb4f987342185fe482118-patch -In order to generate the package, you can use the following: +In order to generate the package, you can use the following (assuming you saved the Gist as mod_security.spec): ```bash -$ +$ rpmbuild mod_security.spec ``` +This should download the source for the version specified in the .spec file, build it, and yield a valid RPM package in ~/rpmbuild/RPMS that you can install using +```bash +$ yum localinstall ~/rpmbuild/RPMS/mod_security.rpm +``` +If you choose to install with RPM directly, you'll need to manage dependencies. Newer versions of Fedora use DNF, which supposedly works the same - replace 'yum' with 'dnf' when you install. + The RPM package generation was a contribution from @antonyh, through the pull request #1052. #### Deb Packages