Update README.md to specify the python requirements
[time-slider.git] / rpm / Makefile
1 top_builddir = ..
2 top_srcdir = ..
3 SED = /usr/bin/sed
4 INTLTOOL_MERGE = /usr/bin/intltool-merge
5 spec_in_files = time-slider.spec.in
6 spec_DATA = $(spec_in_files:.spec.in=.spec)
7
8 ifeq ($(wildcard $(top_srcdir)/.git),)
9         include $(top_srcdir)/VERSION
10 else
11         VERSION=$(shell git describe)
12 endif
13 MAINVER=$(shell echo $(VERSION) | cut -f1 -d'-')
14 RELEASE=$(shell echo $(VERSION) | cut -f2- -d'-' | sed -e 's/-/./g')
15
16 all: $(spec_DATA)
17
18 $(spec_DATA):
19         $(SED) -e 's,\@VERSION\@,$(MAINVER),g' \
20                 -e 's,\@RELEASE\@,$(RELEASE),g' \
21                 -e 's,\@GITVER\@,$(VERSION),g' \
22                 '$@.in' > '$@'