Compare commits

..

110 Commits

Author SHA1 Message Date
Patrick McCarty a3ad322a0a Add a few new R packages
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2021-01-27 23:17:04 +00:00
clrbuilder c357625466 Update packages file for version 34200
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2021-01-26 00:09:59 -08:00
clrbuilder ee3938da6c Update packages file for version 34190
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2021-01-21 00:07:46 -08:00
clrbuilder d86d9e564d Update packages file for version 34170
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2021-01-14 00:07:31 -08:00
clrbuilder df467c348a Update packages file for version 34160
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2021-01-12 00:08:32 -08:00
clrbuilder 581aa3f813 Update packages file for version 34150
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2021-01-07 00:08:07 -08:00
Patrick McCarty 5946c4dfa9 koji: support local branch names of 'main' as well
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2021-01-06 18:42:00 +00:00
clrbuilder f3e7eec6dc Update packages file for version 34140
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2021-01-05 00:08:24 -08:00
Patrick McCarty fca54d3027 Add jupyter-packaging and jupyterlab_widgets
Needed for the latest ipywidgets update.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-12-29 20:45:59 +00:00
clrbuilder 6550c61092 Update packages file for version 34100
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-12-17 00:07:32 -08:00
Patrick McCarty d2d8b886bd Restrict query to spec sections above %files
In Clear Linux OS, all package spec files define their header fields
(and other required sections, like %description) above the first %files
section. Restricting the `rpmspec` queries to sections of %files speeds
up the command significantly, most notably for `texlive`, which has the
largest spec file.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-12-14 04:01:31 +00:00
Patrick McCarty e227e8722b Use %{NVR} queryformat when possible
The `%{NVR}` format is equivalent to `%{NAME}-%{VERSION]-%{RELEASE}`.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-12-14 03:52:58 +00:00
Patrick McCarty b924031ba6 Use parameterized function for most rpmspec commands
The `rpmspec` commands usually specify the same flags aside from the
queryformat and the spec file(s) to query.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-12-14 03:49:30 +00:00
clrbuilder 0981d133b1 Update packages file for version 34080
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-12-10 00:07:08 -08:00
clrbuilder 3d195f17b2 Update packages file for version 34010
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-12-08 00:08:37 -08:00
Patrick McCarty 187098145c patchfilter: encode/decode as UTF-8 when possible
In the event a commit contains invalid UTF-8 characters, replace them
with U+FFFD by using the 'replace' error handler for decode().

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-12-04 23:18:16 +00:00
Patrick McCarty fbd176e68d Update license list for SPDX 3.11
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-11-30 07:01:52 +00:00
clrbuilder 75e48d2e12 Update packages file for version 33980
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-11-24 00:08:21 -08:00
Patrick McCarty 87bbccedf1 Add R-parallelly and R-projpred
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-11-20 18:23:58 +00:00
clrbuilder 3f52dc6afb Update packages file for version 33970
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-11-19 00:06:51 -08:00
clrbuilder c2421ce65c Update packages file for version 33960
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-11-17 00:07:35 -08:00
Patrick McCarty 410f9f4e34 Update SPDX license list
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-11-15 21:37:07 +00:00
clrbuilder 480dfd8a53 Update packages file for version 33940
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-11-10 00:07:56 -08:00
clrbuilder ec94c940d1 Update packages file for version 33920
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-11-03 00:07:41 -08:00
clrbuilder b655cd9a12 Update packages file for version 33910
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-10-29 00:07:16 -07:00
clrbuilder 6bc7acd818 Update packages file for version 33870
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-10-22 10:55:06 -07:00
clrbuilder 3dca4d2ecc Update packages file for version 33860
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-10-22 00:08:04 -07:00
clrbuilder 87d9c543ff Update packages file for version 33850
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-10-20 00:07:23 -07:00
clrbuilder 789f1ca94c Update packages file for version 33840
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-10-15 00:07:14 -07:00
Patrick McCarty 2b76e56f69 generateupstream: improve sha1sum invocation
Indicating end of options with `--` fixes the command invocation if the
filename begins with a hyphen.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-10-15 03:02:13 +00:00
clrbuilder 2ccf4b068a Update packages file for version 33830
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-10-13 00:08:03 -07:00
clrbuilder bf315f828f Update packages file for version 33810
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-10-06 00:07:33 -07:00
Patrick McCarty 5a5bac8596 Remove packages not referenced by bundles
It has been a while since the repo has been scanned for "unreferenced"
packages, i.e. packages not included in any Clear Linux OS bundles. This
is another cleanup pass.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-10-02 03:08:48 +00:00
clrbuilder 9e42d678ec Update packages file for version 33790
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-10-01 00:07:02 -07:00
clrbuilder 60b1c5cf68 Update packages file for version 33760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-09-24 18:46:26 -07:00
clrbuilder 2325c43369 Update packages file for version 33730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-09-22 00:08:12 -07:00
clrbuilder 9f72f5fc40 Update packages file for version 33710
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-09-15 00:09:12 -07:00
clrbuilder 757dcd348d Update packages file for version 33690
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-09-08 11:02:38 -07:00
clrbuilder d2e4833782 Update packages file for version 33680
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-09-03 00:07:17 -07:00
clrbuilder 9e5766df8c Update packages file for version 33670
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-09-01 00:07:38 -07:00
clrbuilder 009b7a10e1 Update packages file for version 33620
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-08-13 00:09:30 -07:00
clrbuilder 249cbb0ea6 Update packages file for version 33600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-08-11 00:09:18 -07:00
clrbuilder 4a690a35dc Update packages file for version 33590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-08-06 00:10:52 -07:00
clrbuilder d1a7caafcd Update packages file for version 33580
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-08-04 00:10:24 -07:00
clrbuilder 1023b3c6cc Update packages file for version 33570
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-07-30 00:09:53 -07:00
clrbuilder 2affe6047a Update packages file for version 33550
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-07-28 00:10:15 -07:00
clrbuilder 2a10dd326d Update packages file for version 33540
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-07-23 12:26:46 -07:00
clrbuilder 2d360228ce Update packages file for version 33530
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-07-23 00:09:24 -07:00
clrbuilder a8641f898f Update packages file for version 33520
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-07-21 00:10:16 -07:00
clrbuilder fd412b15a5 Update packages file for version 33510
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-07-16 00:10:54 -07:00
clrbuilder eb579ba11d Update packages file for version 33500
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-07-14 00:11:28 -07:00
clrbuilder c545a66185 Update packages file for version 33470
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-07-06 05:43:40 -07:00
clrbuilder f4f726d8e0 Update packages file for version 33430
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-06-25 00:10:36 -07:00
clrbuilder 8f385c3366 Update packages file for version 33400
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-06-18 10:10:39 -07:00
clrbuilder 305bf6f63b Update packages file for version 33360
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-06-11 22:09:57 -07:00
clrbuilder 4797950600 Update packages file for version 33340
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-06-09 22:10:26 -07:00
clrbuilder 18b1f4841d Update packages file for version 33320
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-06-07 22:10:26 -07:00
clrbuilder 2a061d8ec2 Update packages file for version 33290
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-06-03 13:20:19 -07:00
clrbuilder 47927ff332 Update packages file for version 33240
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-05-29 02:34:08 -07:00
clrbuilder 80bb811f5f Update packages file for version 33200
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-05-27 05:12:04 +00:00
clrbuilder 71827cbf99 Update packages file for version 33190
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-05-26 05:11:22 +00:00
clrbuilder 84a9b62e3f Update packages file for version 33150
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-05-20 05:10:30 +00:00
Thiago Macieira 0dfb2f6ef5 Pass the make's -j option to rpmbuild
For most people simply running "make autospec" or "make build", this
will have no effect. The RPM macro %{_smp_mflags} is predefined to be
the number of CPUs in your system anyway (output of getconf
_NPROCESSORS_ONLN).

