commit 260be32c6dfc6ad8c691bfc709993c325a2e2993 Author: Dmitry Samoylik Date: Sat Dec 21 13:51:19 2024 +0300 import libaribcaption-1.1.1-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7b44b7d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/libaribcaption-1.1.1.tar.gz diff --git a/.libaribcaption.metadata b/.libaribcaption.metadata new file mode 100644 index 0000000..305264d --- /dev/null +++ b/.libaribcaption.metadata @@ -0,0 +1 @@ +2f0752da24dec4445b40e0ce35ac4030d80df1a3 SOURCES/libaribcaption-1.1.1.tar.gz diff --git a/SOURCES/libaribcaption-version.patch b/SOURCES/libaribcaption-version.patch new file mode 100644 index 0000000..d996e38 --- /dev/null +++ b/SOURCES/libaribcaption-version.patch @@ -0,0 +1,12 @@ +diff -Naur libaribcaption-1.1.1.old/CMakeLists.txt libaribcaption-1.1.1/CMakeLists.txt +--- libaribcaption-1.1.1.old/CMakeLists.txt 2024-08-13 13:15:59.096943089 +0200 ++++ libaribcaption-1.1.1/CMakeLists.txt 2024-08-13 13:19:29.535044200 +0200 +@@ -267,6 +267,8 @@ + PROPERTIES + C_VISIBILITY_PRESET hidden + CXX_VISIBILITY_PRESET hidden ++ VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} ++ SOVERSION ${PROJECT_VERSION_MAJOR} + ) + + # Enable /utf-8 for MSVC diff --git a/SPECS/libaribcaption.spec b/SPECS/libaribcaption.spec new file mode 100644 index 0000000..89765b1 --- /dev/null +++ b/SPECS/libaribcaption.spec @@ -0,0 +1,72 @@ +Name: libaribcaption +Version: 1.1.1 +Release: 1%{?dist} +Summary: Portable ARIB STD-B24 Caption Decoder/Renderer +License: MIT +URL: https://github.com/xqq/libaribcaption + +Source0: %url/archive/v%{version}/%{name}-%{version}.tar.gz +Patch0: %{name}-version.patch + +BuildRequires: cmake +BuildRequires: gcc-c++ +BuildRequires: pkgconfig(fontconfig) + +%description +Decoder and renderer for handling ARIB STD-B24 based broadcast captions, making +it possible for general players to render ARIB captions with the same effect +(or even better) as Television. + +Features +- Support captions in Japanese (ARIB STD-B24 JIS), Latin languages (ABNT NBR + 15606-1) and Philippine (ARIB STD-B24 UTF-8) +- Full support for rendering ARIB additional symbols (Gaiji) and DRCScharacters +- Lightweight and portable implementation that works on various platforms +- Performance optimized (SSE2 on x86/x64) graphics rendering +- Multiple text rendering backend driven by DirectWrite / CoreText / FreeType +- Zero third-party dependencies on Windows (using DirectWrite) and macOS / iOS + (using CoreText) +- Built-in font fallback mechanism +- Built-in DRCS converting table for replacing / rendering known DRCS characters + into / by alternative Unicode + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkg-config + +%description devel +Decoder and renderer for handling ARIB STD-B24 based broadcast captions, making +it possible for general players to render ARIB captions with the same effect +(or even better) as Television. + +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup + +%build +%cmake +%cmake_build + +%install +%cmake_install + +%files +%license LICENSE +%doc README.md +%{_libdir}/%{name}.so.* + +%files devel +%{_includedir}/aribcaption/* +%{_libdir}/cmake/aribcaption/aribcaption-*.cmake +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/%{name}.pc + +%changelog +* Sat Dec 21 2024 Dmitriy Samoylik - 1.1.1-1 +- Rebuilt for MSVSphere 10 + +* Tue Aug 13 2024 Simone Caronni - 1.1.1-1 +- First build.