|
|
|
@ -1,20 +1,20 @@
|
|
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
|
# This package only contains header files.
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
%global ftest_commit c4ad4af0946b73ce1a40cbc72205d15d196c7e06
|
|
|
|
|
%global ftest_commit 9c7e60cc1b7c76f59e2ffbbc3dad15bafc5cdac5
|
|
|
|
|
%global ftest_shortcommit %(c=%{ftest_commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
|
|
Name: utf8cpp
|
|
|
|
|
Version: 4.0.5
|
|
|
|
|
Version: 3.2.1
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: A simple, portable and lightweight library for handling UTF-8 encoded strings
|
|
|
|
|
License: BSL-1.0
|
|
|
|
|
License: Boost
|
|
|
|
|
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 correct directory
|
|
|
|
|
Patch0: %{name}-cmake.patch
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
# put cmake import file in arch-agnostic directory
|
|
|
|
|
Patch1: %{name}-noarch.patch
|
|
|
|
|
BuildRequires: cmake3
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -46,83 +46,45 @@ This project currently only contains header files, which can be found in the
|
|
|
|
|
%{name}-devel package.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n utfcpp-%{version} -a1 -p1
|
|
|
|
|
%setup -q -n utfcpp-%{version} -a1
|
|
|
|
|
rmdir extern/ftest && mv ftest-%{ftest_commit} extern/ftest
|
|
|
|
|
%patch1 -p1 -b .noarch
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake \
|
|
|
|
|
%cmake3 \
|
|
|
|
|
-DUTF8_TESTS=ON \
|
|
|
|
|
-DUTF8_SAMPLES=ON \
|
|
|
|
|
%{nil}
|
|
|
|
|
%cmake_build
|
|
|
|
|
pushd tests
|
|
|
|
|
%cmake
|
|
|
|
|
%cmake_build
|
|
|
|
|
popd
|
|
|
|
|
%cmake3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
%cmake3_install
|
|
|
|
|
pushd %{buildroot}%{_includedir}
|
|
|
|
|
ln -s utf8cpp/utf8.h ./
|
|
|
|
|
mkdir utf8
|
|
|
|
|
for f in {{un,}checked,core,cpp{11,17,20}}.h ; do
|
|
|
|
|
for f in {{un,}checked,core,cpp11,cpp17}.h ; do
|
|
|
|
|
ln -s ../utf8cpp/utf8/${f} utf8/
|
|
|
|
|
done
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd tests
|
|
|
|
|
%ctest
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md samples/docsample.cpp
|
|
|
|
|
%{_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
|
|
|
|
|
* Sun Dec 29 2024 Dmitriy Samoylik <samoylikdv@msvsphere-os.ru> - 4.0.5-3
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
* Wed Feb 07 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 3.2.1-3
|
|
|
|
|
- Rebuilt for MSVSphere 9.3
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|