But if you do have MAKEFLAGS set in your environment to your CPU
number (and you should), that will get passed to rpmbuild, which then
uses it during the build. And if you, like me, have it set to a
slightly higher number, RPM will use that too.

But if you run "make -jN autospec", then that N will be passed to the
build. This is especially important if you have something doing "make
-j1": RPM will be -j1 too! So instead of "make -j1", run "MAKEFLAGS= make"
2020-05-19 13:47:42 -07:00
Patrick McCarty 59a46563cf Add some input validation for local repo handling
The local repo implementation makes some assumptions about the contents
of the package manager and mock conf files, so do some basic input
validation to assess whether the assumptions are correct, and exit with
informative errors if not.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-05-18 14:18:46 -07:00
Patrick McCarty a198b2d0a0 Make local repo support more parallel safe
For commands that modify contents of $(TOPLVL)/repo, wrap them with
`flock`, using a lock file `repo.lock` within the repo directory. This
ensures that the repo directory tree is not otherwise modified while
each command is running.

To keep the implementation simple, I opted to not wrap entire makefile
targets with a lock (e.g. lock the entire operation of `make repoadd`).
If users need that level of control, they can implement locking in a
separate wrapper script.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-05-18 13:55:19 -07:00
Patrick McCarty 9574f4ecde Remove R-R2Cuba
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-05-15 08:04:56 -07:00
clrbuilder 649f1e38de Update packages file for version 33110
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-05-15 05:10:58 +00:00
clrbuilder 0b86a75a10 Update packages file for version 33100
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-05-14 05:10:40 +00:00
clrbuilder a06eab078d Update packages file for version 33090
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-05-13 05:10:02 +00:00
clrbuilder d4ea9f57dc Update packages file for version 33060
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-05-08 05:09:10 +00:00
clrbuilder ee0847f750 Update packages file for version 33030
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-05-05 05:08:54 +00:00
clrbuilder 98047e4b8e Update packages file for version 33020
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-05-04 05:09:36 +00:00
clrbuilder aa98640939 Update packages file for version 33000
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-05-01 05:08:51 +00:00
clrbuilder 2b355f3fcb Update packages file for version 32990
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-30 05:09:01 +00:00
clrbuilder 57632934c0 Update packages file for version 32970
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-29 01:51:53 +00:00
clrbuilder a4b3da2bca Update packages file for version 32940
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-28 05:08:39 +00:00
clrbuilder f0f2ae6fdf Update packages file for version 32930
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-27 05:08:24 +00:00
clrbuilder 9d82331cfa Update packages file for version 32910
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-23 18:18:29 +00:00
Patrick McCarty ea568f6239 Support cloning of pre-existing package repos
Over the lifetime of Clear Linux OS, many packages have been added and
removed, but the package *repos* always remain once they have been
created.

