]> git.pld-linux.org Git - packages/gstreamer.git/blobdiff - gstreamer.spec
- updated to 1.24.2
[packages/gstreamer.git] / gstreamer.spec
index 2247ab0aa39bc9bcc9cd9650cd95de65e17637ae..3d7b4c44ae43ba884faf677b3df29833ee7bedb9 100644 (file)
@@ -3,18 +3,19 @@
 # Conditional build:
 %bcond_without apidocs         # hotdoc based API documentation
 %bcond_without ptp_helper      # ptp-helper (requires rust)
+%bcond_without static_libs     # static libraries
 
 %define                gstmver         1.0
 
 Summary:       GStreamer Streaming-media framework runtime
 Summary(pl.UTF-8):     GStreamer - biblioteki środowiska do obróbki strumieni
 Name:          gstreamer
-Version:       1.24.0
+Version:       1.24.2
 Release:       1
 License:       LGPL v2+
 Group:         Libraries
 Source0:       https://gstreamer.freedesktop.org/src/gstreamer/%{name}-%{version}.tar.xz
-# Source0-md5: 058ed34c39c7db77b9031be0eba6bdde
+# Source0-md5: fd0faca3054dd579768f81288be822d4
 Patch0:                %{name}-inspect-rpm-format.patch
 URL:           https://gstreamer.freedesktop.org/
 BuildRequires: automake
@@ -40,6 +41,7 @@ BuildRequires:        ninja >= 1.5
 BuildRequires: perl-base
 BuildRequires: pkgconfig >= 1:0.9.0
 BuildRequires: python3 >= 1:3.2
+BuildRequires: python3-modules >= 1:3.2
 %{?with_ptp_helper:BuildRequires:      rust >= 1.48}
 BuildRequires: rpm-build >= 4.6
 BuildRequires: rpmbuild(macros) >= 1.736
@@ -147,6 +149,7 @@ gst-launch.
 
 %build
 %meson build \
+       %{!?with_static_libs:--default-library=shared} \
        %{?with_apidocs:-Ddoc=enabled} \
        -Dexamples=disabled \
        -Dtests=disabled
@@ -174,8 +177,10 @@ rm -rf $RPM_BUILD_ROOT
 %py3_ocomp $RPM_BUILD_ROOT%{_datadir}/gstreamer-1.0/gdb
 
 # no static modules - shut up check files
+%if %{with static_libs}
 %{__rm} $RPM_BUILD_ROOT%{gstlibdir}/lib*.a
 %{__rm} $RPM_BUILD_ROOT%{gstlibdir}/pkgconfig/*.pc
+%endif
 
 %if %{with apidocs}
 install -d $RPM_BUILD_ROOT%{_docdir}/gstreamer-%{gstmver}
@@ -213,7 +218,6 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with ptp_helper}
 # %caps(cap_net_bind_service,cap_net_admin,cap_sys_nice=ep) ?
 %attr(755,root,root) %{gstlibexecdir}/gst-ptp-helper
-%attr(755,root,root) %{gstlibexecdir}/gst-ptp-helper-test
 %endif
 %dir %{gstlibdir}
 %attr(755,root,root) %{gstlibdir}/libgstcoreelements.so
@@ -255,6 +259,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/gir-1.0/GstController-%{gstmver}.gir
 %{_datadir}/gir-1.0/GstNet-%{gstmver}.gir
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libgstbase-%{gstmver}.a
@@ -262,6 +267,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libgstcontroller-%{gstmver}.a
 %{_libdir}/libgstnet-%{gstmver}.a
 %{_libdir}/libgstreamer-%{gstmver}.a
+%endif
 
 %if %{with apidocs}
 %files apidocs
This page took 0.059486 seconds and 4 git commands to generate.