Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (23 sloc) 888 Bytes
#
# build the binary rpm for yavipin
#
# clean the source
make -C src -f Makefile.static clean
# build the source tgz
(cd ..; tar cvzf /usr/src/redhat/SOURCES/neoip_router.tgz yavipin)
# copy the spec file into rpm directory structure
cp neoip_router.spec /usr/src/redhat/SPECS
#cp neoip_group.spec /usr/src/redhat/SPECS
# build the rpm binary itself
(cd /usr/src/redhat/SPECS; rpmbuild -v -bb neoip_router.spec)
#(cd /usr/src/redhat/SPECS; rpmbuild -v -bb neoip_group.spec)
# remove the source tgz from the rpm directory structure
rm /usr/src/redhat/SOURCES/neoip_router.tgz
#
# remove the source from the BUILD directory
# - unclear why rpmbuild doesnt do it for me but $RPM_BUILD_ROOT doesnt seem to
# work in %clean when i tried
#
rm -rf /usr/src/redhat/BUILD/yavipin
# move built rpm from the rpm directory structure to local directory
mv /usr/src/redhat/RPMS/i386/neoip_*.rpm .