From: Ben Crocker <bcrocker(a)redhat.com>
Makefile targets for packit integration
* dist-tarball
* dist-kernelrelease
* dist-kernelversion
* dist-specfile
dist-tarball echoes the path to the tarball, starting with redhat/.
dist-kernelrelease echoes the kernel release string;
dist-kernelversion echoes a full version string, and is meant
to provide a finer granularity than dist-kernelrelease.
dist-specfile (possibly) invokes setup-source, then echoes a path to
the (possibly newly-generated) specfile.
Signed-off-by: Ben Crocker <bcrocker(a)redhat.com>
diff a/redhat/Makefile b/redhat/Makefile
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -200,6 +200,18 @@ $(KABIDW_TARBALL):
@(cd kabi-dwarf && tar cjf $(SOURCES)/$(KABIDW_TARFILE) base run_kabi-dw.sh)
+dist-tarball: $(TARBALL)
+ @echo "redhat/$(TARFILE)"
+
+dist-kernelrelease:
+ @echo $(PACKAGE_NAME)-$(KVERSION)-$(BUILD)
+
+dist-kernelversion:
+ @echo $(PACKAGE_NAME)-$(KVERSION)-$(DISTRO_BUILD)
+
+dist-specfile: setup-source
+ @echo $(SOURCES)/$(SPECFILE)
+
dist-git-version-check:
@# genspec.sh uses pathspec magic that wasn't introduced until version 2.13
@IFS=" ."; \
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/800