[COMMITTED] elfutils.spec: Add eu-srcfiles and add new make rpmbuild target

Message ID 20231103224038.1036035-1-mark@klomp.org
State Committed
Headers
Series [COMMITTED] elfutils.spec: Add eu-srcfiles and add new make rpmbuild target |

Commit Message

Mark Wielaard Nov. 3, 2023, 10:40 p.m. UTC
  The elfutils.spec was missing the new eu-srcfiles program. Add a new
rpmbuild target to test a whole rpm build to catch such issues early.

	 * config/elfutils.spec.in: Add eu-srcfiles to files.
	 * Makefile.am (rpmbuild): New target.

Signed-off-by: Mark Wielaard <mark@klomp.org>
---
 Makefile.am             | 5 +++++
 config/elfutils.spec.in | 1 +
 2 files changed, 6 insertions(+)
  

Patch

diff --git a/Makefile.am b/Makefile.am
index 41badfd7..87debb48 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -46,6 +46,11 @@  distcheck-hook:
 rpm: dist
 	rpmbuild -ts elfutils-@PACKAGE_VERSION@.tar.bz2
 
+rpmbuild: dist
+	mkdir rpmbuild
+	rpmbuild -ta elfutils-@PACKAGE_VERSION@.tar.bz2 \
+		--define "_topdir $(pwd)/rpmbuild"
+
 if GCOV
 
 COVERAGE_OUTPUT_FILE = $(PACKAGE_NAME).lcov
diff --git a/config/elfutils.spec.in b/config/elfutils.spec.in
index 67e88cb5..bb974231 100644
--- a/config/elfutils.spec.in
+++ b/config/elfutils.spec.in
@@ -247,6 +247,7 @@  fi
 %{_bindir}/eu-ranlib
 %{_bindir}/eu-readelf
 %{_bindir}/eu-size
+%{_bindir}/eu-srcfiles
 %{_bindir}/eu-stack
 %{_bindir}/eu-strings
 %{_bindir}/eu-strip