2 Commits

4 changed files with 32 additions and 26 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae9919aaa83d7d16b799bbe2b6d8300bb10275d05e6ab5590daa643dd7b46851
size 92443

3
libunicode-0.6.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0c217f8264000f1b8c36e78969cb9cf91ac97de937cc141ab78e6b1ad7f404ef
size 92750

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Jan 1 13:22:59 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- update to version 0.6.0
* Supported Unicode version 16.0.0
* Use std::format() API instead of fmtlib
* Improvement for better SIMD config
-------------------------------------------------------------------
Mon Sep 16 20:42:29 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>

View File

@@ -2,6 +2,7 @@
# spec file for package libunicode
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,40 +16,39 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define ver 0
%define mayor 4
%define mayor 6
%define lname libunicode%{ver}_%{mayor}
%define sover %{ver}.%{mayor}
%define force_gcc_version 13
Name: libunicode
Version: 0.5.0
Version: 0.6.0
Release: 0
Summary: Modern C++17 Unicode library
Summary: Modern C++20 Unicode library
License: Apache-2.0
URL: https://github.com/contour-terminal/libunicode
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: ccache
BuildRequires: c++_compiler
BuildRequires: cmake
BuildRequires: fmt-devel
BuildRequires: unicode-ucd >= 16.0.0
BuildRequires: cmake(Catch2) >= 3.3.0
BuildRequires: cmake(range-v3)
%if 0%{?suse_version} < 1600
BuildRequires: gcc%{?force_gcc_version}
BuildRequires: gcc%{?force_gcc_version}-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: range-v3-devel
BuildRequires: unicode-ucd
BuildRequires: cmake(Catch2) >= 3.3.0
ExclusiveArch: x86_64 aarch64
%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.
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 -n %{lname}
Summary: Library files for %{name}
%description -n %{lname}
The %{name} package contains libraries files for applications
@@ -78,10 +78,8 @@ export CC="gcc-%{?force_gcc_version}"
export CXX="g++-%{?force_gcc_version}"
%endif
%cmake \
%if 0%{?suse_version} < 1600
-DLIBUNICODE_TESTING=OFF \
%endif
-DLIBUNICODE_UCD_DIR=%{_datadir}/unicode/ucd
-DLIBUNICODE_UCD_DIR=%{_datadir}/unicode/ucd \
%{nil}
%cmake_build
%install
@@ -90,7 +88,7 @@ export CXX="g++-%{?force_gcc_version}"
#check
#ctest
%ldconfig_scriptlets -n %lname
%ldconfig_scriptlets -n %{lname}
%files -n %{lname}
%license LICENSE
@@ -98,13 +96,13 @@ export CXX="g++-%{?force_gcc_version}"
%{_libdir}/%{name}*.so.%{sover}*
%files devel
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%dir %{_libdir}/cmake/%{name}
%{_libdir}/cmake/%{name}/*.cmake
%license LICENSE
%{_includedir}/%{name}
%{_libdir}/cmake/%{name}
%{_libdir}/%{name}*.so
%files tools
%license LICENSE
%{_bindir}/unicode-query
%changelog