# a set of stock rpms that this package needs at build-time
# this can also be set in config.<distro>/devel.pkgs or config.planetlab/devel.pkgs as appropriate
# (*) package-DEPEND-DEVEL-RPMS
-# a set of local *rpms* that the build will rpm-install before building <package>
+# a set of *local* rpms that the build will rpm-install before building <package>
# the build will attempt to uninstall those once the package is built, this is not fatal though
# this is intended to denote local rpms, i.e. ones that are results of our own build
# stock rpms should be mentioned in DEVEL-RPMS or in devel.pkgs as described above
####################
# exported to spec files as plrelease
-PLANETLAB_RELEASE = 5.1
+PLANETLAB_RELEASE = 5.2
#
# Default values
####################
# very rough for now (one module per package), targets only sfa for now
+# the general idea here is, changing the specfile (for version number and all) is enough, and this
+# gets passed to "make debian" in the module
+# PREFIX: at one point we had passed PREFIX=/usr to this 'make debian'
+# however it turned out we could manage this some other way (see manifold)
+# so I'm reverting to simplicity
define target_debian
$(1)-debian: $(1)-tarball
mkdir -p DEBIAN/$(1)
rsync -a MODULES/$(1)/ DEBIAN/$(1)/
- make -C DEBIAN/$(1) "TARBALL=$(HOME)/$($(1).tarballs)" debian
+ make -C DEBIAN/$(1) "RPMTARBALL=$(HOME)/$($(1).tarballs)" "RPMVERSION=$($(1).rpm-version)" "RPMRELEASE=$($(1).rpm-release)" "RPMNAME=$($(1).rpm-name)" debian
endef
$(foreach package,$(ALL),$(eval $(call target_debian,$(package))))