summaryrefslogtreecommitdiffstats
path: root/rpmspec_rules.mk
blob: 5a7d04eb3db2913effab767d6be7d853e11accec (plain)
1
2
3
4
5
6
7
# License: GPL v2 or later
# Copyright Red Hat Inc. 2008
ifndef PY_TOPDIR
        PY_TOPDIR = $(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
endif

PKGVERSION=$(shell awk 'BEGIN { found = 0 } /Version:/ { if (found == 0) { found = 1; print $$2 } }' $(PY_TOPDIR)/$(PKGNAME).spec)