Compare commits

...
Sign in to create a new pull request.

21 commits

Author SHA1 Message Date
Fedora Release Engineering
a14f2b084c Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:18:06 +00:00
Dominik 'Rathann' Mierzejewski
6c4e9b20ca update to 4.1.1 (resolves rhbz#2480337) 2026-05-22 23:43:01 +02:00
Dominik 'Rathann' Mierzejewski
ed5b268ee3 update to 4.1.0 (resolves rhbz#2478190) 2026-05-19 00:24:15 +02:00
Fedora Release Engineering
1ddc9bc482 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:43:29 +00:00
Dominik 'Rathann' Mierzejewski
3845f0a282 update to 4.0.9 (resolves rhbz#2425940) 2026-01-02 13:36:32 +01:00
Dominik 'Rathann' Mierzejewski
875d592cef update to 4.0.8 (resolves rhbz#2395010) 2025-09-20 22:46:27 +02:00
Fedora Release Engineering
4f88c1ab73 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:54:13 +00:00
Fedora Release Engineering
bcc92d25c3 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 13:59:29 +00:00
Dominik Mierzejewski
a87f9cbdf1 update to 4.0.6 (resolves rhbz#2323791) 2024-11-17 23:15:27 +01:00
Fedora Release Engineering
cf6bf1f669 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 08:28:04 +00:00
Fedora Release Engineering
226feedc1e Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 07:21:10 +00:00
Dominik Mierzejewski
1734b0da5d update to 4.0.5 (resolves rhbz#2245744)
- include license text
2024-01-03 11:26:11 +01:00
Dominik Mierzejewski
d638ed81ea update to 3.2.5 (resolves rhbz#2240785) 2023-10-08 20:55:49 +02:00
Dominik Mierzejewski
77a3c6be5b use modern autosetup and plain cmake dependency and macros 2023-08-31 14:15:17 +02:00
Dominik Mierzejewski
dab2426ba7 switch to SPDX expression in License tag 2023-08-31 14:12:35 +02:00
Dominik Mierzejewski
adfccdccc6 update to 3.2.4 (resolves rhbz#2231660)
switch to wildcards in .gitignore
2023-08-31 14:10:40 +02:00
Fedora Release Engineering
fb1a213e80 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 17:19:19 +00:00
Fedora Release Engineering
6cc38ffadc Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 06:00:59 +00:00
Dominik 'Rathann' Mierzejewski
bd363a18f5 update to 3.2.3 (#2157206) 2023-01-03 14:56:08 +01:00
Dominik 'Rathann' Mierzejewski
b5a393a134 update to 3.2.2 (#2140879) 2022-12-07 13:26:53 +01:00
Fedora Release Engineering
c0ad4babb3 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 11:35:20 +00:00
5 changed files with 108 additions and 38 deletions

8
.gitignore vendored
View file

@ -1,7 +1,3 @@
/utf8_v2_3_4.zip
/utfcpp-2.3.6.tar.gz
/utfcpp-3.1.tar.gz
/utfcpp-3.1.2.tar.gz
/ftest-9c7e60c.tar.gz
/utfcpp-3.2.tar.gz
/utfcpp-3.2.1.tar.gz
/ftest-*.tar.gz
/utfcpp-*.tar.gz

View file

@ -1,2 +1 @@
SHA512 (ftest-9c7e60c.tar.gz) = c57ec5e88ce61dee9e751595e9a57e03f655e78d7dca0e7a6b4f4f63acb49197676f31a8bd5ea698207c4a4665ccc1bc810b6ec715dec3b69a48a85a8ce224d0
SHA512 (utfcpp-3.2.1.tar.gz) = 5798487f12b1bc55d3e06aed38f7604271ca3402963efcf85d181fd590d8a088d21e961e77698e60dc2cdae8cf4506645903442c45fd328201752d9589180e0d
SHA512 (utfcpp-4.1.1.tar.gz) = 72061902812b3f5b27afb32c513fc337db4149b8a6e51cbfe497109f88145751484093990bb1b20b4eec2b9f621406690030401b2a51c9368eb481f00225cd24

24
utf8cpp-cmake.patch Normal file
View file

@ -0,0 +1,24 @@
diff -up utfcpp-4.0.4/CMakeLists.txt.orig utfcpp-4.0.4/CMakeLists.txt
--- utfcpp-4.0.4/CMakeLists.txt.orig 2023-12-10 16:42:20.000000000 +0100
+++ utfcpp-4.0.4/CMakeLists.txt 2023-12-14 12:37:01.511860031 +0100
@@ -35,17 +35,17 @@ install(TARGETS ${PROJECT_NAME}
configure_package_config_file(
"${PROJECT_SOURCE_DIR}/${PROJECT_NAME}Config.cmake.in"
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
- INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake
+ INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cmake/${PROJECT_NAME}
)
install(EXPORT ${PROJECT_NAME}Targets
FILE ${PROJECT_NAME}Targets.cmake
NAMESPACE ${PROJECT_NAME}::
- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake)
+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cmake/${PROJECT_NAME})
install(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake)
+ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cmake/${PROJECT_NAME})
install(FILES ${PROJECT_SOURCE_DIR}/source/utf8.h DESTINATION include/utf8cpp)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/source/utf8 DESTINATION

View file

@ -1,12 +0,0 @@
diff -up utfcpp-3.1/CMakeLists.txt.noarch utfcpp-3.1/CMakeLists.txt
--- utfcpp-3.1/CMakeLists.txt.noarch 2019-10-22 09:52:44.918701226 +0200
+++ utfcpp-3.1/CMakeLists.txt 2019-10-22 09:51:52.374148428 +0200
@@ -17,7 +17,7 @@ if(UTF8_INSTALL)
set(DEF_INSTALL_CMAKE_DIR CMake)
else()
include(GNUInstallDirs) # define CMAKE_INSTALL_*
- set(DEF_INSTALL_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/utf8cpp)
+ set(DEF_INSTALL_CMAKE_DIR ${CMAKE_INSTALL_DATADIR}/cmake/utf8cpp)
endif()
install(DIRECTORY source/ DESTINATION include/utf8cpp)

View file

@ -1,20 +1,19 @@
%undefine __cmake_in_source_build
# This package only contains header files.
%global debug_package %{nil}
%global ftest_commit 9c7e60cc1b7c76f59e2ffbbc3dad15bafc5cdac5
%global ftest_commit c4ad4af0946b73ce1a40cbc72205d15d196c7e06
%global ftest_shortcommit %(c=%{ftest_commit}; echo ${c:0:7})
Name: utf8cpp
Version: 3.2.1
Release: 3%{?dist}
Version: 4.1.1
Release: 2%{?dist}
Summary: A simple, portable and lightweight library for handling UTF-8 encoded strings
License: Boost
License: BSL-1.0
URL: https://github.com/nemtrif/utfcpp
Source0: https://github.com/nemtrif/utfcpp/archive/v%{version}/utfcpp-%{version}.tar.gz
Source1: https://github.com/nemtrif/ftest/archive/%{ftest_commit}/ftest-%{ftest_shortcommit}.tar.gz
# put cmake import file in arch-agnostic directory
Patch1: %{name}-noarch.patch
BuildRequires: cmake3
# put cmake import file in correct directory
Patch0: %{name}-cmake.patch
BuildRequires: cmake
BuildRequires: gcc-c++
%description
@ -46,43 +45,107 @@ This project currently only contains header files, which can be found in the
%{name}-devel package.
%prep
%setup -q -n utfcpp-%{version} -a1
rmdir extern/ftest && mv ftest-%{ftest_commit} extern/ftest
%patch1 -p1 -b .noarch
%autosetup -n utfcpp-%{version} -p1
%build
%cmake3 \
-DUTF8_TESTS=ON \
-DUTF8_SAMPLES=ON \
%cmake \
%{nil}
%cmake3_build
%cmake_build
pushd tests
%cmake
%cmake_build
popd
%install
%cmake3_install
%cmake_install
pushd %{buildroot}%{_includedir}
ln -s utf8cpp/utf8.h ./
mkdir utf8
for f in {{un,}checked,core,cpp11,cpp17}.h ; do
for f in {{un,}checked,core,cpp{11,17,20}}.h ; do
ln -s ../utf8cpp/utf8/${f} utf8/
done
popd
%check
pushd tests
%ctest
popd
%files devel
%doc README.md samples/docsample.cpp
%doc API_REFERENCE.md README.md
%license LICENSE
%{_includedir}/utf8.h
%dir %{_includedir}/utf8
%{_includedir}/utf8/checked.h
%{_includedir}/utf8/core.h
%{_includedir}/utf8/cpp11.h
%{_includedir}/utf8/cpp17.h
%{_includedir}/utf8/cpp20.h
%{_includedir}/utf8/unchecked.h
%{_includedir}/utf8cpp
%{_datadir}/cmake/utf8cpp
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Fri May 22 2026 Dominik Mierzejewski <dominik@greysector.net> - 4.1.1-1
- update to 4.1.1 (resolves rhbz#2480337)
* Mon May 18 2026 Dominik Mierzejewski <dominik@greysector.net> - 4.1.0-1
- update to 4.1.0 (resolves rhbz#2478190)
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Jan 02 2026 Dominik Mierzejewski <dominik@greysector.net> - 4.0.9-1
- update to 4.0.9 (resolves rhbz#2425940)
* Sat Sep 20 2025 Dominik Mierzejewski <dominik@greysector.net> - 4.0.8-1
- update to 4.0.8 (resolves rhbz#2395010)
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sun Nov 17 2024 Dominik Mierzejewski <dominik@greysector.net> - 4.0.6-1
- update to 4.0.6 (resolves rhbz#2323791)
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Wed Jan 03 2024 Dominik Mierzejewski <dominik@greysector.net> - 4.0.5-1
- update to 4.0.5 (resolves rhbz#2245744)
- include license text
* Sun Oct 08 2023 Dominik Mierzejewski <dominik@greysector.net> - 3.2.5-1
- update to 3.2.5 (resolves rhbz#2240785)
* Thu Aug 31 2023 Dominik Mierzejewski <dominik@greysector.net> - 3.2.4-1
- update to 3.2.4 (resolves rhbz#2231660)
- switch to SPDX expression in License tag
- use modern autosetup and plain cmake dependency and macros
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Jan 03 2023 Dominik 'Rathann' Mierzejewski <dominik@greysector.net> - 3.2.3-1
- update to 3.2.3 (#2157206)
* Wed Dec 07 2022 Dominik 'Rathann' Mierzejewski <dominik@greysector.net> - 3.2.2-1
- update to 3.2.2 (#2140879)
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild