-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a8c5d4
commit ea025c9
Showing
8 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Location of sources/ and specs/ | ||
# Sources are in $BASE_DIR/sources/$PACKAGE_NAME | ||
BASE_DIR=$1 | ||
|
||
# Name of spec file without the extension | ||
# EXAMPLE: foo.spec -> foo | ||
PACKAGE_NAME=$2 | ||
|
||
cd /root/rpmbuild/SPECS | ||
|
||
echo "=====PREPARING SOURCES=====" | ||
cp "$BASE_DIR"/specs/"$PACKAGE_NAME".spec /root/rpmbuild/SPECS/ | ||
cp -r "$BASE_DIR"/sources/"$PACKAGE_NAME"/* /root/rpmbuild/SOURCES | ||
|
||
echo "=====INSTALLING DEPENDENCIES=====" | ||
cd /root/rpmbuild/SPECS/ | ||
dnf -y builddep "$PACKAGE_NAME".spec | ||
|
||
echo "=====BUILDING PACKAGE=====" | ||
cd /root/rpmbuild/SPECS/ | ||
rpmbuild -bb "$PACKAGE_NAME".spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.