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:
Martin Pitt 2018-08-28 22:16:33 +02:00
parent e451366e3c
commit daa77b6f1b
2 changed files with 2 additions and 2 deletions

View file

@ -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) VERSION := $(shell git describe 2>/dev/null || echo 1)
ifeq ($(TEST_OS),) ifeq ($(TEST_OS),)
TEST_OS = centos-7 TEST_OS = centos-7

View file

@ -6,7 +6,6 @@ License: LGPLv2+
Source: cockpit-starter-kit-%{version}.tar.gz Source: cockpit-starter-kit-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
BuildRequires: /usr/bin/python3
%define debug_package %{nil} %define debug_package %{nil}