|
@@ -74,10 +74,19 @@ tarbz2: clean
|
|
|
fi
|
|
|
rm -rf ${NAME}-${VERSION}
|
|
|
|
|
|
-rpm: tarbz2
|
|
|
+tarxz: clean
|
|
|
+ git archive HEAD --prefix=${NAME}-${VERSION}/ --output=../${NAME}-${VERSION}.tar.xz
|
|
|
+ @if [ -d ~/rpm/SOURCES/${NAME} ]; then \
|
|
|
+ mv ../${NAME}-${VERSION}.tar.xz ~/rpm/SOURCES/${NAME}; \
|
|
|
+ else \
|
|
|
+ mv ../${NAME}-${VERSION}.tar.xz ~/rpm/SOURCES/; \
|
|
|
+ fi
|
|
|
+ rm -rf ${NAME}-${VERSION}
|
|
|
+
|
|
|
+rpm: tarxz
|
|
|
rpmbuild -ba ${NAME}-vl.spec
|
|
|
|
|
|
-srpm: tarbz2
|
|
|
+srpm: tarxz
|
|
|
rpmbuild -bs ${NAME}-vl.spec
|
|
|
|
|
|
clean:
|