Projects
home:frispete
obs-studio-plugin-backgroundremoval
obs-studio-plugin-backgroundremoval.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File obs-studio-plugin-backgroundremoval.spec of Package obs-studio-plugin-backgroundremoval (Revision 2)
Currently displaying revision
2
,
Show latest
# # spec file for package obs-studio-plugin-websocket # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define _tarball obs-backgroundremoval %define _version %(v=%{version}; echo ${v%%~*}) Name: obs-studio-plugin-backgroundremoval Version: 0.5.0 Release: 0 Summary: Replace OBS background when screen recording License: MIT Group: Productivity/Multimedia/Video/Editors and Convertors Url: https://github.com/royshil/obs-backgroundremoval Source: %{_tarball}-%{version}.tar.xz Source1: onnxruntime-linux-x64-1.14.1.tgz Source2: %{name}-rpmlintrc #Patch: fix-onnx.patch BuildRequires: xz BuildRequires: cmake BuildRequires: git BuildRequires: pkgconfig BuildRequires: gcc-c++ BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: cmake(libobs) BuildRequires: cmake(OpenCV) BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: x86_64 %description An OBS plugin for removing background in portrait images (video), making it easy to replace the background when screen recording. %prep %autosetup -p1 -n %{_tarball}-%{version} sed -i "s/^version_from_git/#&/" CMakeLists.txt # we're not MacOS, hence we don't have any business with framework options sed -i "s/set_target_properties/#set_target_properties/" CMakeLists.txt %build mkdir -p %{_builddir}/usr/local/ tar xvf %{SOURCE1} --strip-components=1 -C %{_builddir}/usr/local/ --wildcards "*/include/*" "*/lib*/" mv %{_builddir}/usr/local/lib %{_builddir}/usr/local/%_lib #ls -la %%{_builddir}/usr/local/include %%{_builddir}/usr/local/%%_lib %cmake \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS %{optflags} -Wno-error=sequence-point" \ -DCMAKE_CXX_STANDARD=17 \ -DCMAKE_SKIP_RPATH=ON \ -DVERSION=%{_version} \ -DLINUX_PORTABLE=OFF \ -DCPACK_SET_DESTDIR=OFF \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DOBS_OUTPUT_DIR=%{_libdir} \ -DOBS_PLUGIN_DESTINATION=%{_datadir}/obs/obs-plugins \ -DobsIncludePath=/usr/include/obs/ \ -DOnnxruntime_INCLUDE_DIRS="%{_builddir}/usr/local/include" \ -DOnnxruntime_INCLUDE_DIR="%{_builddir}/usr/local/include" \ -DOnnxruntime_LIBRARIES="%{_builddir}/usr/local/%_lib/libonnxruntime.so" %install %cmake_install mkdir -p %{buildroot}/usr/local/ cp -a %{_builddir}/usr/local/%_lib %{buildroot}/usr/local/ # remove stray installation files rm -r %{buildroot}/home %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE %doc README.md %defattr(-,root,root) %{_libdir}/obs-plugins/*.so %{_datadir}/obs/obs-plugins/obs-backgroundremoval /usr/local/%_lib %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.