mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
local rpm build fixes
This commit is contained in:
16
Makefile
16
Makefile
@@ -2,7 +2,6 @@
|
||||
PREFIX=/usr
|
||||
|
||||
VER=$(shell perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)
|
||||
VERFILES=alien.spec alien.lsm
|
||||
|
||||
all:
|
||||
|
||||
@@ -34,7 +33,20 @@ version:
|
||||
debian:
|
||||
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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user