Thus, if a package is removed at one point, and later added back to the
distro, the same package repo should be used. This commit adds support
to `make autospecnew` for that use case, always using a pre-existing
package repo if one is available.

(Note that the gitolite repo detection is more complicated because it
must support configurations with and without "wild repos" enabled.)

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-04-22 10:45:34 -07:00
clrbuilder 4e2e716a76 Update packages file for version 32900
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-22 05:09:24 +00:00
clrbuilder c64bda09fc Update packages file for version 32890
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-21 05:09:11 +00:00
Patrick McCarty 65c5758c08 patchfilter: more cleanups
- FFLAGS/FCLAGS defaults were recently modified, so support both old and
  new defaults.
- `rm -rf %{buildroot}` is another autospec default line for %install,
  so it will never be a manual addition.
- The `name` field from options.conf is the same as the package name.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-04-20 11:37:34 -07:00
clrbuilder 3d334b1fd4 Update packages file for version 32880
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-20 06:38:03 +00:00
Ross Burton 31399a1cb7 Makefile.toplevel: add 'log' command
Add a new 'log' command that is similar to 'diff' but shows the log of
commits from HEAD to origin/master, thus listing all commits that have
not yet been pushed.

For example:
$ make log
packages/glib-networking
glib-networking: enable installed tests

packages/gnome-desktop
gnome-desktop: Autospec creation for update from version 3.34.3 to version 3.36.0

packages/gnome-terminal
gnome-terminal: Autospec creation for update from version 3.34.2 to version 3.36.0.1

