The package rpms/gsl-lite.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/gsl-lite.git/commit/?id=1650f046a309....
Change: +%ifarch s390x
Thanks.
Full change: ============
commit 1650f046a309b2d1809ecf5160b9ddd66cfb7a0f Author: Ankur Sinha (Ankur Sinha Gmail) sanjay.ankur@gmail.com Date: Mon Apr 19 13:01:55 2021 +0100
feat: init
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0639110 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gsl-lite-0.38.0.tar.gz diff --git a/gsl-lite.spec b/gsl-lite.spec new file mode 100644 index 0000000..530e263 --- /dev/null +++ b/gsl-lite.spec @@ -0,0 +1,81 @@ +%global _description %{expand: +gsl-lite is an implementation of the C++ Core Guidelines Support Library +originally based on Microsoft GSL. +} + +%bcond_without tests + +# Header only, so no debuginfo is generated +%global debug_package %{nil} + +# Workaround GCC bug: +# Do not error for array bound warnings +# Upstream bug: https://github.com/gsl-lite/gsl-lite/issues/303 +# GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100137 +%global optflags %(echo "%optflags -Wno-error=array-bounds") + +Name: gsl-lite +Version: 0.38.0 +Release: 1%{?dist} +Summary: Header-only version of ISO C++ Guidelines Support Library (GSL) + +License: MIT +URL: https://github.com/gsl-lite/gsl-lite +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: gcc-c++ + +%description %_description + +%package devel +Summary: Development files for %{name} +Provides: %{name}%{?_isa} = %{version}-%{release} +Provides: %{name}-static = %{version}-%{release} + + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -n %{name}-%{version} + + +%build +%if %{with tests} +%cmake -DGSL_LITE_OPT_BUILD_TESTS=ON -DGSL_LITE_OPT_BUILD_EXAMPLES=ON +%else +%cmake -DGSL_LITE_OPT_BUILD_EXAMPLES=ON +%endif +%cmake_build + + +%install +%cmake_install + +%check +%if %{with tests} +# Tests fail on s390x: https://github.com/gsl-lite/gsl-lite/issues/304 +%ifarch s390x +echo "Skipping tess on s390x" +%else +%ctest +%endif +%endif + +%files devel +%license LICENSE +%doc README.md CHANGES.txt +%{_includedir}/* +%{_libdir}/cmake/%{name} + +%changelog +* Mon Apr 19 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.38.0-1 +- Include upstream workaround for GCC bug +- Enable tests by default +- Disable tests on s390x + +* Sun Apr 18 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.38.0-1 +- Initial build diff --git a/sources b/sources new file mode 100644 index 0000000..0503789 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gsl-lite-0.38.0.tar.gz) = 7f73c600800ce375e231e0904c569f0d3beb8ce2790c1f66208d1c5097bed0abd1e82e72cf0051f0bbb09a4e5939d6637b09b8978d91859fc039a42adccdde36
arch-excludes@lists.fedoraproject.org