obs-studio/obs-studio.spec

200 lines
6.1 KiB
RPMSpec

Name: obs-studio
Epoch: 1
Version: 30.1.2
Release: 1mamba
Summary: Video recording and live streaming
Group: Graphical Desktop/Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://obsproject.com/
Source: https://github.com/jp9000/obs-studio.git/%{version}/obs-studio-%{version}.tar.bz2
Patch0: obs-studio-25.0.8-gcc-10.0.1.patch
Patch1: obs-studio-28.0.1-fix-module-bin-search-path.patch
Patch2: obs-studio-30.0.0-cmake-build-destdir.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libalsa-devel
BuildRequires: libavcodec-ffmpeg-devel
BuildRequires: libavdevice-ffmpeg-devel
BuildRequires: libavfilter-ffmpeg-devel
BuildRequires: libavformat-ffmpeg-devel
BuildRequires: libavutil-ffmpeg-devel
BuildRequires: libcurl-devel
BuildRequires: libfdk-aac-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libglvnd-devel
BuildRequires: libjack-devel
BuildRequires: libjansson-devel
BuildRequires: libmbedtls-devel
BuildRequires: libonevpl-devel
BuildRequires: libpci-devel
BuildRequires: libpipewire-devel
BuildRequires: libpulseaudio-devel
BuildRequires: libpython3-devel
BuildRequires: librnnoise-devel
BuildRequires: libspeexdsp-devel
BuildRequires: libstdc++6-devel
BuildRequires: libswresample-ffmpeg-devel
BuildRequires: libswscale-ffmpeg-devel
BuildRequires: libudev-devel
BuildRequires: libuuid-devel
BuildRequires: libv4l-devel
BuildRequires: libva-devel
BuildRequires: libwayland-devel
BuildRequires: libwayland-egl-devel
BuildRequires: libx264-devel
BuildRequires: libxcb-devel
BuildRequires: libxkbcommon-devel
BuildRequires: libz-devel
BuildRequires: qt6-qtbase-devel
BuildRequires: qt6-qtsvg-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: libajantv2-devel
BuildRequires: libasio-devel
BuildRequires: libmbedtls-devel >= 3.5.1-1mamba
BuildRequires: libonevpl-devel
BuildRequires: librist-devel
BuildRequires: libwebsocketpp-devel
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Free and open source software for video recording and live streaming
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries provided by %{name}
%description -n lib%{name}
This package contains the shared libraries provided by %{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
#-D -T
#:<< _EOF
#%patch0 -p1
%patch 1 -p1
%patch 2 -p1
%build
%cmake -d build \
-DBUILD_BROWSER=OFF \
-DENABLE_VST=ON \
-DENABLE_VLC=OFF \
-DENABLE_NEW_MPEGTS_OUTPUT=OFF \
-DENABLE_AJA=OFF \
-DENABLE_JACK=ON \
-DENABLE_LIBFDK=ON \
-DENABLE_WEBRTC=OFF \
-Wno-dev \
-DOBS_VERSION_OVERRIDE="%{version}-%{release}" \
-DCMAKE_SHARED_LINKER_FLAGS="-lgio-2.0" \
%ifarch x86_64
-DOBS_MULTIARCH_SUFFIX=64
%endif
# 28.0.1: DESTDIR: workaround for files being installed to root while make
export
%make DESTDIR=$PWD/p
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/obs
%{_bindir}/obs-ffmpeg-mux
%{_datadir}/applications/com.obsproject.Studio.desktop
%{_metainfodir}/com.obsproject.Studio.metainfo.xml
%{_datadir}/obs/libobs/*.effect
%dir %{_datadir}/obs/obs-plugins
%{_datadir}/obs/obs-plugins/*
%dir %{_datadir}/obs/obs-studio
%{_datadir}/obs/obs-studio/*
%{_datadir}/icons/hicolor/*/apps/com.obsproject.Studio.png
%{_datadir}/icons/hicolor/scalable/apps/com.obsproject.Studio.svg
%doc AUTHORS COPYING
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libobs*.so.*
%{_libdir}/libobs*.so
%dir %{_libdir}/obs-plugins
%{_libdir}/obs-plugins/*.so
%dir %{_libdir}/obs-scripting
%{_libdir}/obs-scripting/*
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/obs
%{_includedir}/obs/*
%dir %{_libdir}/cmake/libobs
%{_libdir}/cmake/libobs/libobs*.cmake
%dir %{_libdir}/cmake/obs-frontend-api
%{_libdir}/cmake/obs-frontend-api/obs-frontend*.cmake
%{_libdir}/pkgconfig/libobs.pc
%doc README.rst
%changelog
* Sun Apr 07 2024 Automatic Build System <autodist@openmamba.org> 30.1.2-1mamba
- automatic version update by autodist
* Tue Mar 26 2024 Automatic Build System <autodist@openmamba.org> 30.1.1-1mamba
- automatic version update by autodist
* Wed Mar 13 2024 Automatic Build System <autodist@openmamba.org> 30.1.0-1mamba
- automatic version update by autodist
* Tue Dec 12 2023 Automatic Build System <autodist@mambasoft.it> 30.0.2-1mamba
- automatic version update by autodist
* Fri Nov 24 2023 Automatic Build System <autodist@mambasoft.it> 30.0.0-1mamba
- automatic version update by autodist
* Wed Sep 21 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 28.0.1-2mamba
- patched to fix binary modules search path ( /usr/lib64/obs-plugins )
* Tue Sep 20 2022 Automatic Build System <autodist@mambasoft.it> 28.0.1-1mamba
- automatic version update by autodist
* Mon Feb 01 2021 Automatic Build System <autodist@mambasoft.it> 26.1.2-1mamba
- automatic version update by autodist
* Mon Jan 04 2021 Automatic Build System <autodist@mambasoft.it> 26.1.0-1mamba
- automatic version update by autodist
* Wed Oct 07 2020 Automatic Build System <autodist@mambasoft.it> 26.0.2-1mamba
- automatic version update by autodist
* Mon Oct 05 2020 Automatic Build System <autodist@mambasoft.it> 26.0.0-1mamba
- automatic version update by autodist
* Sat May 16 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 25.0.8-1mamba
- update to 25.0.8
* Sat Jun 24 2017 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 20170624git-1mamba
- package created using the webbuild interface