2 VERSION
=$(shell awk
'/Version:/ { print $$2 }' ${PKGNAME}.spec
)
3 RELEASE
=$(shell awk
'/Release:/ { print $$2 }' ${PKGNAME}.spec
)
4 CVSTAG
=r
$(subst .
,_
,$(VERSION
)-$(RELEASE
))
15 -rm *.
tar.gz pykickstart
/*.pyc
17 python setup.py
-q
clean --all
20 python setup.py
install --root
=$(DESTDIR
)
27 @
rm -rf
/tmp
/${PKGNAME}-$(VERSION
) /tmp
/${PKGNAME}
28 @CVSROOT
=`cat CVS/Root`; cd
/tmp
; cvs
-d
$$CVSROOT export -r
$(CVSTAG
) ${PKGNAME}
29 @mv
/tmp
/${PKGNAME} /tmp
/${PKGNAME}-$(VERSION
)
30 @cd
/tmp
/${PKGNAME}-$(VERSION
) ; python setup.py
-q sdist
31 @cp
/tmp
/${PKGNAME}-$(VERSION
)/dist/${PKGNAME}-$(VERSION
).
tar.gz .
32 @
rm -rf
/tmp
/${PKGNAME}-$(VERSION
)
33 @echo
"The archive is in ${PKGNAME}-$(VERSION).tar.gz"
36 @
rm -rf
${PKGNAME}-$(VERSION
).
tar.gz
37 @
rm -rf
/tmp
/${PKGNAME}-$(VERSION
) /tmp
/${PKGNAME}
38 @
dir=$$PWD; cp
-a
$$dir /tmp
/${PKGNAME}-$(VERSION
)
39 @cd
/tmp
/${PKGNAME}-$(VERSION
) ; python setup.py
-q sdist
40 @cp
/tmp
/${PKGNAME}-$(VERSION
)/dist/${PKGNAME}-$(VERSION
).
tar.gz .
41 @
rm -rf
/tmp
/${PKGNAME}-$(VERSION
)
42 @echo
"The archive is in ${PKGNAME}-$(VERSION).tar.gz"