local rpm build fixes

This commit is contained in:
joey
1999-10-26 17:49:25 +00:00
parent 212967fb1a
commit 030cbf9161

View File

@@ -2,7 +2,6 @@
PREFIX=/usr PREFIX=/usr
VER=$(shell perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog) VER=$(shell perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)
VERFILES=alien.spec alien.lsm
all: all:
@@ -34,7 +33,20 @@ version:
debian: debian:
dpkg-buildpackage -tc -rfakeroot dpkg-buildpackage -tc -rfakeroot
rpm: rpm: version
install -d /home/joey/src/redhat/SOURCES
install -d /home/joey/src/redhat/BUILD
install -d /home/joey/src/redhat/SRPMS
install -d /home/joey/src/redhat/RPMS/noarch
ln -sf /home/ftp/pub/code/debian/alien_$(VER).tar.gz \
/home/joey/src/redhat/SOURCES/alien_$(VER).tar.gz
sudo rpm -ba -v alien.spec --target noarch sudo rpm -ba -v alien.spec --target noarch
rm -f /home/joey/src/redhat/SOURCES/alien_$(VER).tar.gz
mv /home/joey/src/redhat/SRPMS/* /home/ftp/pub/code/SRPMS
mv /home/joey/src/redhat/RPMS/noarch/* /home/ftp/pub/code/RPMS/noarch
sudo rm -rf /home/joey/src/redhat/SOURCES \
/home/joey/src/redhat/BUILD \
/home/joey/src/redhat/SRPMS \
/home/joey/src/redhat/RPMS/
.PHONY: debian .PHONY: debian