commit a646dbcd8bd3f7601ae1eb9535d1ff5ae3b3e60f
Author: Jakub Bogusz <[email protected]>
Date:   Tue May 7 20:53:50 2024 +0200

    - new

 libspiel.spec | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 130 insertions(+)
---
diff --git a/libspiel.spec b/libspiel.spec
new file mode 100644
index 0000000..b5d697c
--- /dev/null
+++ b/libspiel.spec
@@ -0,0 +1,130 @@
+# TODO:
+# - install and package apidocs
+# - unwrap libspeechprovider and use as system library
+#
+# Conditional build:
+%bcond_with    apidocs         # API documentation (not installed yet)
+%bcond_without tests           # unit tests
+#
+Summary:       Shared library for speech synthesis clients
+Summary(pl.UTF-8):     Biblioteka współdzielona dla klientów syntezy mowy
+Name:          libspiel
+Version:       1.0.1
+%define        gitref  SPIEL_%(echo %{version} | tr . _)
+# see subprojects/libspeechprovider.wrap
+%define        speechprovider_gitref   SPEECHPROVIDER_1_0_1
+Release:       1
+License:       LGPL v2.1+
+Group:         Libraries
+#Source0Download: https://github.com/project-spiel/libspiel/tags
+Source0:       
https://github.com/project-spiel/libspiel/archive/%{gitref}/%{name}-%{gitref}.tar.gz
+# Source0-md5: aedc650f6b8b192c6578c0c431d9accd
+Source1:       
https://github.com/project-spiel/libspeechprovider/archive/%{speechprovider_gitref}/%{name}-%{speechprovider_gitref}.tar.gz
+# Source1-md5: 55f67d4a6840057f9090f4e72b8e6a49
+URL:           https://project-spiel.org/libspiel/
+%{?with_apidocs:BuildRequires: gi-docgen}
+BuildRequires: glib2-devel >= 1:2.76
+BuildRequires: gstreamer-devel >= 1.0
+BuildRequires: gstreamer-plugins-base-devel >= 1.0
+BuildRequires: meson >= 0.64.0
+BuildRequires: ninja >= 1.5
+BuildRequires: pkgconfig
+BuildRequires: python3 >= 1:3
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.736
+%if %{with tests}
+BuildRequires: dbus-devel >= 1.14.4
+%endif
+Requires:      glib2 >= 1:2.76
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This client library is designed to provide an ergonomic interface to
+the myriad of potential speech providers that are installed in a given
+session. The API is inspired by the W3C Web Speech API.
+
+%description -l pl.UTF-8
+Ta biblioteka kliencka jest zaprojektowana w celu dostarczenia
+ergonomicznego interfejsu dla miriady potencjalnych dostawców mowy
+zainstalowanych w danej sesji. API jest zainspirowane W3C Web Speech
+API.
+
+%package devel
+Summary:       Header files for spiel library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki spiel
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      glib2-devel >= 1:2.76
+
+%description devel
+Header files for spiel library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki spiel.
+
+%package apidocs
+Summary:       API documentation for spiel library
+Summary(pl.UTF-8):     Dokumentacja API biblioteki spiel
+Group:         Documentation
+BuildArch:     noarch
+
+%description apidocs
+API documentation for spiel library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki spiel.
+
+%prep
+%setup -q -n %{name}-%{gitref} -a1
+%{__mv} libspeechprovider-%{speechprovider_gitref} 
subprojects/libspeechprovider
+
+%build
+%meson build \
+       %{!?with_tests:-Dtests=disabled}
+
+%ninja_build -C build
+
+%if %{with tests}
+%ninja_test -C build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%ninja_install -C build
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+%glib_compile_schemas
+
+%postun
+/sbin/ldconfig
+%glib_compile_schemas
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README.md
+%attr(755,root,root) %{_bindir}/spiel
+%attr(755,root,root) %{_libdir}/libspeech-provider-1.0.so
+%attr(755,root,root) %{_libdir}/libspiel-1.0.so
+%{_libdir}/girepository-1.0/SpeechProvider-1.0.typelib
+%{_libdir}/girepository-1.0/Spiel-1.0.typelib
+%{_datadir}/glib-2.0/schemas/org.monotonous.libspiel.gschema.xml
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/speech-provider
+%{_includedir}/spiel
+%{_datadir}/gir-1.0/SpeechProvider-1.0.gir
+%{_datadir}/gir-1.0/Spiel-1.0.gir
+%{_pkgconfigdir}/speech-provider-1.0.pc
+%{_pkgconfigdir}/spiel-1.0.pc
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gidocdir}/spiel-1.0
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libspiel.git/commitdiff/a646dbcd8bd3f7601ae1eb9535d1ff5ae3b3e60f

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to