From 4a7fc6ceb11d3f957a7ad854def67779ba450bc5 Mon Sep 17 00:00:00 2001 From: hellojukay Date: Sun, 1 Nov 2020 04:20:05 +0800 Subject: [PATCH] rpmbuild: add page (#4864) --- pages/linux/rpmbuild.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/linux/rpmbuild.md diff --git a/pages/linux/rpmbuild.md b/pages/linux/rpmbuild.md new file mode 100644 index 000000000..c913254d4 --- /dev/null +++ b/pages/linux/rpmbuild.md @@ -0,0 +1,16 @@ +# rpmbuild + +> RPM Package Build tool. +> More information: . + +- Build binary and source packages: + +`rpmbuild -ba {{path/to/spec_file}}` + +- Build a binary package without source package: + +`rpmbuild -bb {{path/to/spec_file}}` + +- Specify additional variables when building a package: + +`rpmbuild -bb {{path/to/spec_file}} --define "{{variable1}} {{value1}}" --define "{{variable2}} {{value2}}"`