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