The package rpms/gprbuild.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/gprbuild.git/commit/?id=44e6b6f63....
Change:
+%ifarch %{bootstrap_arch}
Thanks.
Full change:
============
commit 44e6b6f637b29bc482d7c4fcda77be3bb258846a
Author: Pavel Zhukov <pzhukov(a)redhat.com>
Date: Tue Feb 5 20:53:02 2019 +0100
build with fedora flags on bootstrap
diff --git a/.gitignore b/.gitignore
index 8fcd70f..58b64e2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
/gprbuild-gpl-2016-src.tar.gz
/gprbuild-gpl-2017-src.tar.gz
/gprbuild-gpl-2018-20180524-src.tar.gz
+/gprbuild-sanity.tar.gz
diff --git a/gprbuild.spec b/gprbuild.spec
index 4cb5271..81cb051 100644
--- a/gprbuild.spec
+++ b/gprbuild.spec
@@ -22,7 +22,7 @@
Name: gprbuild
Version: 2018
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Ada project builder
License: GPLv3+
URL:
http://libre.adacore.com
@@ -30,6 +30,7 @@ URL:
http://libre.adacore.com
Source0: gprbuild-gpl-2018-20180524-src.tar.gz
# target patterns for Fedora's architectures:
Source2: fedora_arches.xml
+Source3: gprbuild-sanity.tar.gz
Patch2: %{name}-2016-gcc5.patch
# This usrmove patch works for this package. Upstream a different solution
# would be needed to handle other possible setups.
@@ -129,6 +130,7 @@ gcc -dumpmachine
gcc -dumpversion
gnatls -v --version
##
+export GNATMAKEFLAGS="%{Gnatmake_optflags}"
./bootstrap.sh --with-xmlada=%{_includedir}/xmlada/sources/
--prefix=%{buildroot}/%{_prefix}/ build
cp %{SOURCE2} %{buildroot}/%{_datarootdir}/gprconfig/
%else
@@ -139,6 +141,12 @@ XMLADA_BUILD=shared make ADA_PROJECT_PATH=%_GNAT_project_dir
BUILDER="gprbuild -
%endif
%endif
+%ifarch %{bootstrap_arch}
+%check
+tar -xvf %{SOURCE3}
+PATH="%{buildroot}/%{_bindir}:$PATH" gprbuild -P
./gprbuild-tests/tests_shared.gpr
+%endif
+
%install
%{?filter_setup:
%filter_requires_in %{_libdir}
@@ -147,6 +155,8 @@ XMLADA_BUILD=shared make ADA_PROJECT_PATH=%_GNAT_project_dir
BUILDER="gprbuild -
}
%ifarch %{bootstrap_arch}
bash -x ./bootstrap.sh --with-xmlada=%{_includedir}/xmlada/sources/
--prefix=%{buildroot}/%{_prefix}/ install
+# Add target patterns for Fedora's architectures.
+cp %{SOURCE2} %{buildroot}%{_datadir}/gprconfig/
exit 0
%endif
rm -rf %{buildroot}
@@ -202,6 +212,10 @@ rm -rf %{buildroot}%{_GNAT_project_dir}/manifests
%endif
%changelog
+* Tue Feb 5 2019 Pavel Zhukov <pzhukov(a)redhat.com> - 2018-4
+- Add simple tests
+- Build with fedora flags
+
* Tue Feb 5 2019 Pavel Zhukov <pzhukov(a)redhat.com> - 2018-3
- Bootstrap for all arches
diff --git a/sources b/sources
index 4ff1f5a..da32b0f 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
SHA512 (gprbuild-gpl-2018-20180524-src.tar.gz) =
d22c0133baa6a0b626a0c1d145b21865bd0699cd8155ca22727272b0f8988c78163410b432ae148e87099e931df19d51ea867981556c79cb1cceb25456333044
+SHA512 (gprbuild-sanity.tar.gz) =
79cbf6e7b96ff9047e6c9ac9ce89a0f17151bd52e34f4eda7c3284ecb3a1dcd6b98c1fb2be0baf205930800bcd659063a828ab985ab5c9acd24b54909b670109