Skip to content

Commit

Permalink
.github: Build with libvisca
Browse files Browse the repository at this point in the history
  • Loading branch information
norihiro committed Jun 7, 2024
1 parent e2f887c commit 03772db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/containers/fedora-common/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ sed \
> $rpmbuild/SPECS/$PLUGIN_NAME_FEDORA.spec

git archive --format=tar --prefix=$PLUGIN_NAME_FEDORA-$VERSION/ HEAD | bzip2 > $rpmbuild/SOURCES/$PLUGIN_NAME_FEDORA-$VERSION.tar.bz2
(cd libvisca && git archive --format=tar --prefix=libvisca/ HEAD) | bzip2 > $rpmbuild/SOURCES/$PLUGIN_NAME_FEDORA-$VERSION-libvisca.tar.bz2

docker run -v $rpmbuild:/home/rpm/rpmbuild $docker_image bash -c "
sudo dnf builddep -y ~/rpmbuild/SPECS/$PLUGIN_NAME_FEDORA.spec &&
Expand Down
11 changes: 9 additions & 2 deletions ci/plugin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ Summary: OBS Studio plugin as video filters to track face for mainly a speaking
License: GPLv3+

Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-%{version}-libvisca.tar.bz2
Requires: obs-studio >= @OBS_VERSION@
BuildRequires: cmake, gcc, gcc-c++
BuildRequires: obs-studio-devel
BuildRequires: qt6-qtbase-devel qt6-qtbase-private-devel
BuildRequires: dlib-devel
BuildRequires: dlib-devel ffmpeg-free-devel sqlite-devel blas-devel lapack-devel
# dlib-devel requires /usr/include/ffmpeg so that install ffmpeg-free-devel

%description
This plugin tracks face of a person by detecting and tracking a face.
Expand All @@ -21,9 +23,14 @@ under tracking, the frame will be cropped.

%prep
%autosetup -p1
%setup -T -D -a 1

%build
%{cmake} -DLINUX_PORTABLE=OFF -DLINUX_RPATH=OFF -DQT_VERSION=6 -DWITH_DLIB_SUBMODULE=OFF
%{cmake} \
-DLINUX_PORTABLE=OFF -DLINUX_RPATH=OFF \
-DQT_VERSION=6 \
-DWITH_DLIB_SUBMODULE=OFF \
-DBUILD_SHARED_LIBS:BOOL=OFF
%{cmake_build}

%install
Expand Down

0 comments on commit 03772db

Please sign in to comment.