Skip to content

Commit

Permalink
fixup! .github(Fedora): Add docker build flows for Fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
norihiro committed Jun 1, 2024
1 parent cfe3837 commit 05c4b8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/containers/fedora-common/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ rpmbuild="$2"

PLUGIN_NAME=$(awk '/^project\(/{print gensub(/project\(([^ ()]*).*/, "\\1", 1, $0)}' CMakeLists.txt)
PLUGIN_NAME_FEDORA="$(sed -e 's/^obs-/obs-studio-plugin-/' <<< "$PLUGIN_NAME")"
OBS_VERSION=$(docker run $docker_image bash -c 'rpm -q --qf "%{version}" obs-studio')
eval $(git describe --tag --always --long | awk '
BEGIN {
VERSION="unknown";
Expand Down Expand Up @@ -36,6 +37,7 @@ sed \
-e "s/@PLUGIN_NAME_FEDORA@/$PLUGIN_NAME_FEDORA/g" \
-e "s/@VERSION@/$VERSION/g" \
-e "s/@RELEASE@/$RELEASE/g" \
-e "s/@OBS_VERSION@/$OBS_VERSION/g" \
< ci/plugin.spec \
> $rpmbuild/SPECS/$PLUGIN_NAME_FEDORA.spec

Expand Down
1 change: 1 addition & 0 deletions .github/containers/fedora-template/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM fedora:%releasever%

RUN dnf install -y rpm-build python3-dnf-plugins-core && dnf clean all
RUN dnf install -y obs-studio obs-studio-devel cmake gcc gcc-c++ && dnf clean all
RUN dnf install -y qt6-qtbase-devel qt6-qtbase-private-devel && dnf clean all

RUN useradd -s /bin/bash -m rpm
RUN echo >> /etc/sudoers
Expand Down
2 changes: 2 additions & 0 deletions ci/plugin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ Summary: OBS Studio plugin as video filters to track face for mainly a speaking
License: GPLv3+

Source0: %{name}-%{version}.tar.bz2
Requires: obs-studio >= @OBS_VERSION@
BuildRequires: cmake, gcc, gcc-c++
BuildRequires: obs-studio-devel
BuildRequires: qt6-qtbase-devel qt6-qtbase-private-devel

%description
This plugin tracks face of a person by detecting and tracking a face.
Expand Down

0 comments on commit 05c4b8e

Please sign in to comment.