# TODO: package debug-viewer? # # Conditional build: %bcond_without apidocs # API documentation %define gstmver 1.0 %define gst_ver 1.20.0 %define gstpb_ver 1.20.0 %define gstrtsp_ver %{gst_ver} Summary: GStreamer development and validation tools Summary(pl.UTF-8): Narzędzia programistyczne i sprawdzające do GStreamera Name: gstreamer-devtools Version: 1.20.2 Release: 1 License: LGPL v2.1+ Group: Libraries Source0: https://gstreamer.freedesktop.org/src/gst-devtools/gst-devtools-%{version}.tar.xz # Source0-md5: 9282adeb375405f5e3b9c21c0d982fe0 URL: https://gstreamer.freedesktop.org/ BuildRequires: cairo-devel BuildRequires: gettext-devel >= 0.17 BuildRequires: glib2-devel >= 1:2.56.0 BuildRequires: gobject-introspection-devel >= 0.6.3 BuildRequires: gstreamer-devel >= %{gst_ver} BuildRequires: gstreamer-plugins-base-devel >= %{gstpb_ver} BuildRequires: gstreamer-rtsp-server-devel >= %{gstrtsp_ver} BuildRequires: gtk+3-devel >= 3.0 %{?with_apidocs:BuildRequires: hotdoc} BuildRequires: json-glib-devel >= 1.0 BuildRequires: meson >= 0.59 BuildRequires: ninja >= 1.5 BuildRequires: pkgconfig >= 1:0.9.0 BuildRequires: python3 >= 1:3.4 BuildRequires: rpm-build >= 4.6 BuildRequires: sed >= 4.0 BuildRequires: tar >= 1:1.22 BuildRequires: xz BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description GStreamer development and validation tools including GstValidate, a testing framework aiming at providing GStreamer developers tools that check the GstElements they write behave the way they are supposed to. %description -l pl.UTF-8 Narzędzia programistyczne i sprawdzające do GStreamera, w tym GstValidate, szkielet testowy, którego celem jest zapewnienie programistom narzędzi sprawdzających, czy obiekty GstElement zachowują się w pożądany sposób. %package apidocs Summary: API documentation for GstValidate library Summary(pl.UTF-8): Dokumentacja API biblioteki GstValidate Group: Documentation Obsoletes: gstreamer-validate-apidocs < 1.18 BuildArch: noarch %description apidocs API documentation for GstValidate library. %description apidocs -l pl.UTF-8 Dokumentacja API biblioteki GstValidate. %package -n gstreamer-validate Summary: GstValidate - suite of tools to run GStreamer integration tests Summary(pl.UTF-8): GstValidate - zestaw narzędzi do uruchamiania testów integracyjnych GStreamera Group: Libraries Requires: glib2 >= 1:2.56.0 Requires: gstreamer >= %{gst_ver} Requires: gstreamer-plugins-base >= %{gstpb_ver} Requires: gstreamer-rtsp-server >= %{gstrtsp_ver} Requires: json-glib >= 1.0 Requires: python3-modules >= 1:3.4 %description -n gstreamer-validate The goal of GstValidate is to be able to detect when elements are not behaving as expected and report it to the user so he knows how things are supposed to work inside a GstPipeline. In the end, fixing issues found by the tool will ensure that all elements behave all together in the expected way. %description -n gstreamer-validate -l pl.UTF-8 Celem GstValidate jest umożliwienie wykrycia sytuacji, kiedy elementy nie zachowują się w sposób oczekiwany i zgłaszanie tego faktu użytkownikowi tak, aby wiedział, jak powinny działać elementy wewnątrz GstPipeline. W efekcie, poprawienie problemów wykrytych przez to narzędzie zapewni, że wszystkie elementy razem będą się zachowywały w sposób zgodny z oczekiwaniami. %package -n gstreamer-validate-devel Summary: Header files for GstValidate library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GstValidate Group: Development/Libraries Requires: glib2-devel >= 1:2.56.0 Requires: gstreamer-devel >= %{gst_ver} Requires: gstreamer-plugins-base-devel >= %{gstpb_ver} Requires: gstreamer-validate = %{version}-%{release} %description -n gstreamer-validate-devel Header files for GstValidate library. %description -n gstreamer-validate-devel -l pl.UTF-8 Pliki nagłówkowe biblioteki GstValidate. %prep %setup -q -n gst-devtools-%{version} %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' validate/tools/gst-validate-launcher.in %build %meson build \ --default-library=shared \ %{!?with_apidocs:-Ddoc=false} %ninja_build -C build %if %{with apidocs} cd build/docs LC_ALL=C.UTF-8 hotdoc run --conf-file gst-devtools-doc.json %endif %install rm -rf $RPM_BUILD_ROOT %ninja_install -C build %if %{with apidocs} install -d $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver} cp -pr build/docs/gst-devtools-doc $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver} %endif %clean rm -rf $RPM_BUILD_ROOT %post -n gstreamer-validate -p /sbin/ldconfig %postun -n gstreamer-validate -p /sbin/ldconfig %if %{with apidocs} %files apidocs %defattr(644,root,root,755) %{_docdir}/gstreamer-%{gstmver}/gst-devtools-doc %endif %files -n gstreamer-validate %defattr(644,root,root,755) %doc ChangeLog NEWS RELEASE validate/README %attr(755,root,root) %{_bindir}/gst-validate-1.0 %attr(755,root,root) %{_bindir}/gst-validate-images-check-1.0 %attr(755,root,root) %{_bindir}/gst-validate-launcher %attr(755,root,root) %{_bindir}/gst-validate-media-check-1.0 %attr(755,root,root) %{_bindir}/gst-validate-rtsp-server-1.0 %attr(755,root,root) %{_bindir}/gst-validate-transcoding-1.0 %attr(755,root,root) %{_libdir}/libgstvalidate-1.0.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libgstvalidate-1.0.so.0 %attr(755,root,root) %{_libdir}/libgstvalidate-default-overrides-1.0.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libgstvalidate-default-overrides-1.0.so.0 %{_libdir}/girepository-1.0/GstValidate-1.0.typelib %attr(755,root,root) %{_libdir}/gstreamer-1.0/libgstvalidatetracer.so %dir %{_libdir}/gstreamer-1.0/validate %attr(755,root,root) %{_libdir}/gstreamer-1.0/validate/libgstvalidatefaultinjection.so %attr(755,root,root) %{_libdir}/gstreamer-1.0/validate/libgstvalidategapplication.so %attr(755,root,root) %{_libdir}/gstreamer-1.0/validate/libgstvalidategtk.so %attr(755,root,root) %{_libdir}/gstreamer-1.0/validate/libgstvalidatessim.so %{_libdir}/gst-validate-launcher %dir %{_datadir}/gstreamer-1.0 %{_datadir}/gstreamer-1.0/validate %files -n gstreamer-validate-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libgstvalidate-1.0.so %attr(755,root,root) %{_libdir}/libgstvalidate-default-overrides-1.0.so %{_includedir}/gstreamer-1.0/gst/validate %{_pkgconfigdir}/gst-validate-1.0.pc %{_datadir}/gir-1.0/GstValidate-1.0.gir