mirror of
https://github.com/clearlinux/common.git
synced 2026-07-14 00:35:53 +00:00
Compare commits
115 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d2f1d5e1d | |||
| d36404255b | |||
| 88dd353e21 | |||
| c232a0f6c2 | |||
| 97edcccc6f | |||
| 16fb031192 | |||
| 46d98726d5 | |||
| 0fa3b3812c | |||
| c6ae76c720 | |||
| b1cfa8f828 | |||
| 2f03d06fc4 | |||
| 514dbd5f33 | |||
| 97894ec9b3 | |||
| 4512f3ae00 | |||
| 4bbdd450d4 | |||
| f2a32480ae | |||
| 8aa923a5a6 | |||
| a757a26828 | |||
| c69acb2821 | |||
| cbb1d9688e | |||
| 9b778e9f80 | |||
| 0894cd7083 | |||
| f07e797a3b | |||
| 6b614da982 | |||
| 56fd505d76 | |||
| 60fe195c79 | |||
| f56e102bc1 | |||
| 8d829d1b6e | |||
| f6921f41e9 | |||
| 1988c8296f | |||
| d5056dcee3 | |||
| e83915a24d | |||
| 8de4c25ecc | |||
| 9feee99965 | |||
| 9396728fca | |||
| 974734a9c2 | |||
| 97aec0b795 | |||
| 46c0cf7449 | |||
| 9993ccf733 | |||
| 9f39df7d55 | |||
| a5e894a480 | |||
| 7eb9678104 | |||
| 3d0f911262 | |||
| 01888ddee2 | |||
| c0c61628a8 | |||
| c858d8c2e1 | |||
| 450e84f809 | |||
| d36cb4c6c3 | |||
| 139a6e4a14 | |||
| 37bda022bb | |||
| ddc326e53c | |||
| a3a27cd156 | |||
| 4579fa3816 | |||
| c14cac39e5 | |||
| 070be802aa | |||
| 4102816787 | |||
| 4c9c2abd21 | |||
| 70b4977b53 | |||
| 7276bc89e9 | |||
| fffa8f1e78 | |||
| 9cc15023ed | |||
| 7f5674bf08 | |||
| de60634e85 | |||
| 2b6b201866 | |||
| b24f00531c | |||
| bf4c541b1d | |||
| 25ea756641 | |||
| 367aa5c4de | |||
| 073d828fa2 | |||
| ce049d2064 | |||
| c2d67c1502 | |||
| 98cf84d3f3 | |||
| 2c3c1225bf | |||
| 65dcbd3bc9 | |||
| 76ae6fd76f | |||
| 69164ec2ca | |||
| 185dec68b8 | |||
| cc9b2ee03b | |||
| 0b9161a6d7 | |||
| 7c92a06cb9 | |||
| 214ace3bd0 | |||
| 8d82f1d245 | |||
| b250cfe2b0 | |||
| c7eae41e54 | |||
| 55a3d9c6bf | |||
| 41ed095a08 | |||
| 7a653585b2 | |||
| 8ffb3603dc | |||
| b895daa84f | |||
| 48fbe7cd3e | |||
| 39aed7cee7 | |||
| 23c281b1c8 | |||
| d402ae1449 | |||
| 72cc059f89 | |||
| 0d56579421 | |||
| 02d46e6db4 | |||
| 4adb7a1524 | |||
| be21e942aa | |||
| 4e9b844267 | |||
| facb8827f7 | |||
| 77c5172cf9 | |||
| ae4ea46b1c | |||
| 8e18acca7a | |||
| ed15af71c8 | |||
| 3c20fc2ad8 | |||
| d7f6ddcce1 | |||
| 22a927e26b | |||
| 4a29a2d5c1 | |||
| 81ef638151 | |||
| 50b8b07d34 | |||
| 47b634bc75 | |||
| 292ea0bde9 | |||
| b0f7bbfb90 | |||
| 20d0fece07 | |||
| 0f546b20f5 |
+15
-15
@@ -49,13 +49,6 @@ spdxcheck: $(SPECFILE)
|
|||||||
if ! grep -qx "$$LICENSE" $(TOPLVL)/projects/common/licenses-{spdx,exceptions,extra}; then FAIL=yes; echo "ERROR: License '$$LICENSE' is not an allowed SPDX license ID"; fi; \
|
if ! grep -qx "$$LICENSE" $(TOPLVL)/projects/common/licenses-{spdx,exceptions,extra}; then FAIL=yes; echo "ERROR: License '$$LICENSE' is not an allowed SPDX license ID"; fi; \
|
||||||
done; test -z "$$FAIL"
|
done; test -z "$$FAIL"
|
||||||
|
|
||||||
#help cvecheck: Checks
|
|
||||||
#help for common vulnerabilities and exposures in your package.
|
|
||||||
cvecheck:
|
|
||||||
# https://github.com/ikeydoherty/cve-check-tool
|
|
||||||
# Installation: https://github.com/ikeydoherty/cve-check-tool/wiki
|
|
||||||
cve-check-tool -M $(TOPLVL)/projects/common/mapping $(SPECFILE)
|
|
||||||
|
|
||||||
#help clean: Cleans up the src.rpm file. but not the rpm files or log files.
|
#help clean: Cleans up the src.rpm file. but not the rpm files or log files.
|
||||||
clean:
|
clean:
|
||||||
rm -f $(SRPMFILE)
|
rm -f $(SRPMFILE)
|
||||||
@@ -179,9 +172,11 @@ autospec: preautospec-checks pullrebase localreponotice clean-old-content
|
|||||||
--name $(PKG_NAME) \
|
--name $(PKG_NAME) \
|
||||||
--archives $(ARCHIVES) \
|
--archives $(ARCHIVES) \
|
||||||
--mock-config $(MOCK_CONFIG_VAL) \
|
--mock-config $(MOCK_CONFIG_VAL) \
|
||||||
--mock-opts "$(MOCK_OPTS)" \
|
--mock-opts="$(MOCK_OPTS)" \
|
||||||
$${SETVERSION:+ --version $${SETVERSION}} \
|
$${SETVERSION:+ --version $${SETVERSION}} \
|
||||||
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
$${NON_INTERACTIVE:+ --non_interactive} \
|
||||||
|
$${SKIP_GIT:+ --skip-git} \
|
||||||
|
$${CLEANUP:+ -C} \
|
||||||
$(firstword $(NEWURL) $(URL));
|
$(firstword $(NEWURL) $(URL));
|
||||||
$(MAKE) link-new-rpms PKG_REPO_DIR="."
|
$(MAKE) link-new-rpms PKG_REPO_DIR="."
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
@@ -206,12 +201,12 @@ for-review.txt:
|
|||||||
|
|
||||||
#help autospecnogit: Runs autospec, but does not create a commit
|
#help autospecnogit: Runs autospec, but does not create a commit
|
||||||
autospecnogit:
|
autospecnogit:
|
||||||
$(MAKE) SKIP_GIT=--skip-git autospec
|
$(MAKE) autospec SKIP_GIT=1
|
||||||
|
|
||||||
#help autospecnostate: Runs autospec, but cleans up mock chroots
|
#help autospecnostate: Runs autospec, but cleans up mock chroots
|
||||||
#help and disables interactive mode.
|
#help and disables interactive mode.
|
||||||
autospecnostate:
|
autospecnostate:
|
||||||
$(MAKE) CLEANUP=-C NON_INTERACTIVE=--non_interactive autospec
|
$(MAKE) autospec CLEANUP=1 NON_INTERACTIVE=1
|
||||||
|
|
||||||
scanlicense:
|
scanlicense:
|
||||||
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --config $(AUTOSPEC_CONF) --license-only $(firstword $(NEWURL) $(URL)) --name $(PKG_NAME)
|
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --config $(AUTOSPEC_CONF) --license-only $(firstword $(NEWURL) $(URL)) --name $(PKG_NAME)
|
||||||
@@ -220,7 +215,7 @@ scanlicense:
|
|||||||
bump:
|
bump:
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
$(MAKE) bumpnogit
|
$(MAKE) bumpnogit
|
||||||
git add *.spec release
|
git add $(SPECFILE) release
|
||||||
git commit -a -m "version bump from $(shell rpmspec -D '_vendor clr' --srpm -q --queryformat '%{VERSION}-%{RELEASE}\n' $(SPECFILE)) to `rpmspec -D '_vendor clr' --srpm -q --queryformat '%{VERSION}-%{RELEASE}\n' $(SPECFILE)`"
|
git commit -a -m "version bump from $(shell rpmspec -D '_vendor clr' --srpm -q --queryformat '%{VERSION}-%{RELEASE}\n' $(SPECFILE)) to `rpmspec -D '_vendor clr' --srpm -q --queryformat '%{VERSION}-%{RELEASE}\n' $(SPECFILE)`"
|
||||||
|
|
||||||
#help bumpnogit: Increments the release file by one and does not commit changes.
|
#help bumpnogit: Increments the release file by one and does not commit changes.
|
||||||
@@ -309,16 +304,21 @@ prekoji-checks:
|
|||||||
koji: prekoji-checks kojidef
|
koji: prekoji-checks kojidef
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
@$(MAKE) checkblacklist
|
@$(MAKE) checkblacklist
|
||||||
@if ! git branch | grep -q -E '^\* master'; then \
|
@if [ "$$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then \
|
||||||
echo "Error: Must be on the master branch to submit to koji" >&2; \
|
echo "Error: Must be on the master branch to submit to koji" >&2; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
if ! git diff --quiet HEAD ${SPECFILE}; then \
|
if ! git diff --quiet HEAD -- ${SPECFILE}; then \
|
||||||
echo "Error: All changes to ${SPECFILE} must be committed first" >&2; \
|
echo "Error: All changes to ${SPECFILE} must be committed first" >&2; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
if git rev-parse --verify --quiet origin/master > /dev/null; then \
|
git fetch; \
|
||||||
|
if git rev-parse --verify --quiet origin/master >/dev/null; then \
|
||||||
git pull --rebase; \
|
git pull --rebase; \
|
||||||
|
fi; \
|
||||||
|
if git ls-remote --tags --exit-code origin $(SRPMVERS) >/dev/null; then \
|
||||||
|
echo "Error: remote tag $(SRPMVERS) already exists" >&2; \
|
||||||
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
git tag $(SRPMVERS)
|
git tag $(SRPMVERS)
|
||||||
git push origin master refs/tags/$(SRPMVERS)
|
git push origin master refs/tags/$(SRPMVERS)
|
||||||
|
|||||||
+2
-2
@@ -68,10 +68,10 @@ endef
|
|||||||
# augmented for local repo support.
|
# augmented for local repo support.
|
||||||
define localrepoenable
|
define localrepoenable
|
||||||
@cp $(1) $(TOPLVL)/repo/yum.conf
|
@cp $(1) $(TOPLVL)/repo/yum.conf
|
||||||
@printf "\n\n[local]\nname=Local\nfailovermethod=priority\nenabled=1\ngpgcheck=0\n" >> $(TOPLVL)/repo/yum.conf
|
@printf "\n\n[local]\nname=Local\nfailovermethod=priority\nenabled=1\ngpgcheck=0\npriority=1\n" >> $(TOPLVL)/repo/yum.conf
|
||||||
@printf "baseurl=file://$$(realpath $(TOPLVL))/repo/\n\n" >> $(TOPLVL)/repo/yum.conf
|
@printf "baseurl=file://$$(realpath $(TOPLVL))/repo/\n\n" >> $(TOPLVL)/repo/yum.conf
|
||||||
@cp $(2) $(TOPLVL)/repo/clear.cfg
|
@cp $(2) $(TOPLVL)/repo/clear.cfg
|
||||||
@printf "\n\n[localrepo]\nname=Local repo\nfailovermethod=priority\nenabled=1\ngpgcheck=0\n" >> $(TOPLVL)/repo/clear.cfg
|
@printf "\n\n[localrepo]\nname=Local repo\nfailovermethod=priority\nenabled=1\ngpgcheck=0\npriority=1\n" >> $(TOPLVL)/repo/clear.cfg
|
||||||
@printf "baseurl=file://$$(realpath $(TOPLVL))/repo/\n\n" >> $(TOPLVL)/repo/clear.cfg
|
@printf "baseurl=file://$$(realpath $(TOPLVL))/repo/\n\n" >> $(TOPLVL)/repo/clear.cfg
|
||||||
@sed -i '/^"""/d; $$a"""' $(TOPLVL)/repo/clear.cfg
|
@sed -i '/^"""/d; $$a"""' $(TOPLVL)/repo/clear.cfg
|
||||||
endef
|
endef
|
||||||
|
|||||||
+1
-7
@@ -56,12 +56,6 @@ $(clone_PKGS): $(PACKAGES_FILE) packages/common/Makefile.common
|
|||||||
$(call subjectprefix,$$pkg); \
|
$(call subjectprefix,$$pkg); \
|
||||||
)
|
)
|
||||||
|
|
||||||
#help cvecheck: Checks for common vulnerabilities and exposures in your code.
|
|
||||||
cvecheck:
|
|
||||||
# https://github.com/ikeydoherty/cve-check-tool
|
|
||||||
# Installation: https://github.com/ikeydoherty/cve-check-tool/wiki
|
|
||||||
cve-check-tool -n -M $(TOPLVL)/projects/common/mapping $(PACKAGES_FILE)
|
|
||||||
|
|
||||||
#help pull: Performs a git pull --rebase for each package repo, avoiding the creation
|
#help pull: Performs a git pull --rebase for each package repo, avoiding the creation
|
||||||
#help of merge commits, while displaying any changes since your last pull. It is
|
#help of merge commits, while displaying any changes since your last pull. It is
|
||||||
#help silent if there are no changes.
|
#help silent if there are no changes.
|
||||||
@@ -221,7 +215,7 @@ autospecnew: preautospecnew-checks localreponotice
|
|||||||
--name $(NAME) \
|
--name $(NAME) \
|
||||||
--archives $(ARCHIVES) \
|
--archives $(ARCHIVES) \
|
||||||
--mock-config $(MOCK_CONFIG_VAL) \
|
--mock-config $(MOCK_CONFIG_VAL) \
|
||||||
--mock-opts "$(MOCK_OPTS)" \
|
--mock-opts="$(MOCK_OPTS)" \
|
||||||
$${SETVERSION:+ --version $${SETVERSION}} \
|
$${SETVERSION:+ --version $${SETVERSION}} \
|
||||||
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
${NON_INTERACTIVE} ${SKIP_GIT} ${CLEANUP} \
|
||||||
$(URL); \
|
$(URL); \
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
Copyright
|
Copyright
|
||||||
Distributable
|
Distributable
|
||||||
|
ISSL
|
||||||
Public-Domain
|
Public-Domain
|
||||||
sendmail
|
sendmail
|
||||||
|
|||||||
@@ -237,6 +237,7 @@ MTLL
|
|||||||
MakeIndex
|
MakeIndex
|
||||||
MirOS
|
MirOS
|
||||||
Motosoto
|
Motosoto
|
||||||
|
MulanPSL-1.0
|
||||||
Multics
|
Multics
|
||||||
Mup
|
Mup
|
||||||
NASA-1.3
|
NASA-1.3
|
||||||
@@ -251,6 +252,7 @@ NPL-1.1
|
|||||||
NPOSL-3.0
|
NPOSL-3.0
|
||||||
NRL
|
NRL
|
||||||
NTP
|
NTP
|
||||||
|
NTP-0
|
||||||
Naumen
|
Naumen
|
||||||
Net-SNMP
|
Net-SNMP
|
||||||
NetCDF
|
NetCDF
|
||||||
@@ -263,7 +265,12 @@ OCLC-2.0
|
|||||||
ODC-By-1.0
|
ODC-By-1.0
|
||||||
ODbL-1.0
|
ODbL-1.0
|
||||||
OFL-1.0
|
OFL-1.0
|
||||||
|
OFL-1.0-RFN
|
||||||
|
OFL-1.0-no-RFN
|
||||||
OFL-1.1
|
OFL-1.1
|
||||||
|
OFL-1.1-RFN
|
||||||
|
OFL-1.1-no-RFN
|
||||||
|
OGL-Canada-2.0
|
||||||
OGL-UK-1.0
|
OGL-UK-1.0
|
||||||
OGL-UK-2.0
|
OGL-UK-2.0
|
||||||
OGL-UK-3.0
|
OGL-UK-3.0
|
||||||
@@ -296,6 +303,7 @@ OpenSSL
|
|||||||
PDDL-1.0
|
PDDL-1.0
|
||||||
PHP-3.0
|
PHP-3.0
|
||||||
PHP-3.01
|
PHP-3.01
|
||||||
|
PSF-2.0
|
||||||
Parity-6.0.0
|
Parity-6.0.0
|
||||||
Plexus
|
Plexus
|
||||||
PostgreSQL
|
PostgreSQL
|
||||||
@@ -323,6 +331,8 @@ SMLNJ
|
|||||||
SMPPL
|
SMPPL
|
||||||
SNIA
|
SNIA
|
||||||
SPL-1.0
|
SPL-1.0
|
||||||
|
SSH-OpenSSH
|
||||||
|
SSH-short
|
||||||
SSPL-1.0
|
SSPL-1.0
|
||||||
SWL
|
SWL
|
||||||
Saxpath
|
Saxpath
|
||||||
@@ -343,6 +353,7 @@ TORQUE-1.1
|
|||||||
TOSL
|
TOSL
|
||||||
TU-Berlin-1.0
|
TU-Berlin-1.0
|
||||||
TU-Berlin-2.0
|
TU-Berlin-2.0
|
||||||
|
UCL-1.0
|
||||||
UPL-1.0
|
UPL-1.0
|
||||||
Unicode-DFS-2015
|
Unicode-DFS-2015
|
||||||
Unicode-DFS-2016
|
Unicode-DFS-2016
|
||||||
@@ -382,10 +393,12 @@ diffmark
|
|||||||
dvipdfm
|
dvipdfm
|
||||||
eCos-2.0
|
eCos-2.0
|
||||||
eGenix
|
eGenix
|
||||||
|
etalab-2.0
|
||||||
gSOAP-1.3b
|
gSOAP-1.3b
|
||||||
gnuplot
|
gnuplot
|
||||||
iMatix
|
iMatix
|
||||||
libpng-2.0
|
libpng-2.0
|
||||||
|
libselinux-1.0
|
||||||
libtiff
|
libtiff
|
||||||
mpich2
|
mpich2
|
||||||
psfrag
|
psfrag
|
||||||
|
|||||||
@@ -51,4 +51,5 @@ rack = rubygem-rack
|
|||||||
compute = nova
|
compute = nova
|
||||||
international_components_for_unicode = icu4c
|
international_components_for_unicode = icu4c
|
||||||
node.js = nodejs
|
node.js = nodejs
|
||||||
jupyter-core = jupyter_core
|
jupyter-core = jupyter_core
|
||||||
|
flatten-json = flatten_json
|
||||||
+34
-1
@@ -102,6 +102,22 @@ def zap_entire_file_end(filename):
|
|||||||
if file.endswith(filename):
|
if file.endswith(filename):
|
||||||
files.remove(file)
|
files.remove(file)
|
||||||
|
|
||||||
|
def zap_line_in_file_substring(filename, match):
|
||||||
|
global header
|
||||||
|
global files
|
||||||
|
global files_chunks
|
||||||
|
global files_header
|
||||||
|
for file in files:
|
||||||
|
if file.endswith(filename):
|
||||||
|
for chunk in files_chunks[file]:
|
||||||
|
to_delete = list()
|
||||||
|
for line in chunk:
|
||||||
|
if match in line:
|
||||||
|
to_delete.append(line)
|
||||||
|
for line in to_delete:
|
||||||
|
chunk.remove(line)
|
||||||
|
|
||||||
|
|
||||||
def zap_line_in_file(filename, match):
|
def zap_line_in_file(filename, match):
|
||||||
global header
|
global header
|
||||||
global files
|
global files
|
||||||
@@ -209,6 +225,11 @@ def main():
|
|||||||
zap_entire_file_end("xz.sig")
|
zap_entire_file_end("xz.sig")
|
||||||
zap_entire_file_end("gz.sig")
|
zap_entire_file_end("gz.sig")
|
||||||
zap_entire_file_end("bz2.sig")
|
zap_entire_file_end("bz2.sig")
|
||||||
|
zap_entire_file_end("xz.asc")
|
||||||
|
zap_entire_file_end("gz.asc")
|
||||||
|
zap_entire_file_end("bz2.asc")
|
||||||
|
|
||||||
|
zap_entire_file_end(".pkey")
|
||||||
|
|
||||||
zap_line_in_file("b/testresults", "Total : 0")
|
zap_line_in_file("b/testresults", "Total : 0")
|
||||||
zap_line_in_file("b/testresults", "Pass : 0")
|
zap_line_in_file("b/testresults", "Pass : 0")
|
||||||
@@ -265,12 +286,15 @@ def main():
|
|||||||
zap_line_in_file_start(".spec", "%description license")
|
zap_line_in_file_start(".spec", "%description license")
|
||||||
zap_line_in_file_start(".spec", "%package doc")
|
zap_line_in_file_start(".spec", "%package doc")
|
||||||
zap_line_in_file_start(".spec", "cp -a ")
|
zap_line_in_file_start(".spec", "cp -a ")
|
||||||
|
zap_line_in_file_start(".spec", "cd %{_builddir}/")
|
||||||
|
zap_line_in_file_start(".spec", "export GCC_IGNORE_WERROR=1")
|
||||||
|
|
||||||
zap_line_in_file_start("b/Makefile", "URL =")
|
zap_line_in_file_start("b/Makefile", "URL =")
|
||||||
zap_line_in_file_start("b/Makefile", "PKG_NAME :=")
|
zap_line_in_file_start("b/Makefile", "PKG_NAME :=")
|
||||||
|
|
||||||
zap_line_in_file("b/options.conf", "archives = ")
|
zap_line_in_file("b/options.conf", "archives = ")
|
||||||
zap_line_in_file("b/options.conf", "giturl = ")
|
zap_line_in_file("b/options.conf", "giturl = ")
|
||||||
|
zap_line_in_file("b/options.conf", "url = ")
|
||||||
zap_line_in_file("b/options.conf", "[package]")
|
zap_line_in_file("b/options.conf", "[package]")
|
||||||
zap_line_in_file("b/options.conf", "")
|
zap_line_in_file("b/options.conf", "")
|
||||||
zap_line_in_file("b/options.conf", "[autospec]")
|
zap_line_in_file("b/options.conf", "[autospec]")
|
||||||
@@ -287,11 +311,13 @@ def main():
|
|||||||
zap_line_in_file("b/options.conf", "# disable parallelization during build")
|
zap_line_in_file("b/options.conf", "# disable parallelization during build")
|
||||||
zap_line_in_file("b/options.conf", "broken_parallel_build = false")
|
zap_line_in_file("b/options.conf", "broken_parallel_build = false")
|
||||||
zap_line_in_file("b/options.conf", "# this package is a library compatability package and only ships versioned library files")
|
zap_line_in_file("b/options.conf", "# this package is a library compatability package and only ships versioned library files")
|
||||||
|
zap_line_in_file("b/options.conf", "# this package is a library compatibility package and only ships versioned library files")
|
||||||
zap_line_in_file("b/options.conf", "compat = false")
|
zap_line_in_file("b/options.conf", "compat = false")
|
||||||
zap_line_in_file("b/options.conf", "# set conservative build flags")
|
zap_line_in_file("b/options.conf", "# set conservative build flags")
|
||||||
zap_line_in_file("b/options.conf", "conservative_flags = false")
|
zap_line_in_file("b/options.conf", "conservative_flags = false")
|
||||||
zap_line_in_file("b/options.conf", "# dev package requires the extras to be installed")
|
zap_line_in_file("b/options.conf", "# dev package requires the extras to be installed")
|
||||||
zap_line_in_file("b/options.conf", "dev_requires_extras = false")
|
zap_line_in_file("b/options.conf", "dev_requires_extras = false")
|
||||||
|
zap_line_in_file("b/options.conf", "nodebug = false")
|
||||||
zap_line_in_file("b/options.conf", "# pass -ffast-math to compiler")
|
zap_line_in_file("b/options.conf", "# pass -ffast-math to compiler")
|
||||||
zap_line_in_file("b/options.conf", "fast-math = false")
|
zap_line_in_file("b/options.conf", "fast-math = false")
|
||||||
zap_line_in_file("b/options.conf", "# optimize build for speed over size")
|
zap_line_in_file("b/options.conf", "# optimize build for speed over size")
|
||||||
@@ -321,9 +347,12 @@ def main():
|
|||||||
zap_line_in_file("b/options.conf", "# add clang flags")
|
zap_line_in_file("b/options.conf", "# add clang flags")
|
||||||
zap_line_in_file("b/options.conf", "use_clang = false")
|
zap_line_in_file("b/options.conf", "use_clang = false")
|
||||||
zap_line_in_file("b/options.conf", "# configure build for lto")
|
zap_line_in_file("b/options.conf", "# configure build for lto")
|
||||||
zap_line_in_file("b/options.conf", "use_lto = false")
|
zap_line_in_file("b/options.conf", "use_lto = true")
|
||||||
zap_line_in_file("b/options.conf", "# require package verification for build")
|
zap_line_in_file("b/options.conf", "# require package verification for build")
|
||||||
zap_line_in_file("b/options.conf", "verify_required = true")
|
zap_line_in_file("b/options.conf", "verify_required = true")
|
||||||
|
zap_line_in_file("b/options.conf", "# do not generate debuginfo for this package")
|
||||||
|
zap_line_in_file("b/options.conf", "nodebug = false")
|
||||||
|
zap_line_in_file("b/options.conf", "domain =")
|
||||||
|
|
||||||
zap_line_in_file("b/buildreq_add", "# This file contains additional build requirements that did not get")
|
zap_line_in_file("b/buildreq_add", "# This file contains additional build requirements that did not get")
|
||||||
zap_line_in_file("b/buildreq_add", "# picked up automatically. One name per line, no whitespace.")
|
zap_line_in_file("b/buildreq_add", "# picked up automatically. One name per line, no whitespace.")
|
||||||
@@ -349,7 +378,11 @@ def main():
|
|||||||
zap_plus_line_in_file("symbols32")
|
zap_plus_line_in_file("symbols32")
|
||||||
|
|
||||||
zap_entire_file("b/whatrequires")
|
zap_entire_file("b/whatrequires")
|
||||||
|
zap_entire_file("b/versions")
|
||||||
|
zap_entire_file("b/.gitignore")
|
||||||
|
|
||||||
|
|
||||||
|
zap_line_in_file_substring(".spec", "%{buildroot}/usr/share/package-licenses") # version number change in license copy
|
||||||
zap_empty_chunks()
|
zap_empty_chunks()
|
||||||
|
|
||||||
print_all()
|
print_all()
|
||||||
|
|||||||
+1
-1
@@ -102,7 +102,7 @@ fi
|
|||||||
|
|
||||||
required_progs() {
|
required_progs() {
|
||||||
local bindir="/usr/bin"
|
local bindir="/usr/bin"
|
||||||
for f in git mock rpm rpmbuild ; do
|
for f in git mock rpm rpmbuild diffstat ; do
|
||||||
[ ! -x "${bindir}/${f}" ] && missing+="${f} "
|
[ ! -x "${bindir}/${f}" ] && missing+="${f} "
|
||||||
done
|
done
|
||||||
[ "$PEM" ] && [ ! -x /usr/bin/koji ] && missing+="koji "
|
[ "$PEM" ] && [ ! -x /usr/bin/koji ] && missing+="koji "
|
||||||
|
|||||||
Reference in New Issue
Block a user