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
# # 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: 1.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: %{name}-rpmlintrc BuildRequires: xz BuildRequires: cmake BuildRequires: git BuildRequires: pkgconfig BuildRequires: gcc-c++ #BuildRequires: ninja BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libonnxruntime) BuildRequires: pkgconfig(simde) BuildRequires: cmake(libobs) BuildRequires: cmake(OpenCV) BuildRequires: cmake(Qt6) BuildRequires: cmake(Qt6Widgets) 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} %build %cmake \ -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ -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 \ .. %cmake_build %install %cmake_install # same as LICENSE rm %{buildroot}%{_datadir}/doc/obs-backgroundremoval/copyright rmdir %{buildroot}%{_datadir}/doc/obs-backgroundremoval # relocate license files find %{buildroot}%{_datadir}/obs/obs-plugins/obs-backgroundremoval -name \*.license -exec mv -v {} . \; %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE *.license %doc README.md %defattr(-,root,root) %{_libdir}/obs-plugins/*.so %{_datadir}/obs/obs-plugins/obs-backgroundremoval %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
.