obs-studio/obs-studio.spec

142 lines
4.0 KiB
RPMSpec

Name: obs-studio
Epoch: 1
Version: 26.0.2
Release: 1mamba
Summary: Video recording and live streaming
Group: Graphical Desktop/Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
URL: https://obsproject.com/
## GITSOURCE https://github.com/jp9000/obs-studio.git master
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
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libGL-devel
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXcomposite-devel
BuildRequires: libXext-devel
BuildRequires: libXfixes-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: libdbus-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libjack-devel
BuildRequires: libjansson-devel
BuildRequires: libpulseaudio-devel
BuildRequires: libpython3-devel
BuildRequires: libqt5-devel
BuildRequires: libspeex-devel
BuildRequires: libstdc++6-devel
BuildRequires: libswresample-ffmpeg-devel
BuildRequires: libswscale-ffmpeg-devel
BuildRequires: libudev-devel
BuildRequires: libv4l-devel
BuildRequires: libx264-devel
BuildRequires: libxcb-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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
#%patch0 -p1
%build
%cmake -d build \
-DBUILD_BROWSER=ON \
%ifarch x86_64
-DOBS_MULTIARCH_SUFFIX=64
%endif
%make
%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
%{_datadir}/icons/hicolor/256x256/apps/com.obsproject.Studio.png
%{_datadir}/metainfo/com.obsproject.Studio.appdata.xml
%{_datadir}/obs/libobs/*.effect
%dir %{_datadir}/obs/obs-plugins
%{_datadir}/obs/obs-plugins/*
%dir %{_datadir}/obs/obs-studio
%{_datadir}/obs/obs-studio/*
%doc AUTHORS COPYING
%files -n lib%{name}
%defattr(-,root,root)
%{_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/*
%{_libdir}/libobs*.so
%dir %{_libdir}/cmake/LibObs
%{_libdir}/cmake/LibObs/LibObs*.cmake
%{_libdir}/pkgconfig/libobs.pc
%doc README.rst
%changelog
* 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