-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci (Fedora): Add 68-point face landmark model
- Loading branch information
Showing
3 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,11 @@ BuildRequires: dlib-devel ffmpeg-free-devel sqlite-devel blas-devel lapack-devel | |
%package data | ||
Summary: Model file for %{name} | ||
BuildArch: noarch | ||
License: CC0-1.0 | ||
|
||
%package data-nonfree | ||
Summary: Non-free model file for %{name} | ||
BuildArch: noarch | ||
License: Nonfree | ||
|
||
%description | ||
|
@@ -29,6 +34,11 @@ under tracking, the frame will be cropped. | |
|
||
%description data | ||
Model files for @PLUGIN_NAME_FEDORA@. | ||
The model files came from https://github.com/davisking/dlib-models/. | ||
|
||
%description data-nonfree | ||
Non-free model files for @PLUGIN_NAME_FEDORA@. | ||
The model file came from https://github.com/davisking/dlib-models/. | ||
|
||
%prep | ||
%autosetup -p1 | ||
|
@@ -46,9 +56,26 @@ Model files for @PLUGIN_NAME_FEDORA@. | |
%install | ||
%{cmake_install} | ||
|
||
mkdir -p %{buildroot}/%{_datadir}/licenses/%{name}/ | ||
mkdir -p %{buildroot}/%{_datadir}/licenses/%{name}-data/ | ||
mkdir -p %{buildroot}/%{_datadir}/licenses/%{name}-data-nonfree/ | ||
cp LICENSE %{buildroot}/%{_datadir}/licenses/%{name}/ | ||
mv %{buildroot}/%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/LICENSE-dlib %{buildroot}/%{_datadir}/licenses/%{name}/ | ||
mv %{buildroot}/%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/LICENSE-dlib-models %{buildroot}/%{_datadir}/licenses/%{name}-data/ | ||
mv %{buildroot}/%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/LICENSE-shape_predictor_68_face_landmark %{buildroot}/%{_datadir}/licenses/%{name}-data-nonfree/ | ||
|
||
%files | ||
%{_libdir}/obs-plugins/@[email protected] | ||
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/locale/ | ||
%{_datadir}/licenses/%{name}/* | ||
|
||
%files data | ||
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/*dlib* | ||
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/dlib_cnn_model | ||
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/dlib_face_landmark_model/shape_predictor_5_face_landmarks.dat | ||
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/dlib_hog_model | ||
%{_datadir}/licenses/%{name}-data/* | ||
|
||
%files data-nonfree | ||
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/dlib_face_landmark_model/shape_predictor_68_face_landmarks.dat | ||
%{_datadir}/obs/obs-plugins/@PLUGIN_NAME@/dlib_face_landmark_model/shape_predictor_68_face_landmarks_GTX.dat | ||
%{_datadir}/licenses/%{name}-data-nonfree/* |