Blame SOURCES/binutils-2.25-version.patch

1a405f
--- binutils-2.26.orig/bfd/Makefile.am	2016-01-25 10:11:33.505289018 +0000
1a405f
+++ binutils-2.26/bfd/Makefile.am	2016-01-25 10:13:23.489964145 +0000
1a405f
@@ -1043,8 +1043,8 @@ DISTCLEANFILES = $(BUILD_CFILES) $(BUILD
1a405f
 bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
1a405f
 	@echo "creating $@"
1a405f
 	@bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
1a405f
-	bfd_version_string="\"$(VERSION)\"" ;\
1a405f
-	bfd_soversion="$(VERSION)" ;\
1a405f
+	bfd_version_string="\"$(VERSION)-%{release}\"" ;\
1a405f
+	bfd_soversion="$(VERSION)-%{release}" ;\
1a405f
 	bfd_version_package="\"$(PKGVERSION)\"" ;\
1a405f
 	report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
1a405f
 	. $(srcdir)/development.sh ;\
1a405f
@@ -1055,7 +1055,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/
1a405f
 	fi ;\
1a405f
 	$(SED) -e "s,@bfd_version@,$$bfd_version," \
1a405f
 	    -e "s,@bfd_version_string@,$$bfd_version_string," \
1a405f
-	    -e "s,@bfd_version_package@,$$bfd_version_package," \
1a405f
+	    -e "s,@bfd_version_package@,\"version \"," \
1a405f
 	    -e "s,@report_bugs_to@,$$report_bugs_to," \
1a405f
 	    < $(srcdir)/version.h > $@; \
1a405f
 	echo "$${bfd_soversion}" > libtool-soversion
1a405f
--- binutils-2.26.orig/bfd/Makefile.in	2016-01-25 10:11:33.505289018 +0000
1a405f
+++ binutils-2.26/bfd/Makefile.in	2016-01-25 10:14:17.818297941 +0000
1a405f
@@ -2111,8 +2111,8 @@ stmp-lcoff-h: $(LIBCOFF_H_FILES)
1a405f
 bfdver.h: $(srcdir)/version.h $(srcdir)/development.sh $(srcdir)/Makefile.in
1a405f
 	@echo "creating $@"
1a405f
 	@bfd_version=`echo "$(VERSION)" | $(SED) -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
1a405f
-	bfd_version_string="\"$(VERSION)\"" ;\
1a405f
-	bfd_soversion="$(VERSION)" ;\
1a405f
+	bfd_version_string="\"$(VERSION)-%{release}\"" ;\
1a405f
+	bfd_soversion="$(VERSION)-%{release}" ;\
1a405f
 	bfd_version_package="\"$(PKGVERSION)\"" ;\
1a405f
 	report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
1a405f
 	. $(srcdir)/development.sh ;\
1a405f
@@ -2123,7 +2123,7 @@ bfdver.h: $(srcdir)/version.h $(srcdir)/
1a405f
 	fi ;\
1a405f
 	$(SED) -e "s,@bfd_version@,$$bfd_version," \
1a405f
 	    -e "s,@bfd_version_string@,$$bfd_version_string," \
1a405f
-	    -e "s,@bfd_version_package@,$$bfd_version_package," \
1a405f
+	    -e "s,@bfd_version_package@,\"version \"," \
1a405f
 	    -e "s,@report_bugs_to@,$$report_bugs_to," \
1a405f
 	    < $(srcdir)/version.h > $@; \
1a405f
 	echo "$${bfd_soversion}" > libtool-soversion