mirror of
https://github.com/clearlinux/common.git
synced 2026-06-16 02:56:00 +00:00
Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 68c06960c9 | |||
| a52f147734 | |||
| 3e7fad9b4b | |||
| ac7cf82607 | |||
| 458f5c71d0 | |||
| f8ac700994 | |||
| 794b93a8a4 | |||
| e7d54e5528 | |||
| b656b478ff | |||
| 0fd03748cb | |||
| 523a4ce1e2 | |||
| 38059c0401 | |||
| 1cc337d5fa | |||
| d2b87af7d3 | |||
| a3f2351225 | |||
| a96e245866 | |||
| ed31b0d4d7 | |||
| e0a2933bce | |||
| d933700e4e | |||
| ad95a0b5dd | |||
| ae089fc77b | |||
| 6a9a5d3d00 |
@@ -0,0 +1,3 @@
|
||||
*~
|
||||
.*swp
|
||||
Makefile*.site_local
|
||||
@@ -15,7 +15,7 @@ endif
|
||||
|
||||
update:
|
||||
curl -f -o packages ${BASE_URL}/source/package-sources
|
||||
cut -f1 packages | LC_ALL=en_US.utf8 sort > packages.new && mv packages.new packages
|
||||
cut -f1 packages | LC_ALL=C sort > packages.new && mv packages.new packages
|
||||
|
||||
spdx:
|
||||
curl -s spdx.org/licenses/ | sed '0,/<tbody>/d;/<\/tbody>/q;s/<tr>/\f/g;s/$$/,/g;s/<[^>]*>//g' | awk 'BEGIN{RS="\f";FS=","} {print $$4}' | sed '/^$$/d;s/^[ ]*//' > spdx
|
||||
|
||||
+12
-5
@@ -81,11 +81,13 @@ configemail:
|
||||
checkblacklist:
|
||||
@$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist results/*.rpm
|
||||
|
||||
prebuild-checks:
|
||||
|
||||
#help build: Builds from current directory on your machine and puts log
|
||||
#help files and rpms in the results directory of your package. If there
|
||||
#help are mutlple tar.gz files for a package, make will do make sources,
|
||||
#help which creates a src.rpm file from the spec file.
|
||||
build: configemail $(SPECFILE) upstream $(SRPMFILE)
|
||||
build: prebuild-checks configemail $(SPECFILE) upstream $(SRPMFILE)
|
||||
$(MOCK) $(SRPMFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
|
||||
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
|
||||
@perl $(TOPLVL)/projects/common/count.pl results/build.log &> testresults
|
||||
@@ -146,7 +148,7 @@ autospec: pullrebase
|
||||
echo "Specfile already exists and was not created by autospec.py! Aborting."; \
|
||||
exit 1; \
|
||||
fi
|
||||
@printf 'PKG_NAME := %s\nURL = %s\n\n\ninclude ../common/Makefile.common\n' $(PKG_NAME) '$(firstword $(value NEWURL) $(value URL))' > Makefile
|
||||
@printf 'PKG_NAME := %s\nURL = %s\nARCHIVES = %s\n\ninclude ../common/Makefile.common\n' $(PKG_NAME) '$(firstword $(value NEWURL) $(value URL))' '$(value ARCHIVES)' > Makefile
|
||||
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --integrity \
|
||||
${NON_INTERACTIVE} --config "$(AUTOSPEC_CONF)" ${SKIP_GIT} \
|
||||
$(firstword $(NEWURL) $(URL)) --name $(PKG_NAME) ${CLEANUP} \
|
||||
@@ -228,16 +230,21 @@ else
|
||||
rm -rf "$$tmp";
|
||||
endif
|
||||
|
||||
prekoji-checks:
|
||||
|
||||
#help koji: Creates a git tag on the latest local commit, then asks koji to
|
||||
#help build from that tag on the server. If you have uncommitted local changes,
|
||||
#help they will not be included.
|
||||
koji: kojidef
|
||||
koji: prekoji-checks kojidef
|
||||
@$(MAKE) spdxcheck
|
||||
@$(MAKE) checkblacklist
|
||||
@if ! git branch | grep -q -E '^\* master'; then \
|
||||
echo "Error: Must be on the master branch to submit to koji" >&2; \
|
||||
exit 1; \
|
||||
fi
|
||||
git pull --rebase
|
||||
git tag $(SRPMVERS)
|
||||
git push --follow-tags
|
||||
git push --tags
|
||||
git push origin master refs/tags/$(SRPMVERS)
|
||||
$(KOJI_CMD) build $$KOJI_NOWAIT $(KOJI_TAG) $(PKG_BASE_URL)/$(PKG_NAME)?#$(SRPMVERS)
|
||||
|
||||
#help rekoji: In case a previous 'make koji' failed, trigger a rebuild for the
|
||||
|
||||
+2
-2
@@ -189,14 +189,14 @@ provides:
|
||||
#help process. For more information about autospec, see the project page on Github https://github.com/clearlinux/autospec
|
||||
autospecnew:
|
||||
@if [ -z $(NAME) ] || [ -z $(URL) ]; then \
|
||||
echo "Please specify NAME and URL"; \
|
||||
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
|
||||
exit 1; \
|
||||
fi
|
||||
@git clone $(PKG_BASE_URL)/$(NAME) $(TOPLVL)/packages/$(NAME) &> /dev/null || true
|
||||
@if [ ! -d $(TOPLVL)/packages/$(NAME)/.git ]; then \
|
||||
echo "no remote repository found, creating new package repository and running autospec"; \
|
||||
mkdir -p $(TOPLVL)/packages/$(NAME); \
|
||||
printf 'PKG_NAME := %s\nURL = %s\n\n\ninclude ../common/Makefile.common\n' $(NAME) '$(value URL)' > $(TOPLVL)/packages/$(NAME)/Makefile; \
|
||||
printf 'PKG_NAME := %s\nURL = %s\nARCHIVES = %s\n\ninclude ../common/Makefile.common\n' $(NAME) '$(value URL)' '$(value ARCHIVES)' > $(TOPLVL)/packages/$(NAME)/Makefile; \
|
||||
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py --integrity -t packages/$(NAME) --config $(AUTOSPEC_CONF) $(URL) --name $(NAME); \
|
||||
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
|
||||
else \
|
||||
|
||||
@@ -19,8 +19,9 @@ building Clear Linux packages.
|
||||
|
||||
### Automated setup
|
||||
|
||||
Download the [user setup](user-setup.sh) script and run it on your
|
||||
Clear Linux system as an unprivileged user.
|
||||
Download the [user setup](user-setup.sh) script and run it on your Clear Linux
|
||||
system as an unprivileged user. After the script completes, make sure to logout
|
||||
and login again to complete the setup process.
|
||||
|
||||
The script either accepts no options, or all (3) options in case you are
|
||||
configuring the Koji CLI for remote building on a Koji server. The options are
|
||||
|
||||
Reference in New Issue
Block a user