SHA256
1
0
forked from pool/SVT-AV1
Jan Engelhardt 2019-02-18 11:59:55 +00:00 committed by Git OBS Bridge
parent d220776634
commit aef769443a
2 changed files with 14 additions and 11 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 18 11:59:38 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Use %cmake macro
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Feb 16 12:18:45 UTC 2019 - Jan Engelhardt <jengelh@inai.de> Sat Feb 16 12:18:45 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package libopenshot-audio # spec file for package SVT-AV1
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -27,7 +27,7 @@ URL: https://github.com/OpenVisualCloud/SVT-AV1
Source0: %name-%version.tar.xz Source0: %name-%version.tar.xz
Source1: svt-av1_encoder_user_guide.pdf Source1: svt-av1_encoder_user_guide.pdf
Source9: %name-rpmlintrc Source9: %name-rpmlintrc
Patch1: fix-build.patch Patch1: fix-build.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: yasm BuildRequires: yasm
@ -61,16 +61,14 @@ sed -i -e 's, -fstack-protector-strong , ,' CMakeLists.txt
%endif %endif
%build %build
cmake . \ # Shitty CMakeLists.txt requires this to be OFF, else it runs into
-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ # undefined reference: coeff_tbl
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \ # ...and yet it still produces shared libs. 'S all good man?
-DLIB_SUFFIX=64 \ %cmake -DBUILD_SHARED_LIBS:BOOL=OFF
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%make_install %cmake_install
mkdir -p %buildroot%_docdir/%name mkdir -p %buildroot%_docdir/%name
install -m 0644 %{S:1} %buildroot%_docdir/%name install -m 0644 %{S:1} %buildroot%_docdir/%name