summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-12 19:16:06 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-12 19:16:06 -0500
commit363f7a2dec61759f9b2691b06fc4b31eb66dbf4f (patch)
treea2577573d7ab8ac89918f61f983acf4d50fde12b
parent2da54c9eddc9b0f778214eaf7200b98da361c803 (diff)
downloadcygwin-gcc-363f7a2dec61759f9b2691b06fc4b31eb66dbf4f.tar.gz
cygwin-gcc-363f7a2dec61759f9b2691b06fc4b31eb66dbf4f.tar.xz
cygwin-gcc-363f7a2dec61759f9b2691b06fc4b31eb66dbf4f.zip
Disable gnat based on Fedora version
-rw-r--r--cygwin-gcc.spec13
1 files changed, 8 insertions, 5 deletions
diff --git a/cygwin-gcc.spec b/cygwin-gcc.spec
index 615812c..aa0c6fd 100644
--- a/cygwin-gcc.spec
+++ b/cygwin-gcc.spec
@@ -6,13 +6,16 @@
# Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line.
%global gcc_release 3
-# arch %%{ix86} x86_64 ia64 ppc ppc64 alpha
-%if 0
-%global build_ada 1
-%else
+
%global build_ada 0
+# building cross-gnat requires matching X.Y version of native gnat
+%if 0%{?fedora} == 14
+%ifarch %{ix86} x86_64 ia64 ppc ppc64 alpha
+%global build_ada 1
+%endif
%endif
%global build_java 1
+
%global __os_install_post /usr/lib/rpm/brp-compress %{nil}
Name: cygwin-gcc
@@ -446,7 +449,7 @@ rm -rf $RPM_BUILD_ROOT
%files gnat
%defattr(-,root,root,-)
%{_bindir}/%{_cygwin_target}-gnat*
-%{_mandir}/man1/%{_cygwin_target}-gnat*.1*
+#%%{_mandir}/man1/%%{_cygwin_target}-gnat*.1*
%{_libdir}/gcc/%{_cygwin_target}/%{version}/adainclude/
%{_libdir}/gcc/%{_cygwin_target}/%{version}/adalib/
%{_libexecdir}/gcc/%{_cygwin_target}/%{version}/gnat1