[gnatcoll] fix optflags

Pavel Zhukov landgraf at fedoraproject.org
Thu Aug 18 16:54:06 UTC 2011


commit 17d6f5e888457e383be67ae2e44634d29bee82ca
Author: Pavel Zhukov <pavel at zhukoff.net>
Date:   Thu Aug 18 20:53:34 2011 +0400

    fix optflags

 gnatcoll.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/gnatcoll.spec b/gnatcoll.spec
index 2c96a7c..ec39b05 100644
--- a/gnatcoll.spec
+++ b/gnatcoll.spec
@@ -1,6 +1,6 @@
 Name:        gnatcoll    
 Version:    2011
-Release:    4%{?dist}
+Release:    5%{?dist}
 Summary:    Suite of reusable software components and utilities
 
 Group:      System Environment/Libraries
@@ -43,7 +43,11 @@ Requires:   %{name}%{?_isa} = %{version}-%{release}
 
 %build
 %configure
-export GNAT_OPTFLAGS="%{GNAT_optflags}"
+%if 0%{?fedora} >= 16
+export GNAT_OPTFLAGS="%GPRbuild_optflags"
+%else
+export GNAT_OPTFLAGS="%GNAT_optflags"
+%endif
 make ##%%%{?_smp_mflags}
 
 
@@ -87,6 +91,9 @@ chrpath --delete %{buildroot}/%{_bindir}/*
 
 
 %changelog
+* Thu Aug 18 2011 Pavel Zhukov <landgraf at fedoraproject.org> - 2011-5
+- Fix gnat_optflags
+
 * Wed Aug 17 2011 Pavel Zhukov <landgraf at fedoraproject.org> - 2011-4
 - Initial build
 - Remove trailing @ from Makefile


More information about the scm-commits mailing list