|
|
@ -1,19 +1,13 @@
|
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
|
|
|
|
# This package only contains header files.
|
|
|
|
# This package only contains header files.
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global ftest_commit 9c7e60cc1b7c76f59e2ffbbc3dad15bafc5cdac5
|
|
|
|
|
|
|
|
%global ftest_shortcommit %(c=%{ftest_commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: utf8cpp
|
|
|
|
Name: utf8cpp
|
|
|
|
Version: 3.2.1
|
|
|
|
Version: 2.3.6
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: A simple, portable and lightweight library for handling UTF-8 encoded strings
|
|
|
|
Summary: A simple, portable and lightweight library for handling UTF-8 encoded strings
|
|
|
|
License: Boost
|
|
|
|
License: Boost
|
|
|
|
URL: https://github.com/nemtrif/utfcpp
|
|
|
|
URL: https://github.com/nemtrif/utfcpp
|
|
|
|
Source0: https://github.com/nemtrif/utfcpp/archive/v%{version}/utfcpp-%{version}.tar.gz
|
|
|
|
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
|
|
|
|
BuildRequires: cmake3
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
|
|
|
@ -32,7 +26,6 @@ This project currently only contains header files, which can be found in the
|
|
|
|
Summary: Header files for %{name}
|
|
|
|
Summary: Header files for %{name}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
Requires: cmake-filesystem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
@ -46,29 +39,31 @@ This project currently only contains header files, which can be found in the
|
|
|
|
%{name}-devel package.
|
|
|
|
%{name}-devel package.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n utfcpp-%{version} -a1
|
|
|
|
%setup -q -n utfcpp-%{version}
|
|
|
|
rmdir extern/ftest && mv ftest-%{ftest_commit} extern/ftest
|
|
|
|
mkdir build
|
|
|
|
%patch1 -p1 -b .noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
pushd build
|
|
|
|
%cmake3 \
|
|
|
|
%cmake3 \
|
|
|
|
-DUTF8_TESTS=ON \
|
|
|
|
-DUTF8_TESTS=ON \
|
|
|
|
-DUTF8_SAMPLES=ON \
|
|
|
|
-DUTF8_SAMPLES=ON \
|
|
|
|
%{nil}
|
|
|
|
..
|
|
|
|
%cmake3_build
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cmake3_install
|
|
|
|
pushd build
|
|
|
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
popd
|
|
|
|
pushd %{buildroot}%{_includedir}
|
|
|
|
pushd %{buildroot}%{_includedir}
|
|
|
|
ln -s utf8cpp/utf8.h ./
|
|
|
|
mv utf8cpp/utf8{,.h} .
|
|
|
|
mkdir utf8
|
|
|
|
|
|
|
|
for f in {{un,}checked,core,cpp11,cpp17}.h ; do
|
|
|
|
|
|
|
|
ln -s ../utf8cpp/utf8/${f} utf8/
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
rm -r %{buildroot}%{_libdir}/cmake/utf8cpp
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%ctest
|
|
|
|
pushd build
|
|
|
|
|
|
|
|
%make_build test
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%doc README.md samples/docsample.cpp
|
|
|
|
%doc README.md samples/docsample.cpp
|
|
|
@ -76,47 +71,11 @@ popd
|
|
|
|
%dir %{_includedir}/utf8
|
|
|
|
%dir %{_includedir}/utf8
|
|
|
|
%{_includedir}/utf8/checked.h
|
|
|
|
%{_includedir}/utf8/checked.h
|
|
|
|
%{_includedir}/utf8/core.h
|
|
|
|
%{_includedir}/utf8/core.h
|
|
|
|
%{_includedir}/utf8/cpp11.h
|
|
|
|
|
|
|
|
%{_includedir}/utf8/cpp17.h
|
|
|
|
|
|
|
|
%{_includedir}/utf8/unchecked.h
|
|
|
|
%{_includedir}/utf8/unchecked.h
|
|
|
|
%{_includedir}/utf8cpp
|
|
|
|
|
|
|
|
%{_datadir}/cmake/utf8cpp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Feb 07 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 3.2.1-3
|
|
|
|
* Thu Feb 29 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 2.3.6-1
|
|
|
|
- Rebuilt for MSVSphere 9.3
|
|
|
|
- Rebuilt for MSVSphere 8.9
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jun 07 2021 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> - 3.2.1-1
|
|
|
|
|
|
|
|
- update to 3.2.1 (#1968224)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 19 2021 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> - 3.2-2
|
|
|
|
|
|
|
|
- add missed compatibility link for cpp17.h
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue May 04 2021 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> - 3.2-1
|
|
|
|
|
|
|
|
- update to 3.2 (#1956027)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.2-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 05 2020 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> - 3.1.2-1
|
|
|
|
|
|
|
|
- update to 3.1.2 (#1883049)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 22 2019 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> - 3.1-1
|
|
|
|
|
|
|
|
- update to 3.1
|
|
|
|
|
|
|
|
- include cmake import file
|
|
|
|
|
|
|
|
- symlink headers in the previous location for compatibility
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Oct 21 2019 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> - 2.3.6-1
|
|
|
|
* Mon Oct 21 2019 Dominik 'Rathann' Mierzejewski <rpm@greysector.net> - 2.3.6-1
|
|
|
|
- update to 2.3.6
|
|
|
|
- update to 2.3.6
|
|
|
|