Skip to content

Commit

Permalink
refactor: SPEC files and SOURCES in package dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpenedblade committed May 21, 2023
1 parent 7e30e48 commit 53b1f7f
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/build-rpm-from-repo.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

# Location of sources/ and specs/
# Sources are in $BASE_DIR/sources/$PACKAGE_NAME
# Sources are in $BASE_DIR/$PACKAGE_NAME
BASE_DIR=$1

# Name of spec file without the extension
Expand All @@ -26,8 +25,8 @@ if [ -n "$KOJI_VERSION" ]; then
fi

echo "=====PREPARING SOURCES====="
cp -f "$BASE_DIR"/specs/"$PACKAGE_NAME".spec /root/rpmbuild/SPECS/
cp -fr "$BASE_DIR"/sources/"$PACKAGE_NAME"/* /root/rpmbuild/SOURCES
cp -f "$BASE_DIR"/"$PACKAGE_NAME"/*.spec /root/rpmbuild/SPECS/
cp -fr "$BASE_DIR"/"$PACKAGE_NAME"/* /root/rpmbuild/SOURCES/

echo "=====INSTALLING DEPENDENCIES====="
cd /root/rpmbuild/SPECS/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 53b1f7f

Please sign in to comment.