mirror of
https://github.com/clearlinux/common.git
synced 2026-06-17 19:45:59 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cd9b9c1319 | |||
| d22e4f985d | |||
| eb58950c17 | |||
| 8ff80b0be2 | |||
| 05634010e9 | |||
| f6442a0e7f | |||
| d6250a68cd |
+23
-10
@@ -119,17 +119,25 @@ $(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice
|
||||
@$(MAKE) spdxcheck
|
||||
$(MOCK) --buildsrpm --source=./ --spec=$(SPECFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
|
||||
|
||||
# Do a git fetch and a git rebase rather than a git pull so aborting
|
||||
# the git pull at a password prompt doesn't leave local changes stashed
|
||||
# Do the the git status dance so we only apply a stash we create
|
||||
# Do a git fetch and a git rebase to apply local commits on top of latest
|
||||
# commits from the remote. A git fetch/rebase is used rather than a git pull so
|
||||
# aborting the git pull at a password prompt doesn't leave local changes
|
||||
# stashed. Do the git status dance so we only apply a stash we create. Note
|
||||
# that a fetch/rebase is not attempted if the remote 'origin' is not
|
||||
# initialized locally, or if the remote contains no commits.
|
||||
pullrebase:
|
||||
if [ -z "$$SKIP_GIT" ] && [ -e .git ]; then \
|
||||
set -x ; \
|
||||
@if [ -z "$$SKIP_GIT" ] && [ -e .git ]; then \
|
||||
if ! git rev-parse --verify --quiet origin/master > /dev/null; then \
|
||||
echo "Remote not yet initialized. Continuing."; \
|
||||
exit 0; \
|
||||
fi; \
|
||||
echo "Fetching origin"; \
|
||||
git fetch; \
|
||||
if ! git rev-parse --verify --quiet FETCH_HEAD > /dev/null; then \
|
||||
echo "No commits exist in remote. Continuing."; \
|
||||
exit 0; \
|
||||
fi; \
|
||||
echo "Rebasing to origin/master"; \
|
||||
if git status --porcelain | grep -q '^.[^?]'; \
|
||||
then \
|
||||
git stash save; \
|
||||
@@ -151,11 +159,16 @@ autospec: pullrebase localreponotice
|
||||
exit 1; \
|
||||
fi
|
||||
@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} \
|
||||
$${SETVERSION:+ -v $${SETVERSION}} -a $(ARCHIVES) \
|
||||
-m $(MOCK_CONFIG_VAL)
|
||||
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py \
|
||||
--target . \
|
||||
--integrity \
|
||||
--config "$(AUTOSPEC_CONF)" \
|
||||
--name $(PKG_NAME) \
|
||||
--archives $(ARCHIVES) \
|
||||
--mock-config $(MOCK_CONFIG_VAL) \
|
||||
$${SETVERSION:+ --version $${SETVERSION}} \
|
||||
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
||||
$(firstword $(NEWURL) $(URL));
|
||||
@$(MAKE) spdxcheck
|
||||
@$(MAKE) checkblacklist
|
||||
@if [ -e update_changelog.sh ] && [ -z "$$SKIP_GIT" ] ; then \
|
||||
|
||||
+10
-1
@@ -208,7 +208,16 @@ autospecnew: localreponotice
|
||||
$(call subjectprefix,$(NAME)); \
|
||||
); \
|
||||
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) -m $(MOCK_CONFIG_VAL); \
|
||||
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py \
|
||||
--target packages/$(NAME) \
|
||||
--integrity \
|
||||
--config "$(AUTOSPEC_CONF)" \
|
||||
--name $(NAME) \
|
||||
--archives $(ARCHIVES) \
|
||||
--mock-config $(MOCK_CONFIG_VAL) \
|
||||
$${SETVERSION:+ --version $${SETVERSION}} \
|
||||
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
||||
$(URL); \
|
||||
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
|
||||
else \
|
||||
echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \
|
||||
|
||||
@@ -37,6 +37,7 @@ R-Brobdingnag
|
||||
R-CVST
|
||||
R-Cairo
|
||||
R-CircStats
|
||||
R-ClustVarLV
|
||||
R-Cubist
|
||||
R-DBI
|
||||
R-DBItest
|
||||
@@ -553,6 +554,7 @@ augeas
|
||||
authconfig
|
||||
autoconf
|
||||
autoconf-archive
|
||||
autoconf213
|
||||
autofs
|
||||
autogen
|
||||
automake
|
||||
@@ -982,6 +984,7 @@ httpretty
|
||||
hub
|
||||
hunspell
|
||||
hwloc
|
||||
hyperscan
|
||||
hyperstart
|
||||
hypothesis
|
||||
i2c-tools
|
||||
@@ -993,6 +996,7 @@ icon-naming-utils
|
||||
icu4c
|
||||
idna
|
||||
imagesize
|
||||
imapfilter
|
||||
indent
|
||||
infiniband-diags
|
||||
iniparse
|
||||
@@ -1030,6 +1034,7 @@ ister
|
||||
itstool
|
||||
iw
|
||||
ixpdimm_sw
|
||||
jansson
|
||||
jedi
|
||||
jedi-vim
|
||||
jemalloc
|
||||
@@ -1053,6 +1058,7 @@ kexec-tools
|
||||
keyring
|
||||
keyutils
|
||||
khal
|
||||
kiwisolver
|
||||
kmod
|
||||
koji
|
||||
krb5
|
||||
@@ -1176,6 +1182,7 @@ librepo
|
||||
librsvg
|
||||
librtlsdr
|
||||
libsamplerate
|
||||
libsass
|
||||
libseccomp
|
||||
libsecret
|
||||
libsigc++
|
||||
@@ -1288,6 +1295,7 @@ motd-update
|
||||
motif
|
||||
mozjs
|
||||
mozjs38
|
||||
mozjs52
|
||||
mpc
|
||||
mpfr
|
||||
mpg123
|
||||
@@ -1636,6 +1644,7 @@ qtx11extras
|
||||
qtxmlpatterns
|
||||
quagga
|
||||
quilt
|
||||
ragel
|
||||
randrproto
|
||||
rdma-core
|
||||
re2c
|
||||
@@ -1664,6 +1673,7 @@ rxvt-unicode
|
||||
s2tc
|
||||
s3transfer
|
||||
samba
|
||||
sassc
|
||||
satyr
|
||||
sbc
|
||||
sbsigntools
|
||||
@@ -1726,6 +1736,7 @@ strace
|
||||
subunit
|
||||
sudo
|
||||
sure
|
||||
suricata
|
||||
swig
|
||||
swupd-client
|
||||
swupd-overdue
|
||||
|
||||
+1
-1
@@ -149,4 +149,4 @@ fi
|
||||
echo -en "\n************************\n"
|
||||
|
||||
echo 'Workspace has been set up in the "clearlinux" directory'
|
||||
echo 'NOTE: logout and log back in or run "newgrp kvm" to finalize the setup process'
|
||||
echo 'NOTE: logout and log back in to finalize the setup process'
|
||||
|
||||
Reference in New Issue
Block a user