Blame SOURCES/binutils-version.patch

f8cceb
diff -rup binutils.orig/bfd/Makefile.am binutils-2.38/bfd/Makefile.am
f8cceb
--- binutils.orig/bfd/Makefile.am	2022-02-09 14:10:42.659300681 +0000
f8cceb
+++ binutils-2.38/bfd/Makefile.am	2022-02-09 14:12:40.562532916 +0000
f8cceb
@@ -977,8 +977,8 @@ DISTCLEANFILES = $(BUILD_CFILES) $(BUILD
f8cceb
 bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
f8cceb
 	$(AM_V_GEN)\
f8cceb
 	bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
f8cceb
-	bfd_version_string="\"$(VERSION)\"" ;\
f8cceb
-	bfd_soversion="$(VERSION)" ;\
f8cceb
+	bfd_version_string="\"$(VERSION)-%{release}\"" ;\
f8cceb
+	bfd_soversion="$(VERSION)-%{release}" ;\
f8cceb
 	bfd_version_package="\"$(PKGVERSION)\"" ;\
f8cceb
 	report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
f8cceb
 	. $(srcdir)/development.sh ;\
f8cceb
@@ -989,7 +989,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/
f8cceb
 	fi ;\
f8cceb
 	$(SED) -e "s,@bfd_version@,$$bfd_version," \
f8cceb
 	    -e "s,@bfd_version_string@,$$bfd_version_string," \
f8cceb
-	    -e "s,@bfd_version_package@,$$bfd_version_package," \
f8cceb
+	    -e "s,@bfd_version_package@,\"version \"," \
f8cceb
 	    -e "s,@report_bugs_to@,$$report_bugs_to," \
f8cceb
 	    < $(srcdir)/version.h > $@; \
f8cceb
 	echo "$${bfd_soversion}" > libtool-soversion
f8cceb
diff -rup binutils.orig/bfd/Makefile.in binutils-2.38/bfd/Makefile.in
f8cceb
--- binutils.orig/bfd/Makefile.in	2022-02-09 14:10:42.653300720 +0000
f8cceb
+++ binutils-2.38/bfd/Makefile.in	2022-02-09 14:19:03.362040188 +0000
f8cceb
@@ -2094,8 +2094,8 @@ stmp-lcoff-h: $(LIBCOFF_H_FILES) $(MKDOC
f8cceb
 bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
f8cceb
 	$(AM_V_GEN)\
f8cceb
 	bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
f8cceb
-	bfd_version_string="\"$(VERSION)\"" ;\
f8cceb
-	bfd_soversion="$(VERSION)" ;\
f8cceb
+	bfd_version_string="\"$(VERSION)-%{release}\"" ;\
f8cceb
+	bfd_soversion="$(VERSION)-%{release}" ;\
f8cceb
 	bfd_version_package="\"$(PKGVERSION)\"" ;\
f8cceb
 	report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
f8cceb
 	. $(srcdir)/development.sh ;\
f8cceb
@@ -2106,7 +2106,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/
f8cceb
 	fi ;\
f8cceb
 	$(SED) -e "s,@bfd_version@,$$bfd_version," \
f8cceb
 	    -e "s,@bfd_version_string@,$$bfd_version_string," \
f8cceb
-	    -e "s,@bfd_version_package@,$$bfd_version_package," \
f8cceb
+	    -e "s,@bfd_version_package@,\"version \"," \
f8cceb
 	    -e "s,@report_bugs_to@,$$report_bugs_to," \
f8cceb
 	    < $(srcdir)/version.h > $@; \
f8cceb
 	echo "$${bfd_soversion}" > libtool-soversion