Signed-off-by: Ross Burton <ross.burton@intel.com>
2020-04-17 11:45:11 +01:00
clrbuilder d7bff595de Update packages file for version 32870
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-17 05:08:26 +00:00
clrbuilder 3f53222de8 Update packages file for version 32860
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-16 05:08:19 +00:00
clrbuilder 4435eace17 Update packages file for version 32850
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-15 05:09:15 +00:00
clrbuilder e971c54843 Update packages file for version 32840
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-14 05:08:44 +00:00
clrbuilder c5df45b631 Update packages file for version 32830
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-13 05:09:34 +00:00
Patrick McCarty 1123cf8edc patchfilter: show diffs of Source0 instead of url from options.conf
Modification of Source0 is more trustworthy, since not all packages use
autospec. Also, (to me) the line stands out more when it appears at the
top of the spec file diff.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-04-09 22:15:49 -07:00
clrbuilder 779526d7a4 Update packages file for version 32820
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-10 05:08:43 +00:00
clrbuilder 8280750fe8 Update packages file for version 32800
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-09 05:09:08 +00:00
clrbuilder 72414dec9f Update packages file for version 32790
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-08 09:08:46 +00:00
clrbuilder 61fa7c0655 Update packages file for version 32780
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-07 05:09:16 +00:00
clrbuilder c30c608d19 Update packages file for version 32760
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-03 05:08:46 +00:00
clrbuilder b9702018c7 Update packages file for version 32750
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-04-02 05:08:39 +00:00
clrbuilder 50e2a1d14e Update packages file for version 32730
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-31 05:10:22 +00:00
clrbuilder 941bc3100e Update packages file for version 32710
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-27 05:09:15 +00:00
Patrick McCarty 2971492feb Add ciso8601
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-03-18 21:32:19 -07:00
clrbuilder faa11f738d Update packages file for version 32640
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-18 05:10:45 +00:00
Patrick McCarty 4db065fa34 Add R-isoband (new dep for R-ggplot2)
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-03-17 21:28:49 -07:00
Arjan van de Ven 07cf4c7085 more boilerplate due to autospec changes 2020-03-17 23:16:53 +00:00
clrbuilder 82baba5b88 Update packages file for version 32630
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-17 17:00:52 +00:00
clrbuilder 257ff7bc57 Update packages file for version 32610
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-16 05:10:33 +00:00
clrbuilder 80d1f17444 Update packages file for version 32600
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-13 05:10:56 +00:00
clrbuilder 4f059caffc Update packages file for version 32590
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-12 05:11:21 +00:00
clrbuilder 7d2f1d5e1d Update packages file for version 32580
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-11 05:10:13 +00:00
clrbuilder d36404255b Update packages file for version 32570
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-10 05:10:40 +00:00
clrbuilder 88dd353e21 Update packages file for version 32560
Signed-off-by: clrbuilder <clrbuilder@intel.com>
2020-03-09 05:10:57 +00:00
Patrick McCarty c232a0f6c2 Update package list
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2020-03-06 14:57:09 -08:00
6 changed files with 387 additions and 1296 deletions
+43 -55
View File
@@ -9,9 +9,11 @@ include $(TOPLVL)/projects/common/Makefile.shared
SHELL = /bin/bash
CURRENT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
SPECFILE = $(addsuffix .spec, $(PKG_NAME))
SRPMVERS = $(shell [ ! -f $(SPECFILE) ] || rpmspec -D '_vendor clr' --srpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\n' $(SPECFILE))
SRPMVERS = $(shell [ ! -f $(SPECFILE) ] || $(call queryspec,%{NVR}\n,$(SPECFILE)))
SRPMFILE = results/$(SRPMVERS).src.rpm
LATEST_RPMS = $(wildcard rpms/*.rpm)
@@ -21,7 +23,8 @@ RPMS ?= $(LATEST_RPMS)
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
# MOCK_CONFIG_VAL is set in Makefile.shared
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONFIG_VAL) $(MOCK_OPTS)
MOCK_SMP_FLAGS=$(patsubst -j%, -D_smp_mflags\ -j%,$(filter -j%, $(MAKEFLAGS)))
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONFIG_VAL) $(MOCK_SMP_FLAGS) $(MOCK_OPTS)
ifneq ($(wildcard upstream),)
__allsources := $(notdir $(strip $(shell cat upstream)))
@@ -45,7 +48,7 @@ upstream:
#help spdxcheck: Checks that the package license is a valid SPDX license,
#help or that it is in the exceptions list.
spdxcheck: $(SPECFILE)
@for LICENSE in `rpmspec -D '_vendor clr' --srpm -q --queryformat '%{LICENSE}\n' $(SPECFILE)`; do \
@for LICENSE in `$(call queryspec,%{LICENSE}\n,$(SPECFILE))`; do \
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"
@@ -172,7 +175,7 @@ autospec: preautospec-checks pullrebase localreponotice clean-old-content
--name $(PKG_NAME) \
--archives $(ARCHIVES) \
--mock-config $(MOCK_CONFIG_VAL) \
--mock-opts="$(MOCK_OPTS)" \
--mock-opts="$(MOCK_SMP_FLAGS) $(MOCK_OPTS)" \
$${SETVERSION:+ --version $${SETVERSION}} \
$${NON_INTERACTIVE:+ --non_interactive} \
$${SKIP_GIT:+ --skip-git} \
@@ -216,12 +219,12 @@ bump:
git pull --rebase
$(MAKE) bumpnogit
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 $(call queryspec,%{VERSION}-%{RELEASE}\n,$(SPECFILE))) to `$(call queryspec,%{VERSION}-%{RELEASE}\n,$(SPECFILE))`"
#help bumpnogit: Increments the release file by one and does not commit changes.
bumpnogit:
@$(MAKE) spdxcheck
oldrel=$(shell rpmspec -D '_vendor clr' --srpm -q --queryformat '%{RELEASE}\n' $(SPECFILE)); \
oldrel=$(shell $(call queryspec,%{RELEASE}\n,$(SPECFILE))); \
newrel=$$(($$oldrel + 1)); \
sed -i "s/^\(Release[[:blank:]]*:[[:blank:]]*\)$$oldrel$$/\1$$newrel/" $(SPECFILE); \
echo "$$newrel" > release;
@@ -231,7 +234,7 @@ $(__missingsources): sources
# First argument is a Clear Linux build number (e.g. 22000)
define fetch-from-srpm
tmp=$$(mktemp -d -p "."); \
srpm=$$(rpmspec --srpm -q --qf "%{NVR}.src.rpm\n" $(SPECFILE)); \
srpm=$$($(call queryspec,%{NVR}.src.rpm\n,$(SPECFILE))); \
if cd "$$tmp" && ! curl -s -S -f -L -O $(MIRROR_CURL_OPTS) $(DOWNLOAD_MIRROR)/releases/$(1)/clear/source/SRPMS/$$srpm; then \
echo "Failed to download $$srpm from Clear Linux release $(1)." >&2; \
cd .. && rm -rf "$$tmp"; \
@@ -239,7 +242,7 @@ define fetch-from-srpm
fi; \
rpm2cpio $$srpm | cpio --quiet -id; \
cd ..; \
srclist=$$(rpmspec --srpm -q --qf "[%{SOURCE}\n]" $(SPECFILE)); \
srclist=$$($(call queryspec,[%{SOURCE}\n],$(SPECFILE))); \
for s in $$srclist; do \
if ! mv --no-clobber "$$tmp"/$$s .; then \
echo "Missing source file \"$$s\" in $${srpm}." >&2; \
@@ -278,7 +281,7 @@ else
sources:
@$(MAKE) generateupstream; \
[ $$? -eq 0 ] && exit 0; \
nvr="$$(rpmspec --srpm -q --qf '%{NAME}\t%{VERSION}\t%{RELEASE}\n' $(SPECFILE))"; \
nvr="$$($(call queryspec,%{NAME}\t%{VERSION}\t%{RELEASE}\n,$(SPECFILE)))"; \
git -C $(TOPLVL)/projects/common fetch --tags >/dev/null 2>&1; \
latest_builds=$$(git -C $(TOPLVL)/projects/common tag -l | sort -rn); \
for b in $$latest_builds; do \
@@ -304,8 +307,8 @@ prekoji-checks:
koji: prekoji-checks kojidef
@$(MAKE) spdxcheck
@$(MAKE) checkblacklist
@if [ "$$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then \
echo "Error: Must be on the master branch to submit to koji" >&2; \
@if [ "$(CURRENT_BRANCH)" != "master" ] && [ "$(CURRENT_BRANCH)" != "main" ]; then \
echo "Error: Must be on the \"master\" or \"main\" branch to submit to koji" >&2; \
exit 1; \
fi; \
if ! git diff --quiet HEAD -- ${SPECFILE}; then \
@@ -321,7 +324,7 @@ koji: prekoji-checks kojidef
exit 1; \
fi
git tag $(SRPMVERS)
git push origin master refs/tags/$(SRPMVERS)
git push origin $(CURRENT_BRANCH):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
@@ -349,11 +352,6 @@ rekoji-nowait:
logcheck:
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
$(TOPLVL)/repo:
@echo "Creating local RPM repository $(TOPLVL)/repo"
mkdir $(TOPLVL)/repo
$(MAKE) localrepocreate
#help repoadd: Adds locally-built RPMs for this package to the local RPM
#help repository. If this repository does not yet exist, it is created and
#help enabled.
@@ -361,22 +359,16 @@ repoadd: $(TOPLVL)/repo
@if [ -z "${LATEST_RPMS}" ]; then \
echo "No rpms found in rpms/ directory."; \
exit 1; \
fi; \
if [ -f .repo-index ]; then \
echo "Cleaning old rpms:"; \
for r in `cat .repo-index`; do \
echo "-$$r"; \
rm -f $(TOPLVL)/repo/$$r; \
done; \
rm .repo-index; \
fi; \
for r in ${LATEST_RPMS}; do \
echo "+$$r"; \
echo $$(basename $$r) >> .repo-index; \
ln -f $$r $(TOPLVL)/repo/; \
done
$(MAKE) localrepocreate
$(call localrepoenable,${PM_CONF},${MOCK_CONF})
fi
$(MAKE) -s repodel NO_CREATEREPO=1
@echo "Adding new rpms:"; \
for rpm in ${LATEST_RPMS}; do \
echo "+$${rpm#rpms/}"; \
echo "$${rpm#rpms/}" >> .repo-index; \
done; \
flock $</repo.lock ln -f -t $< ${LATEST_RPMS}
$(MAKE) -s localrepocreate
$(MAKE) -s localrepoenable
#help repostage: Stages locally-built RPMs for this package to the local RPM
#help directory. If this directory does not yet exist, it is created and
@@ -385,37 +377,33 @@ repostage: $(TOPLVL)/repo
@if [ -z "${LATEST_RPMS}" ]; then \
echo "No rpms found in rpms/ directory."; \
exit 1; \
fi; \
if [ -f .repo-index ]; then \
echo "Cleaning old rpms:"; \
for r in `cat .repo-index`; do \
echo "-$$r"; \
rm -f $(TOPLVL)/repo/$$r; \
done; \
rm .repo-index; \
fi; \
for r in ${LATEST_RPMS}; do \
echo "+$$r"; \
echo $$(basename $$r) >> .repo-index; \
ln -f $$r $(TOPLVL)/repo/; \
done
fi
$(MAKE) -s repodel NO_CREATEREPO=1
@for r in ${LATEST_RPMS}; do \
echo "+$${rpm#rpms/}"; \
echo "$${rpm#rpms/}" >> .repo-index; \
done; \
flock $</repo.lock ln -f -t $< ${LATEST_RPMS}
#help repodel: Removes RPMs from the local RPM repository that were
#help previously added by 'make repoadd' for this package.
repodel:
repodel: $(TOPLVL)/repo
@if [ -f .repo-index ]; then \
echo "Cleaning old rpms:"; \
for r in `cat .repo-index`; do \
echo "-$$r"; \
rm -f $(TOPLVL)/repo/$$r; \
done; \
mapfile -t rpms < <(sed 's|.*|$</&|' .repo-index); \
for rpm in "$${rpms[@]}"; do \
echo "-$${rpm#$</}"; \
done < .repo-index; \
flock $</repo.lock rm -f "$${rpms[@]}"; \
rm .repo-index; \
$(MAKE) localrepocreate; \
if [ -z "$$NO_CREATEREPO" ]; then \
$(MAKE) -s localrepocreate; \
fi; \
fi
#help repoenable: Enables the local RPM repository for use with Yum/DNF and
#help Mock. If this repository does not yet exist, it is created.
repoenable: $(TOPLVL)/repo ; $(call localrepoenable,${PM_CONF},${MOCK_CONF})
repoenable: localrepoenable ;
#help repodisable: Disables the local RPM repository.
repodisable: localrepodisable ;
@@ -512,7 +500,7 @@ generateupstream:
exit 1; \
fi; \
fi; \
echo $$(sha1sum $$filename | cut -d\ -f1)/$$filename >> upstream; \
echo $$(sha1sum -- $$filename | cut -d\ -f1)/$$filename >> upstream; \
done
@rm -f upstream.bak
@cat upstream
+87 -17
View File
@@ -47,6 +47,14 @@ define subjectprefix
git config format.subjectPrefix "PATCH $(1)"
endef
# Query the spec file (or spec files) listed in argument 2 for the field(s)
# specified in argument 1. The fields are derived from the source rpm(s)
# generated by the specs. Queried fields that are declared within the spec file
# must be declared above the first %files section.
define queryspec
rpmspec --define='_vendor clr' --srpm --query --queryformat='$(1)' <(sed -n '1,/%files/p' $(2))
endef
# If GITOLITE_BASE_URL is defined, sets a repo's push URL for that gitolite
# instance. Accepts one argument: the path to the repo on gitolite. If
# GITOLITE_BASE_URL is not defined, no push URL is set -- the shell's null
@@ -62,33 +70,95 @@ define remotepkgname
$(if $(USE_PACKAGE_MAPPING),$$(awk -v P="$(1)" '$$1 == P { res=$$2 } END { print res ? res : P }' $(TOPLVL)/projects/common/pkg-mapping),$(1))
endef
# Clone repo from the configured gitolite instance, but only if the repo exists
# on that instance and matches the pattern "packages/..*".
define try-clone-gitolite
rpkg=$(call remotepkgname,$(1)); \
if ssh $(GITOLITE_BASE_URL) info "packages/$$rpkg" | grep --quiet "packages/$$rpkg$$"; then \
git clone $(PKG_BASE_URL)/$$rpkg packages/$(1); \
cd packages/$(1); \
$(call gitoliteurl,packages/$(1)); \
$(call subjectprefix,$(1)); \
fi
endef
# Clone repo from the configured package repo hosting location, as defined by
# the PKG_BASE_URL variable, but only if the repo exists.
define try-clone-other
rpkg=$(call remotepkgname,$(1)); \
if git ls-remote $(PKG_BASE_URL)/$$rpkg &> /dev/null; then \
git clone $(PKG_BASE_URL)/$$rpkg packages/$(1); \
cd packages/$(1); \
$(call subjectprefix,$(1)); \
fi
endef
# First, try running `make clone_PKG`, where PKG is the first argument. If that
# fails, proceed with fallback cloning strategies.
define clone-if-available
$(MAKE) clone_$(1) || { \
$(if $(GITOLITE_BASE_URL),$(call try-clone-gitolite,$(1)),$(call try-clone-other,$(1))); \
}
endef
$(TOPLVL)/repo:
@echo "Creating local RPM repository $(TOPLVL)/repo"
mkdir $(TOPLVL)/repo
# Enables the local RPM repo by installing package manager and Mock configs.
# First argument is the path to the package manager config, and the second
# argument is the path to the mock config. Each of these config files is
# augmented for local repo support.
define localrepoenable
@cp $(1) $(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
@cp $(2) $(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
@sed -i '/^"""/d; $$a"""' $(TOPLVL)/repo/clear.cfg
endef
localrepoenable: $(TOPLVL)/repo
@if grep -qx '\[localrepo\]' ${PM_CONF}; then \
echo "[ERROR] ${PM_CONF} contains section named [localrepo]."; \
echo "[ERROR] Remove that section and try again."; \
exit 1; \
fi >&2
@if grep -qx '\[localrepo\]' ${MOCK_CONF}; then \
echo "[ERROR] ${MOCK_CONF} contains section named [localrepo]."; \
echo "[ERROR] Remove that section and try again."; \
exit 1; \
fi >&2
@last="$$(tail -n 1 ${MOCK_CONF})"; \
if [[ "$$last" != "\"\"\"" ]]; then \
echo "[ERROR] Last line of ${MOCK_CONF} is malformed; expected: \"\"\"; actual: $$last"; \
echo "[ERROR] Fix that line and try again."; \
exit 1; \
fi >&2
@pm_new=$$(mktemp -p $< yum.conf.XXXXXXX); \
pm_orig=$</yum.conf; \
mock_new=$$(mktemp -p $< clear.cfg.XXXXXXX); \
mock_orig=$</clear.cfg; \
cp ${PM_CONF} $$pm_new; \
printf "\n\n[localrepo]\nname=localrepo\nfailovermethod=priority\nenabled=1\ngpgcheck=0\npriority=1\n" >> $$pm_new; \
printf "baseurl=file://$$(realpath $<)/\n\n" >> $$pm_new; \
if ! cmp -s $$pm_new $$pm_orig; then \
flock $</repo.lock mv $$pm_new $$pm_orig; \
fi; \
rm -f $$pm_new; \
cp ${MOCK_CONF} $$mock_new; \
sed -i '$$d' $$mock_new; \
printf "\n\n[localrepo]\nname=localrepo\nfailovermethod=priority\nenabled=1\ngpgcheck=0\npriority=1\n" >> $$mock_new; \
printf "baseurl=file://$$(realpath $<)/\n\n" >> $$mock_new; \
sed -i '$$a"""' $$mock_new; \
if ! cmp -s $$mock_new $$mock_orig; then \
flock $</repo.lock mv $$mock_new $$mock_orig; \
fi; \
rm -f $$mock_new
# Disables the local RPM repo by removing the installed package manager and
# Mock configuration files.
localrepodisable:
@rm -f $(TOPLVL)/repo/yum.conf
@rm -f $(TOPLVL)/repo/clear.cfg
localrepodisable: $(TOPLVL)/repo
flock $</repo.lock rm -f $</yum.conf $</clear.cfg
# Runs createrepo_c (or createrepo) for the local RPM repo
localrepocreate:
( cd $(TOPLVL)/repo ; if type createrepo_c 1>/dev/null 2>&1; then createrepo_c .; else createrepo .; fi );
# Runs createrepo_c for the local RPM repo
localrepocreate: $(TOPLVL)/repo
cd $< && flock repo.lock createrepo_c .
# Remove all RPMs from the local RPM repo
localrepoclean:
@find $(TOPLVL)/repo -maxdepth 1 -name '*.rpm' -delete
localrepoclean: $(TOPLVL)/repo
flock $</repo.lock find $< -maxdepth 1 -name '*.rpm' -delete
# Summarizes the local RPM repo status
localrepostatus:
+13 -9
View File
@@ -166,16 +166,25 @@ diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
(cd $$p ; git status | grep -q 'nothing to commit, working [^ ]* clean' || (echo "Uncommitted changes in: $$p"; git diff |diffstat -p1)) ;\
done
#help log: Run git log origin/master..HEAD for all package repos, thus
#help displaying any committed but unpushed changes.
log: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
( cd $$p; if [ "$$(git rev-parse --verify HEAD)" != "$$(git rev-parse --verify origin/master)" ] ; then \
echo $$p ; git --no-pager log --pretty="format:%s" origin/master..HEAD ; echo ; echo;\
fi ; ) \
done
#help versions: Displays the version of each package in the ./packages tree.
versions: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
@for p in $(addprefix packages/,$(PKGS_LOCAL)); do \
(cd $$p; if ls *.spec &> /dev/null; then rpmspec -q --queryformat '%{NAME}-%{VERSION}\n' *.spec | head -n1; fi) ;\
(cd $$p; if ls *.spec &> /dev/null; then $(call queryspec,%{NAME}-%{VERSION}\n,*.spec) | head -n1; fi) ;\
done
#help releases: Like 'make versions', but also displays the release number.
releases: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
@for p in $(addprefix packages/,$(PKGS_LOCAL)); do \
(cd $$p; if ls *.spec &> /dev/null; then rpmspec -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}\n' *.spec | head -n1; fi) ;\
(cd $$p; if ls *.spec &> /dev/null; then $(call queryspec,%{NVR}\n,*.spec) | head -n1; fi) ;\
done
#help provides: Is used to find out which RPM package provides some file.
@@ -196,7 +205,7 @@ autospecnew: preautospecnew-checks localreponotice
echo "Please specify NAME and URL. The ARCHIVES variable is optional."; \
exit 1; \
fi
-$(MAKE) clone_$(NAME)
$(call clone-if-available,$(NAME))
@if [ ! -d $(TOPLVL)/packages/$(NAME)/.git ]; then \
echo "no remote repository found, creating new package repository and running autospec"; \
mkdir -p $(TOPLVL)/packages/$(NAME); \
@@ -281,14 +290,9 @@ autospecnewgo: preautospecnew-checks localreponotice
exit 1; \
fi
$(TOPLVL)/repo:
@echo "Creating local RPM repository $(TOPLVL)/repo"
mkdir $(TOPLVL)/repo
$(MAKE) localrepocreate
#help repoenable: Enables the local RPM repository for use with Yum/DNF and
#help Mock. If this repository does not yet exist, it is created.
repoenable: $(TOPLVL)/repo ; $(call localrepoenable,${PM_CONF},${MOCK_CONF})
repoenable: localrepoenable ;
#help repodisable: Disables the local RPM repository.
repodisable: localrepodisable ;
+39
View File
@@ -16,6 +16,7 @@ AMDPLPA
AML
AMPAS
ANTLR-PD
ANTLR-PD-fallback
APAFML
APL-1.0
APSL-1.0
@@ -39,6 +40,7 @@ BSD-2-Clause
BSD-2-Clause-FreeBSD
BSD-2-Clause-NetBSD
BSD-2-Clause-Patent
BSD-2-Clause-Views
BSD-3-Clause
BSD-3-Clause-Attribution
BSD-3-Clause-Clear
@@ -52,6 +54,7 @@ BSD-4-Clause-UC
BSD-Protection
BSD-Source-Code
BSL-1.0
BUSL-1.1
Bahyph
Barr
Beerware
@@ -59,11 +62,15 @@ BitTorrent-1.0
BitTorrent-1.1
BlueOak-1.0.0
Borceux
CAL-1.0
CAL-1.0-Combined-Work-Exception
CATOSL-1.1
CC-BY-1.0
CC-BY-2.0
CC-BY-2.5
CC-BY-3.0
CC-BY-3.0-AT
CC-BY-3.0-US
CC-BY-4.0
CC-BY-NC-1.0
CC-BY-NC-2.0
@@ -74,6 +81,7 @@ CC-BY-NC-ND-1.0
CC-BY-NC-ND-2.0
CC-BY-NC-ND-2.5
CC-BY-NC-ND-3.0
CC-BY-NC-ND-3.0-IGO
CC-BY-NC-ND-4.0
CC-BY-NC-SA-1.0
CC-BY-NC-SA-2.0
@@ -87,8 +95,10 @@ CC-BY-ND-3.0
CC-BY-ND-4.0
CC-BY-SA-1.0
CC-BY-SA-2.0
CC-BY-SA-2.0-UK
CC-BY-SA-2.5
CC-BY-SA-3.0
CC-BY-SA-3.0-AT
CC-BY-SA-4.0
CC-PDDC
CC0-1.0
@@ -104,6 +114,9 @@ CECILL-B
CECILL-C
CERN-OHL-1.1
CERN-OHL-1.2
CERN-OHL-P-2.0
CERN-OHL-S-2.0
CERN-OHL-W-2.0
CNRI-Jython
CNRI-Python
CNRI-Python-GPL-Compatible
@@ -125,6 +138,7 @@ ECL-1.0
ECL-2.0
EFL-1.0
EFL-2.0
EPICS
EPL-1.0
EPL-2.0
EUDatagrid
@@ -142,15 +156,28 @@ Fair
Frameworx-1.0
FreeImage
GFDL-1.1
GFDL-1.1-invariants-only
GFDL-1.1-invariants-or-later
GFDL-1.1-no-invariants-only
GFDL-1.1-no-invariants-or-later
GFDL-1.1-only
GFDL-1.1-or-later
GFDL-1.2
GFDL-1.2-invariants-only
GFDL-1.2-invariants-or-later
GFDL-1.2-no-invariants-only
GFDL-1.2-no-invariants-or-later
GFDL-1.2-only
GFDL-1.2-or-later
GFDL-1.3
GFDL-1.3-invariants-only
GFDL-1.3-invariants-or-later
GFDL-1.3-no-invariants-only
GFDL-1.3-no-invariants-or-later
GFDL-1.3-only
GFDL-1.3-or-later
GL2PS
GLWTPL
GPL-1.0
GPL-1.0+
GPL-1.0-only
@@ -175,7 +202,9 @@ Glide
Glulxe
HPND
HPND-sell-variant
HTMLTIDY
HaskellReport
Hippocratic-2.1
IBM-pibs
ICU
IJG
@@ -226,6 +255,7 @@ MIT-CMU
MIT-advertising
MIT-enna
MIT-feh
MIT-open-group
MITNFA
MPL-1.0
MPL-1.1
@@ -238,12 +268,16 @@ MakeIndex
MirOS
Motosoto
MulanPSL-1.0
MulanPSL-2.0
Multics
Mup
NASA-1.3
NBPL-1.0
NCGL-UK-2.0
NCSA
NGPL
NIST-PD
NIST-PD-fallback
NLOD-1.0
NLPL
NOSL
@@ -260,6 +294,7 @@ Newsletr
Nokia
Noweb
Nunit
O-UDA-1.0
OCCT-PL
OCLC-2.0
ODC-By-1.0
@@ -270,6 +305,7 @@ OFL-1.0-no-RFN
OFL-1.1
OFL-1.1-RFN
OFL-1.1-no-RFN
OGC-1.0
OGL-Canada-2.0
OGL-UK-1.0
OGL-UK-2.0
@@ -305,7 +341,10 @@ PHP-3.0
PHP-3.01
PSF-2.0
Parity-6.0.0
Parity-7.0.0
Plexus
PolyForm-Noncommercial-1.0.0
PolyForm-Small-Business-1.0.0
PostgreSQL
Python-2.0
QPL-1.0
+194 -1212
View File
File diff suppressed because it is too large Load Diff
+11 -3
View File
@@ -211,7 +211,7 @@ def main():
with open (filename, "r") as myfile:
lines = myfile.readlines()
else:
output = subprocess.check_output("git format-patch -1 --stdout", shell=True).decode("latin-1")
output = subprocess.check_output("git format-patch -1 --stdout", shell=True).decode("utf-8", errors="replace")
lines = output.split("\n")
parse_patch(lines)
@@ -244,14 +244,15 @@ def main():
zap_line_in_file_start(".spec", "Release :")
zap_line_in_file_start(".spec", "Source99 :")
zap_line_in_file_start(".spec", "Source0 :")
zap_line_in_file_start(".spec", "export SOURCE_DATE_EPOCH")
zap_line_in_file_start(".spec", "export AR=gcc-ar")
zap_line_in_file_start(".spec", "export RANLIB=gcc-ranlib")
zap_line_in_file_start(".spec", "export NM=gcc-nm")
zap_line_in_file_start(".spec", "export CFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
zap_line_in_file_start(".spec", "export FCFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
zap_line_in_file_start(".spec", "export FCFLAGS=\"$FFLAGS -O3 -ffat-lto-objects -flto=4 \"")
zap_line_in_file_start(".spec", "export FFLAGS=\"$CFLAGS -O3 -ffat-lto-objects -flto=4 \"")
zap_line_in_file_start(".spec", "export FFLAGS=\"$FFLAGS -O3 -ffat-lto-objects -flto=4 \"")
zap_line_in_file_start(".spec", "export CXXFLAGS=\"$CXXFLAGS -O3 -ffat-lto-objects -flto=4 \"")
zap_line_in_file_start(".spec", "%setup -q -n ")
zap_line_in_file_start(".spec", "URL :")
@@ -288,13 +289,15 @@ def main():
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(".spec", "rm -rf %{buildroot}")
zap_line_in_file_start("b/Makefile", "URL =")
zap_line_in_file_start("b/Makefile", "PKG_NAME :=")
zap_line_in_file_start("b/options.conf", "name = ")
zap_line_in_file("b/options.conf", "archives = ")
zap_line_in_file("b/options.conf", "giturl = ")
zap_line_in_file("b/options.conf", "url = ")
zap_line_in_file_start("b/options.conf", "url = ")
zap_line_in_file("b/options.conf", "[package]")
zap_line_in_file("b/options.conf", "")
zap_line_in_file("b/options.conf", "[autospec]")
@@ -351,8 +354,13 @@ def main():
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", "# do not generate debuginfo for this package")
zap_line_in_file("b/options.conf", "# configure build also for openmpi")
zap_line_in_file("b/options.conf", "openmpi = false")
zap_line_in_file("b/options.conf", "alias =")
zap_line_in_file("b/options.conf", "alias = ")
zap_line_in_file("b/options.conf", "nodebug = false")
zap_line_in_file("b/options.conf", "domain =")
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", "# picked up automatically. One name per line, no whitespace.")