The package rpms/libunicode.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/libunicode.git/commit/?id=f9dea26....
Change:
+ExclusiveArch: x86_64 aarch64
Thanks.
Full change:
============
commit f9dea2630d3ecd6f0032ca430869d0a57c0f0d15
Author: topazus <topazus(a)outlook.com>
Date: Mon Mar 6 09:03:23 2023 +0800
Initial import (rhbz#2174383)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..86e56fb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/libunicode-0.3.0.tar.gz
diff --git a/fix-ucd.patch b/fix-ucd.patch
new file mode 100644
index 0000000..a191dff
--- /dev/null
+++ b/fix-ucd.patch
@@ -0,0 +1,21 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e40103d..254b75f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -55,7 +55,7 @@ set(LIBUNICODE_UCD_BASE_DIR
"${CMAKE_CURRENT_SOURCE_DIR}/_ucd" CACHE PATH "Path
+
+ set(LIBUNICODE_UCD_ZIP_DOWNLOAD_URL
"https://www.unicode.org/Public/${LIBUNICODE_UCD_VERSION}/ucd/UCD.zip")
+ set(LIBUNICODE_UCD_ZIP_FILE
"${LIBUNICODE_UCD_BASE_DIR}/ucd-${LIBUNICODE_UCD_VERSION}.zip")
+-set(LIBUNICODE_UCD_DIR
"${LIBUNICODE_UCD_BASE_DIR}/ucd-${LIBUNICODE_UCD_VERSION}")
++set(LIBUNICODE_UCD_DIR
"${LIBUNICODE_UCD_BASE_DIR}/ucd-${LIBUNICODE_UCD_VERSION}" CACHE PATH "Path
to UCD directory.")
+
+ # ----------------------------------------------------------------------------
+ # code coverage
+@@ -96,7 +96,6 @@ message(STATUS "Build mode:
${LIBUNICODE_BUILD_MODE}")
+ message(STATUS "Build unit tests: ${LIBUNICODE_TESTING}")
+ message(STATUS "Build tools: ${LIBUNICODE_TOOLS}")
+ message(STATUS "Using ccache: ${USING_CCACHE_STRING}")
+-message(STATUS "Using UCD version: ${LIBUNICODE_UCD_VERSION}")
+ message(STATUS "Using UCD directory: ${LIBUNICODE_UCD_DIR}")
+ message(STATUS "Enable clang-tidy: ${ENABLE_TIDY}
(${CMAKE_CXX_CLANG_TIDY})")
+ message(STATUS
"------------------------------------------------------------------------------")
diff --git a/libunicode.spec b/libunicode.spec
new file mode 100644
index 0000000..5e7dbe5
--- /dev/null
+++ b/libunicode.spec
@@ -0,0 +1,75 @@
+%global sover 0.2
+
+Name: libunicode
+Version: 0.3.0
+Release: %autorelease
+Summary: Modern C++17 Unicode library
+License: Apache-2.0
+URL:
https://github.com/contour-terminal/libunicode
+Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch0: fix-ucd.patch
+
+ExclusiveArch: x86_64 aarch64
+
+BuildRequires: gcc-c++
+BuildRequires: cmake
+BuildRequires: fmt-devel
+BuildRequires: range-v3-devel
+BuildRequires: unicode-ucd
+
+%if %{?fedora} <= 38
+BuildRequires: catch-devel
+%else
+BuildRequires: catch2-devel
+%endif
+
+%description
+The goal of libunicode library is to bring painless unicode support to C++
+with simple and easy to understand APIs. The API naming conventions are chosen
+to look familiar to those using the C++ standard libary.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package tools
+Summary: Tools for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description tools
+The %{name}-tools package contains tools about %{name}.
+
+%prep
+%autosetup
+
+%build
+%cmake -DLIBUNICODE_UCD_DIR=%{_datadir}/unicode/ucd
+%cmake_build
+
+%install
+%cmake_install
+
+%check
+%ctest
+
+%files
+%license LICENSE
+%doc README.md Changelog.md
+%{_libdir}/%{name}*.so.%{sover}*
+
+%files devel
+%dir %{_includedir}/%{name}
+%{_includedir}/%{name}/*.h
+%dir %{_libdir}/cmake/%{name}
+%{_libdir}/cmake/%{name}/*.cmake
+%{_libdir}/%{name}*.so
+
+%files tools
+%{_bindir}/unicode-query
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..ca936e2
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (libunicode-0.3.0.tar.gz) =
d153b4dd8bd85e69bbf6f6093bac925b326144523f343b4630979cec533daf48026eba2f430c0dcd34eddccf50e2a2b98816fc37c2b3bd9db7ac272ad566aa8f