mirror of
https://github.com/clearlinux/common.git
synced 2026-07-14 00:35:53 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f12e7e48ea | |||
| f269683632 | |||
| a2c4413083 | |||
| cc6e70bb29 | |||
| f3989c0d5a | |||
| f697b227e8 | |||
| 01e548b268 |
+8
-17
@@ -4,8 +4,8 @@ all: build
|
|||||||
|
|
||||||
TOPLVL = ../..
|
TOPLVL = ../..
|
||||||
|
|
||||||
include $(TOPLVL)/projects/common/Makefile.functions
|
|
||||||
include $(TOPLVL)/projects/common/Makefile.config
|
include $(TOPLVL)/projects/common/Makefile.config
|
||||||
|
include $(TOPLVL)/projects/common/Makefile.shared
|
||||||
|
|
||||||
SHELL = /bin/bash
|
SHELL = /bin/bash
|
||||||
|
|
||||||
@@ -19,12 +19,9 @@ RPMS ?= $(LATEST_RPMS)
|
|||||||
|
|
||||||
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
|
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
|
||||||
|
|
||||||
ifeq ($(wildcard $(TOPLVL)/repo/clear.cfg),)
|
# MOCK_CONFIG_VAL is set in Makefile.shared
|
||||||
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONF)
|
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONFIG_VAL)
|
||||||
else
|
|
||||||
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(TOPLVL)/repo/clear.cfg
|
|
||||||
USE_LOCAL_REPO = 1
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(wildcard upstream),)
|
ifneq ($(wildcard upstream),)
|
||||||
__allsources := $(notdir $(strip $(shell cat upstream)))
|
__allsources := $(notdir $(strip $(shell cat upstream)))
|
||||||
@@ -118,15 +115,8 @@ shell:
|
|||||||
|
|
||||||
# Always rebuild the source rpm
|
# Always rebuild the source rpm
|
||||||
.PHONY: $(SRPMFILE)
|
.PHONY: $(SRPMFILE)
|
||||||
$(SRPMFILE): $(SPECFILE) $(__allsources)
|
$(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
@if [ -n "${USE_LOCAL_REPO}" ]; then \
|
|
||||||
printf '\n\n** NOTICE: Using local repo for the build. Continuing after 3 seconds.\n'; \
|
|
||||||
printf '** If this is not desired, run `make repodisable`.\n'; \
|
|
||||||
printf '** The repo can be re-enabled later with `make repoenable`.\n'; \
|
|
||||||
printf '** Run `touch $(TOPLVL)/repo/opt-in-build` to prevent the 3 second delay.\n\n\n'; \
|
|
||||||
[ -f $(TOPLVL)/repo/opt-in-build ] || sleep 3; \
|
|
||||||
fi >&2
|
|
||||||
$(MOCK) --buildsrpm --source=./ --spec=$(SPECFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
|
$(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
|
# Do a git fetch and a git rebase rather than a git pull so aborting
|
||||||
@@ -154,7 +144,7 @@ pullrebase:
|
|||||||
#help already a specfile, it will be overwritten. Several files used by
|
#help already a specfile, it will be overwritten. Several files used by
|
||||||
#help autospec will be created in the process. For more information, see
|
#help autospec will be created in the process. For more information, see
|
||||||
#help the project at https://github.com/clearlinux/autospec
|
#help the project at https://github.com/clearlinux/autospec
|
||||||
autospec: pullrebase
|
autospec: pullrebase localreponotice
|
||||||
rm -f results/*src.rpm
|
rm -f results/*src.rpm
|
||||||
@if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \
|
@if [ -e $(SPECFILE) ] && ! grep -q "# Generated by: autospec.py" $(SPECFILE) ; then \
|
||||||
echo "Specfile already exists and was not created by autospec.py! Aborting."; \
|
echo "Specfile already exists and was not created by autospec.py! Aborting."; \
|
||||||
@@ -164,7 +154,8 @@ autospec: pullrebase
|
|||||||
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --integrity \
|
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --integrity \
|
||||||
${NON_INTERACTIVE} --config "$(AUTOSPEC_CONF)" ${SKIP_GIT} \
|
${NON_INTERACTIVE} --config "$(AUTOSPEC_CONF)" ${SKIP_GIT} \
|
||||||
$(firstword $(NEWURL) $(URL)) --name $(PKG_NAME) ${CLEANUP} \
|
$(firstword $(NEWURL) $(URL)) --name $(PKG_NAME) ${CLEANUP} \
|
||||||
$${SETVERSION:+ -v $${SETVERSION}} -a $(ARCHIVES)
|
$${SETVERSION:+ -v $${SETVERSION}} -a $(ARCHIVES) \
|
||||||
|
-m $(MOCK_CONFIG_VAL)
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
@$(MAKE) checkblacklist
|
@$(MAKE) checkblacklist
|
||||||
@if [ -e update_changelog.sh ] && [ -z "$$SKIP_GIT" ] ; then \
|
@if [ -e update_changelog.sh ] && [ -z "$$SKIP_GIT" ] ; then \
|
||||||
|
|||||||
@@ -119,6 +119,24 @@ localrepostatus:
|
|||||||
fi; \
|
fi; \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Detection of whether to use the local RPM repo occurs on-the-fly. Normally,
|
||||||
|
# variable definitions appear in Makefile.config, but these variables are not
|
||||||
|
# intended to be user-modifiable.
|
||||||
|
ifeq ($(wildcard $(TOPLVL)/repo/clear.cfg),)
|
||||||
|
MOCK_CONFIG_VAL = $(realpath $(MOCK_CONF))
|
||||||
|
else
|
||||||
|
MOCK_CONFIG_VAL = $(realpath $(TOPLVL)/repo/clear.cfg)
|
||||||
|
USE_LOCAL_REPO = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
localreponotice:
|
||||||
|
@if [ -n "${USE_LOCAL_REPO}" ]; then \
|
||||||
|
printf '\n\n** NOTICE: Using local repo for the build. Continuing after 3 seconds.\n'; \
|
||||||
|
printf '** If this is not desired, run `make repodisable`.\n'; \
|
||||||
|
printf '** The repo can be re-enabled later with `make repoenable`.\n'; \
|
||||||
|
printf '** Run `touch $(TOPLVL)/repo/opt-in-build` to prevent the 3 second delay.\n\n\n'; \
|
||||||
|
[ -f $(TOPLVL)/repo/opt-in-build ] || sleep 3; \
|
||||||
|
fi >&2
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
##### Code
|
##### Code
|
||||||
+3
-3
@@ -4,8 +4,8 @@ all: clone
|
|||||||
|
|
||||||
TOPLVL = .
|
TOPLVL = .
|
||||||
|
|
||||||
include $(TOPLVL)/projects/common/Makefile.functions
|
|
||||||
include $(TOPLVL)/projects/common/Makefile.config
|
include $(TOPLVL)/projects/common/Makefile.config
|
||||||
|
include $(TOPLVL)/projects/common/Makefile.shared
|
||||||
|
|
||||||
SHELL = /bin/bash
|
SHELL = /bin/bash
|
||||||
|
|
||||||
@@ -188,7 +188,7 @@ provides:
|
|||||||
#help autospecnew: Creates a new autospec package with for a given URL=$(URL)
|
#help autospecnew: Creates a new autospec package with for a given URL=$(URL)
|
||||||
#help with NAME=$(NAME). Several files used by autospec will be created in the
|
#help with NAME=$(NAME). Several files used by autospec will be created in the
|
||||||
#help process. For more information about autospec, see the project page on Github https://github.com/clearlinux/autospec
|
#help process. For more information about autospec, see the project page on Github https://github.com/clearlinux/autospec
|
||||||
autospecnew:
|
autospecnew: localreponotice
|
||||||
@if [ -z $(NAME) ] || [ -z $(URL) ]; then \
|
@if [ -z $(NAME) ] || [ -z $(URL) ]; then \
|
||||||
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
|
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
@@ -204,7 +204,7 @@ autospecnew:
|
|||||||
$(call subjectprefix,$(NAME)); \
|
$(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; \
|
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); \
|
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py --integrity -t packages/$(NAME) --config $(AUTOSPEC_CONF) $(URL) --name $(NAME) -m $(MOCK_CONFIG_VAL); \
|
||||||
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
|
$(TOPLVL)/projects/common/checkblacklist.sh $(TOPLVL)/projects/common/blacklist $(TOPLVL)/packages/${NAME}/results/*.rpm; \
|
||||||
else \
|
else \
|
||||||
echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \
|
echo "$(NAME) already exists at $(TOPLVL)/packages/$(NAME)"; \
|
||||||
|
|||||||
@@ -182,6 +182,8 @@ accountsservice
|
|||||||
acl
|
acl
|
||||||
acme
|
acme
|
||||||
acpica-unix2
|
acpica-unix2
|
||||||
|
acrn-devicemodel
|
||||||
|
acrn-hypervisor
|
||||||
adwaita-icon-theme
|
adwaita-icon-theme
|
||||||
aeon
|
aeon
|
||||||
alabaster
|
alabaster
|
||||||
@@ -233,6 +235,7 @@ babl
|
|||||||
backports.functools_lru_cache
|
backports.functools_lru_cache
|
||||||
backports.ssl_match_hostname
|
backports.ssl_match_hostname
|
||||||
backports.weakref
|
backports.weakref
|
||||||
|
baobab
|
||||||
bash
|
bash
|
||||||
bash-completion
|
bash-completion
|
||||||
bash_kernel
|
bash_kernel
|
||||||
@@ -273,6 +276,7 @@ cabextract
|
|||||||
cached-property
|
cached-property
|
||||||
cairo
|
cairo
|
||||||
cairomm
|
cairomm
|
||||||
|
cantarell-fonts
|
||||||
cargo
|
cargo
|
||||||
caribou
|
caribou
|
||||||
catch2
|
catch2
|
||||||
@@ -413,6 +417,7 @@ docbook-xml
|
|||||||
docker
|
docker
|
||||||
docker-py
|
docker-py
|
||||||
docutils
|
docutils
|
||||||
|
dogtail
|
||||||
dos2unix
|
dos2unix
|
||||||
dosfstools
|
dosfstools
|
||||||
double-conversion
|
double-conversion
|
||||||
@@ -477,6 +482,7 @@ flex
|
|||||||
flmsg
|
flmsg
|
||||||
flnet
|
flnet
|
||||||
fltk
|
fltk
|
||||||
|
folks
|
||||||
font-adobe-100dpi
|
font-adobe-100dpi
|
||||||
font-adobe-75dpi
|
font-adobe-75dpi
|
||||||
font-bitstream-type1
|
font-bitstream-type1
|
||||||
@@ -514,6 +520,7 @@ geocode-glib
|
|||||||
gettext
|
gettext
|
||||||
gevent
|
gevent
|
||||||
gexiv2
|
gexiv2
|
||||||
|
gfbgraph
|
||||||
gflags
|
gflags
|
||||||
ghostscript
|
ghostscript
|
||||||
gimp
|
gimp
|
||||||
@@ -542,6 +549,7 @@ gnome-bluetooth
|
|||||||
gnome-calculator
|
gnome-calculator
|
||||||
gnome-calendar
|
gnome-calendar
|
||||||
gnome-characters
|
gnome-characters
|
||||||
|
gnome-color-manager
|
||||||
gnome-common
|
gnome-common
|
||||||
gnome-control-center
|
gnome-control-center
|
||||||
gnome-desktop
|
gnome-desktop
|
||||||
@@ -550,17 +558,26 @@ gnome-font-viewer
|
|||||||
gnome-icon-theme
|
gnome-icon-theme
|
||||||
gnome-initial-setup
|
gnome-initial-setup
|
||||||
gnome-keyring
|
gnome-keyring
|
||||||
|
gnome-logs
|
||||||
|
gnome-maps
|
||||||
gnome-menus
|
gnome-menus
|
||||||
|
gnome-music
|
||||||
gnome-online-accounts
|
gnome-online-accounts
|
||||||
gnome-panel
|
gnome-panel
|
||||||
|
gnome-photos
|
||||||
gnome-screenshot
|
gnome-screenshot
|
||||||
gnome-session
|
gnome-session
|
||||||
gnome-settings-daemon
|
gnome-settings-daemon
|
||||||
gnome-shell
|
gnome-shell
|
||||||
gnome-shell-extensions
|
gnome-shell-extensions
|
||||||
|
gnome-system-monitor
|
||||||
gnome-terminal
|
gnome-terminal
|
||||||
gnome-themes-standard
|
gnome-themes-standard
|
||||||
|
gnome-todo
|
||||||
gnome-tweak-tool
|
gnome-tweak-tool
|
||||||
|
gnome-user-docs
|
||||||
|
gnome-video-effects
|
||||||
|
gnome-weather
|
||||||
gnu-efi
|
gnu-efi
|
||||||
gnupg
|
gnupg
|
||||||
gnuplot
|
gnuplot
|
||||||
@@ -568,6 +585,7 @@ gnutls
|
|||||||
go
|
go
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
golang-github-cpuguy83-go-md2man
|
golang-github-cpuguy83-go-md2man
|
||||||
|
gom
|
||||||
goocanvas
|
goocanvas
|
||||||
google-api-python-client
|
google-api-python-client
|
||||||
google-apitools
|
google-apitools
|
||||||
@@ -580,6 +598,7 @@ gpredict
|
|||||||
gptfdisk
|
gptfdisk
|
||||||
gradle
|
gradle
|
||||||
gradle-dep
|
gradle-dep
|
||||||
|
graphene
|
||||||
graphviz
|
graphviz
|
||||||
greenlet
|
greenlet
|
||||||
grep
|
grep
|
||||||
@@ -590,6 +609,7 @@ groff
|
|||||||
grub
|
grub
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
gsl
|
gsl
|
||||||
|
gsound
|
||||||
gspell
|
gspell
|
||||||
gst-plugins-bad
|
gst-plugins-bad
|
||||||
gst-plugins-base
|
gst-plugins-base
|
||||||
@@ -649,6 +669,7 @@ init-rdahead
|
|||||||
inotify-tools
|
inotify-tools
|
||||||
inputproto
|
inputproto
|
||||||
intltool
|
intltool
|
||||||
|
invm-frameworks
|
||||||
ioping
|
ioping
|
||||||
iotop
|
iotop
|
||||||
ipaddr
|
ipaddr
|
||||||
@@ -755,6 +776,7 @@ libcap
|
|||||||
libcap-ng
|
libcap-ng
|
||||||
libcdio
|
libcdio
|
||||||
libcgroup
|
libcgroup
|
||||||
|
libchamplain
|
||||||
libcomps
|
libcomps
|
||||||
libconfig
|
libconfig
|
||||||
libcroco
|
libcroco
|
||||||
@@ -773,6 +795,7 @@ libgcrypt
|
|||||||
libgd
|
libgd
|
||||||
libgdata
|
libgdata
|
||||||
libgee
|
libgee
|
||||||
|
libgepub
|
||||||
libgfortran-avx
|
libgfortran-avx
|
||||||
libgfortran-compat-soname3
|
libgfortran-compat-soname3
|
||||||
libgit2
|
libgit2
|
||||||
@@ -1195,6 +1218,7 @@ pyOpenSSL
|
|||||||
pyaml
|
pyaml
|
||||||
pyasn1
|
pyasn1
|
||||||
pyasn1-modules
|
pyasn1-modules
|
||||||
|
pyatspi
|
||||||
pycairo
|
pycairo
|
||||||
pycodestyle
|
pycodestyle
|
||||||
pycparser
|
pycparser
|
||||||
@@ -1320,6 +1344,7 @@ screen
|
|||||||
scripttest
|
scripttest
|
||||||
scrnsaverproto
|
scrnsaverproto
|
||||||
seaborn
|
seaborn
|
||||||
|
seahorse
|
||||||
secretstorage
|
secretstorage
|
||||||
sed
|
sed
|
||||||
setproctitle
|
setproctitle
|
||||||
@@ -1421,6 +1446,7 @@ tqdm
|
|||||||
traceback2
|
traceback2
|
||||||
traceroute
|
traceroute
|
||||||
tracker
|
tracker
|
||||||
|
tracker-miners
|
||||||
traitlets
|
traitlets
|
||||||
tree
|
tree
|
||||||
typed-ast
|
typed-ast
|
||||||
@@ -1452,6 +1478,7 @@ videoproto
|
|||||||
vim
|
vim
|
||||||
vim-go
|
vim-go
|
||||||
vinagre
|
vinagre
|
||||||
|
vino
|
||||||
virt-manager
|
virt-manager
|
||||||
virt-viewer
|
virt-viewer
|
||||||
virtualenv
|
virtualenv
|
||||||
@@ -1469,6 +1496,7 @@ webencodings
|
|||||||
webkitgtk
|
webkitgtk
|
||||||
websocket_client
|
websocket_client
|
||||||
websockify
|
websockify
|
||||||
|
weechat
|
||||||
weston
|
weston
|
||||||
wget
|
wget
|
||||||
wheel
|
wheel
|
||||||
|
|||||||
Reference in New Issue
Block a user