export more stuff from rpmspecfile to debian
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 26 Apr 2013 07:53:21 +0000 (09:53 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 26 Apr 2013 07:53:21 +0000 (09:53 +0200)
Makefile

index 98b5423..602949d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -660,11 +660,13 @@ $(foreach package,$(ALL),$(eval $(call target_depends,$(package))))
 
 ####################
 # 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
 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) debian "TARBALL=$(HOME)/$($(1).tarballs)" "VERSION=$($(1).rpm-release)" "RELEASE=$($(1).rpm-release)" "NAME=$($(1).rpm-name)"
 endef
 
 $(foreach package,$(ALL),$(eval $(call target_debian,$(package))))