Drop Python3 build requirement
This is only being used for extracting the package name from package json, to avoid having to duplicate it in `Makefile`. But for only this purpose, Python 3 is rather heavyweight. It's also not available on RHEL/CentOS 7.
This commit is contained in:
parent
e451366e3c
commit
daa77b6f1b
2 changed files with 2 additions and 2 deletions
3
Makefile
3
Makefile
|
|
@ -1,4 +1,5 @@
|
|||
PACKAGE_NAME := $(shell python3 -c "import json; print(json.load(open('package.json'))['name'])")
|
||||
# extract name from package.json
|
||||
PACKAGE_NAME := $(shell awk '/"name":/ {gsub(/[",]/, "", $$2); print $$2}' package.json)
|
||||
VERSION := $(shell git describe 2>/dev/null || echo 1)
|
||||
ifeq ($(TEST_OS),)
|
||||
TEST_OS = centos-7
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ License: LGPLv2+
|
|||
|
||||
Source: cockpit-starter-kit-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: /usr/bin/python3
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue