commit e883faac32967def271aed79b32bb17f9fac673a
Author: Leigh Scott <leigh123linux(a)googlemail.com>
Date: Wed Feb 27 16:10:14 2019 +0000
fix pkgconfig dir and build warning
obs-studio.spec | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/obs-studio.spec b/obs-studio.spec
index a51e1c4..2fbffb7 100644
--- a/obs-studio.spec
+++ b/obs-studio.spec
@@ -83,21 +83,25 @@ that use %{name}.
sed -i 's|OBS_MULTIARCH_SUFFIX|LIB_SUFFIX|g' cmake/Modules/ObsHelpers.cmake
%build
+mkdir -p build
+pushd build
%cmake3 -DOBS_VERSION_OVERRIDE=%{version} \
-DUNIX_STRUCTURE=1 -GNinja \
- -DOpenGL_GL_PREFERENCE=GLVND
+ -DOpenGL_GL_PREFERENCE=GLVND ..
%ninja_build
+popd
# build docs
doxygen
+
%install
-%ninja_install
+%ninja_install -C build
mkdir -p %{buildroot}/%{_libexecdir}/obs-plugins/obs-ffmpeg/
mv -f %{buildroot}/%{_datadir}/obs/obs-plugins/obs-ffmpeg/ffmpeg-mux \
%{buildroot}/%{_libexecdir}/obs-plugins/obs-ffmpeg/ffmpeg-mux
-mv -f %{buildroot}/%{_prefix}/lib/pkgconfig %{buildroot}/%{_libdir}/pkgconfig
+mv -f %{buildroot}/%{_prefix}/lib/pkgconfig/ %{buildroot}/%{_libdir}/
%check
/usr/bin/desktop-file-validate %{buildroot}/%{_datadir}/applications/obs.desktop
Show replies by date