Implement relocatations when installing rpms.
1 ## Process this file with automake to produce Makefile.in
3 check_SCRIPTS = relocate
5 relocate: relocate.sh primary.xml.gz
6 cp $(srcdir)/relocate.sh relocate
8 primary.xml.gz: zsh.spec zip.spec zap.spec Makefile
9 rm -rf rpmbuild rpms repodata
10 mkdir -p rpmbuild/BUILD rpmbuild/RPMS
11 rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zap.spec
12 rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zip.spec
13 rpmbuild --define "_topdir `pwd`/rpmbuild" -bb $(srcdir)/zsh.spec
15 mv rpmbuild/RPMS/noarch/*.rpm rpms
18 cp repodata/primary.xml.gz repodata/filelists.xml.gz .
20 TESTS = $(check_SCRIPTS)