Hello community, here is the log from the commit of package utfcpp for openSUSE:Factory checked in at 2020-02-24 15:51:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/utfcpp (Old) and /work/SRC/openSUSE:Factory/.utfcpp.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "utfcpp" Mon Feb 24 15:51:11 2020 rev:2 rq:778420 version:3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/utfcpp/utfcpp.changes 2015-01-20 12:36:03.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.utfcpp.new.26092/utfcpp.changes 2020-02-24 15:51:52.611401104 +0100 @@ -1,0 +2,30 @@ +Sat Feb 8 13:08:20 UTC 2020 - Luigi Baldoni <[email protected]> + +- Update to version 3.1 + * new API call: unchecked::replace_invalid(). + * changes in testing and installation. + version 3.0.3: + * Fix link failure when including utf8.h in multiple files. + version 3.0.2: + * Fix project version number in CMakeLists.txt + version 3.0.1: + * Fix for a header guard. + version 3.0: + * New convenience API for C++ 11 and later compilers. The + library still works with C++ 98/03 compliant compilers, just + without the new functions. + * advance() function works in both directions. + * Removed deprecated funtions + + previous() - deprecated since version 1.02. + + is_bom() - deprecated since version 2.3. + version v2.3.5: + * Minor bug and warning fixes. Improved CMake support. + +- Switched to maintained github upstream branch and removed + _service file + +- Added tests and utfcpp-use_system_gtest.patch + +- Spec cleanup + +------------------------------------------------------------------- Old: ---- _service utf8_v2_3_4.zip New: ---- utfcpp-3.1.tar.gz utfcpp-use_system_gtest.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ utfcpp.spec ++++++ --- /var/tmp/diff_new_pack.S2aWit/_old 2020-02-24 15:51:56.047408755 +0100 +++ /var/tmp/diff_new_pack.S2aWit/_new 2020-02-24 15:51:56.047408755 +0100 @@ -1,7 +1,7 @@ # # spec file for package utfcpp # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,45 +12,53 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%define uglyver 2_3_4 Name: utfcpp -Version: 2.3.4 +Version: 3.1 Release: 0 Summary: A library for handling UTF-8 encoded strings License: BSL-1.0 -Group: Development/Libraries/C and C++ -Url: http://sourceforge.net/projects/utfcpp/ -Source: http://download.sourceforge.net/%{name}/utf8_v%{uglyver}.zip -BuildRequires: unzip -BuildRoot: %{_tmppath}/%{name}-%{version}-build +URL: https://github.com/nemtrif/utfcpp +Source: https://github.com/nemtrif/utfcpp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE utfcpp-use_system_gtest.patch [email protected] -- use system-supplied googletest +Patch0: utfcpp-use_system_gtest.patch +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: googletest-devel %description -A library for handling UTF-8 encoded strings. +A C++ library for handling UTF-8 encoded strings. + +%package devel +Summary: A library for handling UTF-8 encoded strings + +%description devel +A C++ library for handling UTF-8 encoded strings. %prep -%setup -q -n source +%autosetup -p1 %build +%cmake %install -install -d %{buildroot}/%{_includedir}/utf8 -install -m0644 utf8.h %{buildroot}/%{_includedir} -install -m0644 utf8/{checked,unchecked,core}.h %{buildroot}/%{_includedir}/utf8 +%cmake_install -%package devel -Summary: A library for handling UTF-8 encoded strings -Group: Development/Libraries/C and C++ - -%description devel -A library for handling UTF-8 encoded strings. +%check +make -C build test %files devel -%defattr(-,root,root) -%{_includedir}/utf8/ -%{_includedir}/utf8.h +%dir %{_includedir}/utf8cpp +%{_includedir}/utf8cpp/utf8.h +%dir %{_includedir}/utf8cpp/utf8 +%{_includedir}/utf8cpp/utf8/checked.h +%{_includedir}/utf8cpp/utf8/core.h +%{_includedir}/utf8cpp/utf8/cpp11.h +%{_includedir}/utf8cpp/utf8/unchecked.h +%dir %{_libdir}/cmake/utf8cpp +%{_libdir}/cmake/utf8cpp/utf8cppConfig.cmake %changelog ++++++ utfcpp-use_system_gtest.patch ++++++ Index: utfcpp-3.1/CMakeLists.txt =================================================================== --- utfcpp-3.1.orig/CMakeLists.txt +++ utfcpp-3.1/CMakeLists.txt @@ -32,6 +32,5 @@ endif() if(UTF8_TESTS) enable_testing() - add_subdirectory(extern/gtest) add_subdirectory(tests) endif() Index: utfcpp-3.1/tests/CMakeLists.txt =================================================================== --- utfcpp-3.1.orig/tests/CMakeLists.txt +++ utfcpp-3.1/tests/CMakeLists.txt @@ -16,15 +16,18 @@ target_link_libraries(negative PRIVATE u target_link_libraries(cpp11 PRIVATE utf8::cpp gtest_main + gtest ) target_link_libraries(apitests PRIVATE utf8::cpp gtest_main + gtest ) target_link_libraries(noexceptionstests PRIVATE utf8::cpp gtest_main + gtest ) target_compile_options(noexceptionstests PUBLIC -fno-exceptions)
