10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-22 12:23:32 +01:00
irpf90/packages/Makefile

25 lines
641 B
Makefile
Raw Normal View History

include version
default:
rm *.rpm *.tar.gz 2> /dev/null ;\
2009-09-17 11:40:44 +02:00
VERSION=$(VERSION) epm -a noarch -m noarch irpf90 irpf90.list ;\
cd noarch ;\
cp ~/.rpmmacros .;\
echo "%_topdir $$PWD" > ~/.rpmmacros ;\
echo "%buildroot %_topdir/buildroot" >> ~/.rpmmacros ;\
cd ..;\
2009-09-17 11:40:44 +02:00
VERSION=$(VERSION) epm -a noarch -m noarch -vv -f rpm irpf90 irpf90.list ;\
cp noarch/.rpmmacros ~;\
mv noarch/*.tar.gz . ;\
mv noarch/*.rpm . ;\
rm -rf noarch;\
NAME=`basename *.rpm .rpm`;\
cd ..;\
git archive --format=tar --prefix=irpf90/ HEAD | gzip > $$OLDPWD/$$NAME-src.tar.gz;\
cd -;\
ls $$NAME*;\
version: ../src/version.py
./make_version.py > version