Adrian Schröter 2019-02-05 09:37:16 +00:00 committed by Git OBS Bridge
parent 9d90434ea0
commit 3c06944682
2 changed files with 15 additions and 12 deletions

View File

@ -20,20 +20,22 @@
Name: SVT-AV1 Name: SVT-AV1
Version: 0.1.6 Version: 0.1.6
Release: 0 Release: 0
Summary: SVT-AV1 encoder Summary: SVT-AV1 Encoder
License: GPL-3.0-or-later License: GPL-3.0-or-later
Group: Productivity/Multimedia/Other Group: Productivity/Multimedia/Other
Url: https://github.com/OpenVisualCloud/SVT-AV1 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
Patch1: fix-lib64.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: pkg-config
BuildRequires: yasm BuildRequires: yasm
ExclusiveArch: x86_64 ExclusiveArch: x86_64
%description %description
%package -n libSvtAv1Enc %package -n libSvtAv1Enc
Summary: library for the AV1 encoder Summary: Library for the AV1 encoder
Group: System/Libraries Group: System/Libraries
%description -n libSvtAv1Enc %description -n libSvtAv1Enc
@ -47,21 +49,22 @@ Requires: %{name}%{sover} = %{version}
%prep %prep
%setup -q %setup -q
%patch1 -p1
%if 0%{suse_version} < 1500 %if 0%{suse_version} < 1500
sed -i -e 's, -fstack-protector-strong / /' CMakeLists.txt sed -i -e 's, -fstack-protector-strong / /' CMakeLists.txt
%endif %endif
%build %build
cmake . \ cmake . \
-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
-DLIB_SUFFIX=64 \
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
mkdir -p %buildroot%_bindir DESTDIR=%{buildroot} make install
mkdir -p %buildroot%_libdir
install -m 0755 Bin/Release/SvtAv1Enc* %buildroot%_bindir/
install -m 0644 Bin/Release/libSvtAv1Enc.so %buildroot%_libdir/libSvtAv1Enc.so.%soversion
ln -s libSvtAv1Enc.so.%soversion %buildroot%_libdir/libSvtAv1Enc.so
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
@ -70,7 +73,7 @@ install -m 0644 %{S:1} %buildroot%_docdir/%name
%files -n libSvtAv1Enc %files -n libSvtAv1Enc
%license LICENSE.md %license LICENSE.md
%{_libdir}/libSvtAv1Enc.so.* %{_libdir}/libSvtAv1Enc.so
%files %files
%doc README.md NOTICES.md %doc README.md NOTICES.md
@ -78,7 +81,7 @@ install -m 0644 %{S:1} %buildroot%_docdir/%name
%_bindir/* %_bindir/*
%files devel %files devel
%{_libdir}/libSvtAv1Enc.so %_libdir/pkgconfig
%_includedir/*
%changelog %changelog

Binary file not shown.