The package rpms/anet.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/anet.git/commit/?id=adb4b45192b32....
Change:
+ExclusiveArch: %{GPRbuild_arches}
Thanks.
Full change:
============
commit adb4b45192b320bb49b0c941abd1218bc3f31373
Author: Björn Persson <Bjorn(a)xn--rombobjrn-67a.se>
Date: Sun Feb 4 01:02:41 2018 +0100
Switched to building with GPRbuild.
Project file support was removed from Gnatmake in GCC 8.
diff --git a/anet-0.3.4-gprbuild.patch b/anet-0.3.4-gprbuild.patch
new file mode 100644
index 0000000..101ccc9
--- /dev/null
+++ b/anet-0.3.4-gprbuild.patch
@@ -0,0 +1,16 @@
+--- Makefile 2016-10-10 15:11:41.000000000 +0200
++++ Makefile.gprbuild 2018-02-04 00:33:42.392728967 +0100
+@@ -43,11 +43,11 @@
+ all: build_lib
+
+ build_lib:
+- @gnatmake $(GMAKE_OPTS) -Panet_lib -XVERSION="$(VERSION)" \
++ gprbuild $(GMAKE_OPTS) -Panet_lib -XVERSION="$(VERSION)" \
+ -XLIBRARY_KIND="$(LIBRARY_KIND)" -XLDFLAGS="$(LDFLAGS)"
+
+ build_tests:
+- @gnatmake $(GMAKE_OPTS) -Panet_tests
++ gprbuild $(GMAKE_OPTS) -Panet_tests
+
+ tests: build_tests
+ @$(OBJDIR)/$(TESTDIR)/test_runner
diff --git a/anet.spec b/anet.spec
index c68258e..66dc576 100644
--- a/anet.spec
+++ b/anet.spec
@@ -1,6 +1,6 @@
Name: anet
Version: 0.3.4
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Ada Networking Library
Group: System Environment/Libraries
@@ -13,11 +13,14 @@ Source3:
https://www.codelabs.ch/keys/0xBB793815pub.asc
Patch1: anet-0.2.2-directories_gpr.patch
# Disable one test that doesn't work in Koji:
Patch2: anet-0.3.3-no_IPv6_multicast_test.patch
+# Build with GPRbuild:
+Patch3: anet-0.3.4-gprbuild.patch
BuildRequires: gcc-gnat fedora-gnat-project-common make asciidoc ahven-devel
+BuildRequires: gprbuild
BuildRequires: gnupg2
# Build only on architectures where gcc-gnat is available:
-ExclusiveArch: %{GNAT_arches}
+ExclusiveArch: %{GPRbuild_arches}
# Fails on ppc64le:
#
https://bugzilla.redhat.com/show_bug.cgi?id=1419355
ExcludeArch: ppc64le
@@ -70,20 +73,21 @@ rm keyring.gpg
%setup -q -n libanet-%{version}
%patch1 -p 1
%patch2
+%patch3
%build
-make GNATFLAGS='%{Gnatmake_optflags}' LDFLAGS='%{?__global_ldflags}'
+make GNATFLAGS='%{GPRbuild_optflags}' LDFLAGS='%{?__global_ldflags}'
make doc
%install
-# Pass Gnatmake_optflags here too to ensure that Gnatmake won't recompile anything.
-%{make_install} GNATFLAGS='%{Gnatmake_optflags}' prefix=%{_prefix}
libdir=%{_libdir} gprdir=%{_GNAT_project_dir}
+# Pass GPRbuild_optflags here too to ensure that GPRbuild won't recompile anything.
+%{make_install} GNATFLAGS='%{GPRbuild_optflags}' prefix=%{_prefix}
libdir=%{_libdir} gprdir=%{_GNAT_project_dir}
%check
-make tests GNATFLAGS='%{Gnatmake_optflags} -cargs -fPIE'
+make tests GNATFLAGS='%{GPRbuild_optflags} -cargs -fPIE'
%{_rpmconfigdir}/check-rpaths
@@ -106,6 +110,10 @@ make tests GNATFLAGS='%{Gnatmake_optflags} -cargs -fPIE'
%changelog
+* Sat Feb 03 2018 Björn Persson <Bjorn(a)xn--rombobjrn-67a.se> - 0.3.4-4
+- Switched to building with GPRbuild as project file support was removed from
+ Gnatmake in GCC 8.
+
* Wed Aug 02 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 0.3.4-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild