Projects
Eulaceura:Factory
utf8cpp
_service:obs_scm:utf8cpp.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:utf8cpp.spec of Package utf8cpp
%undefine __cmake_in_source_build # This package only contains header files. %global debug_package %{nil} %global ftest_commit 9c7e60cc1b7c76f59e2ffbbc3dad15bafc5cdac5 %global ftest_shortcommit %(c=%{ftest_commit}; echo ${c:0:7}) Name: utf8cpp Version: 3.2.5 Release: 1 Summary: A simple, portable and lightweight library for handling UTF-8 encoded strings License: Boost URL: https://github.com/nemtrif/utfcpp Source0: https://github.com/nemtrif/utfcpp/archive/refs/tags/v%{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: cmake gcc-c++ %description %{summary}. Features include: - iterating through UTF-8 encoded strings - converting between UTF-8 and UTF-16/UTF-32 - detecting invalid UTF-8 sequences This project currently only contains header files, which can be found in the %{name}-devel package. %package devel Summary: Header files for %{name} BuildArch: noarch Provides: %{name}-static = %{version}-%{release} Requires: cmake-filesystem %description devel %{summary}. Features include: - iterating through UTF-8 encoded strings - converting between UTF-8 and UTF-16/UTF-32 - detecting invalid UTF-8 sequences 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 %patch -P1 -p1 -b .noarch %build %cmake \ -DUTF8_TESTS=ON \ -DUTF8_SAMPLES=ON \ %{nil} %cmake_build %install %cmake_install pushd %{buildroot}%{_includedir} ln -s utf8cpp/utf8.h ./ mkdir utf8 for f in {{un,}checked,core,cpp11,cpp17}.h ; do ln -s ../utf8cpp/utf8/${f} utf8/ done popd %check %ctest %files devel %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/unchecked.h %{_includedir}/utf8cpp %{_datadir}/cmake/utf8cpp %changelog * Mon Nov 11 2024 Funda Wang <fundawang@yeah.net> - 3.2.5-1 - update to 3.2.5 - Tul Jan 18 2022 liweigang <liweiganga@uniontech.com> - 3.2.1-1 - Init Package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2