[odb] Require the version of GCC that its being built against
Dave Johansen
daveisfera at fedoraproject.org
Fri Jul 18 21:59:35 UTC 2014
commit c94e3c2e62962ea84f0feccbae5d59e72f031674
Author: Dave Johansen <davejohansen at gmail.com>
Date: Fri Jul 18 14:59:58 2014 -0700
Require the version of GCC that its being built against
odb.spec | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/odb.spec b/odb.spec
index bc4686f..34f5325 100644
--- a/odb.spec
+++ b/odb.spec
@@ -1,6 +1,6 @@
Name: odb
Version: 2.3.0
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Object-relational mapping (ORM) system for C++
Group: Development/Tools
@@ -14,6 +14,10 @@ Patch1: odb-2.3.0-gcc-4.9.0.patch
# See: http://fedoraproject.org/wiki/EPEL:Packaging#BuildRoot_tag
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+# Since this is a plugin, require the specific version of GCC that its being built against
+%global gcc_version %(gcc -dumpversion || echo "666")
+Requires: gcc = %{gcc_version}
+
# If building on Fedora or RHEL 7
%if 0%{?rhel}%{?fedora} >= 7
# Then it just needs to be at least gcc 4.5.0 for plugin support
@@ -130,6 +134,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Fri Jul 18 2014 Dave Johansen <davejohansen at gmail.com> 2.3.0-6
+- Require the version of GCC that its being built against
+
* Sun Jul 6 2014 Ville Skyttä <ville.skytta at iki.fi> - 2.3.0-5
- Build with $RPM_OPT_FLAGS
More information about the scm-commits
mailing list