set a soversion
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/SVT-AV1?expand=0&rev=9
This commit is contained in:
parent
10e6430f8c
commit
1c302c2215
19
SVT-AV1.spec
19
SVT-AV1.spec
@ -16,7 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%define sover 6
|
||||
%define sover 0
|
||||
Name: SVT-AV1
|
||||
Version: 0.0~pre.1549319082.2a52193
|
||||
Release: 0
|
||||
@ -26,7 +26,7 @@ Group: Productivity/Multimedia/Other
|
||||
Url: https://github.com/OpenVisualCloud/SVT-AV1
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source1: svt-av1_encoder_user_guide.pdf
|
||||
Patch1: fix-lib64.patch
|
||||
Patch1: fix-build.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: yasm
|
||||
@ -34,16 +34,16 @@ ExclusiveArch: x86_64
|
||||
|
||||
%description
|
||||
|
||||
%package -n libSvtAv1Enc
|
||||
%package -n libSvtAv1Enc%{sover}
|
||||
Summary: Library for the AV1 encoder
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n libSvtAv1Enc
|
||||
%description -n libSvtAv1Enc%{sover}
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name}%{sover} = %{version}
|
||||
Requires: libSvtAv1Enc%{sover} = %{version}
|
||||
|
||||
%description devel
|
||||
|
||||
@ -68,12 +68,12 @@ DESTDIR=%{buildroot} make install
|
||||
mkdir -p %buildroot%_docdir/%name
|
||||
install -m 0644 %{S:1} %buildroot%_docdir/%name
|
||||
|
||||
%post -n libSvtAv1Enc -p /sbin/ldconfig
|
||||
%postun -n libSvtAv1Enc -p /sbin/ldconfig
|
||||
%post -n libSvtAv1Enc%{sover} -p /sbin/ldconfig
|
||||
%postun -n libSvtAv1Enc%{sover} -p /sbin/ldconfig
|
||||
|
||||
%files -n libSvtAv1Enc
|
||||
%files -n libSvtAv1Enc%{sover}
|
||||
%license LICENSE.md
|
||||
%{_libdir}/libSvtAv1Enc.so
|
||||
%{_libdir}/libSvtAv1Enc.so.%{sover}*
|
||||
|
||||
%files
|
||||
%doc README.md NOTICES.md
|
||||
@ -81,6 +81,7 @@ install -m 0644 %{S:1} %buildroot%_docdir/%name
|
||||
%_bindir/*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/libSvtAv1Enc.so
|
||||
%_libdir/pkgconfig
|
||||
%_includedir/*
|
||||
|
||||
|
@ -13,3 +13,22 @@ index f0c8fd2..c1a8092 100644
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/bin)
|
||||
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
diff --git a/Source/Lib/Codec/CMakeLists.txt b/Source/Lib/Codec/CMakeLists.txt
|
||||
index 8d48d0a..66cb431 100644
|
||||
--- a/Source/Lib/Codec/CMakeLists.txt
|
||||
+++ b/Source/Lib/Codec/CMakeLists.txt
|
||||
@@ -35,6 +35,14 @@ file(GLOB all_files
|
||||
add_library(SvtAv1Enc SHARED
|
||||
${all_files}
|
||||
)
|
||||
+SET_TARGET_PROPERTIES(
|
||||
+ SvtAv1Enc
|
||||
+ PROPERTIES
|
||||
+ SOVERSION 0
|
||||
+ VERSION 0.0.0
|
||||
+ )
|
||||
+
|
||||
+
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
target_link_libraries(SvtAv1Enc
|
Loading…
Reference in New Issue
Block a user