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 2.3.0-6 +- Require the version of GCC that its being built against + * Sun Jul 6 2014 Ville Skyttä - 2.3.0-5 - Build with $RPM_OPT_FLAGS