From 4d3deaaffe3714ecb3a7ad0c7e1262dec83f1b0a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 9 Jun 2024 19:50:04 +0200 Subject: [PATCH] package created using the webbuild interface [release 2023.11.14_4-1mamba;Fri Jun 07 2024] --- README.md | 2 + ...nemize-2023.11.14_4-system-espeak-ng.patch | 13 +++ piper-phonemize.spec | 88 +++++++++++++++++++ 3 files changed, 103 insertions(+) create mode 100644 piper-phonemize-2023.11.14_4-system-espeak-ng.patch create mode 100644 piper-phonemize.spec diff --git a/README.md b/README.md index afafdb7..42a47be 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # piper-phonemize +C++ library for converting text to phonemes for Piper. + diff --git a/piper-phonemize-2023.11.14_4-system-espeak-ng.patch b/piper-phonemize-2023.11.14_4-system-espeak-ng.patch new file mode 100644 index 0000000..a4b21c2 --- /dev/null +++ b/piper-phonemize-2023.11.14_4-system-espeak-ng.patch @@ -0,0 +1,13 @@ +--- piper-phonemize-2023.11.14_4/CMakeLists.txt.orig 2024-06-07 16:01:02.301745686 +0200 ++++ piper-phonemize-2023.11.14_4/CMakeLists.txt 2024-06-07 16:01:12.653772280 +0200 +@@ -223,10 +223,6 @@ + + # Dependencies + install( +- DIRECTORY ${ESPEAK_NG_DIR}/ +- DESTINATION ${CMAKE_INSTALL_PREFIX}) +- +-install( + DIRECTORY ${ONNXRUNTIME_DIR}/include/ + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + diff --git a/piper-phonemize.spec b/piper-phonemize.spec new file mode 100644 index 0000000..99f3185 --- /dev/null +++ b/piper-phonemize.spec @@ -0,0 +1,88 @@ +%define gitver %(echo %version | tr _ -) +Name: piper-phonemize +Version: 2023.11.14_4 +Release: 1mamba +Summary: C++ library for converting text to phonemes for Piper +Group: Applications/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/rhasspy/piper-phonemize +Source: https://github.com/rhasspy/piper-phonemize.git/%{gitver}/piper-phonemize-%{version}.tar.bz2 +Patch0: piper-phonemize-2023.11.14_4-system-espeak-ng.patch +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libespeak-ng-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +C++ library for converting text to phonemes for Piper. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q +%patch 0 -p1 + +%build +%cmake \ + -DESPEAK_NG_DIR=%{_prefix} + +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/piper_phonemize +%{_datadir}/libtashkeel_model.ort + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libonnxruntime.so +%{_libdir}/libpiper_phonemize.so +%doc LICENSE.md + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/cpu_provider_factory.h +%{_includedir}/onnxruntime_*h +%dir %{_includedir}/piper-phonemize +%{_includedir}/piper-phonemize/* +%{_includedir}/provider_options.h +%{_libdir}/libonnxruntime.so.* +%{_libdir}/libpiper_phonemize.so.* +%doc README.md + +%changelog +* Fri Jun 07 2024 Silvan Calarco 2023.11.14_4-1mamba +- package created using the webbuild interface