Skip to content

Commit

Permalink
build: add COPR support
Browse files Browse the repository at this point in the history
Add Makefile which prepares srpm for COPR. This can be then used by
e.g. https://copr.fedorainfracloud.org/

Signed-off-by: Petr Vobornik <[email protected]>
  • Loading branch information
pvoborni committed Oct 4, 2023
1 parent 2d6f5bc commit d72c756
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .copr/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/make -f

srpm:
# Setup development environment
dnf install -y git make curl gzip tar rpm-build golang

# Generate SRPM
make rpm/srpm

if [[ "${outdir}" != "" ]]; then \
mv dist/rpmbuild/SRPMS/* ${outdir}/; \
fi

0 comments on commit d72c756

Please sign in to comment.