Overview

Request 5398 (accepted)

Build 10 and 12bit libraries unconditionally. (forwarded request 5396 from Aloysius)

Submit package Staging / x265 to package Essentials / x265

x265.changes Changed
x
 
1
@@ -1,4 +1,10 @@
2
 -------------------------------------------------------------------
3
+Wed May 19 13:21:09 UTC 2021 - Luigi Baldoni <aloisio@gmx.com>
4
+
5
+- Build libx265_main10 and libx265_main12 unconditionally and
6
+  clean up spec a bit
7
+
8
+-------------------------------------------------------------------
9
 Fri Mar 26 12:02:14 UTC 2021 - Luigi Baldoni <aloisio@gmx.com>
10
 
11
 - Update to version 3.5
12
x265.spec Changed
57
 
1
@@ -73,9 +73,8 @@
2
 
3
 %prep
4
 %setup -q -n %{name}_%{version}
5
-%patch0 -p1
6
-%patch1 -p1
7
-%patch2 -p1
8
+%autopatch -p1
9
+
10
 # set the version by hand
11
 sed -i "/^include(Version)/d" source/CMakeLists.txt
12
 # force version number in the soname
13
@@ -87,7 +86,6 @@
14
 COMMON_FLAGS="-DENABLE_TESTS=OFF -DENABLE_PIC=ON -Wno-dev"
15
 HIGH_BIT_DEPTH_FLAGS="-DENABLE_CLI=OFF -DENABLE_SHARED=OFF -DEXPORT_C_API=OFF -DHIGH_BIT_DEPTH=ON"
16
 
17
-%if 0%{?suse_version} >= 1500
18
 %define __sourcedir ./source
19
 
20
 # Build 10bit depth version of the library
21
@@ -115,33 +113,20 @@
22
 
23
 # Build general version of the library linking in the 10/12bit depth versions
24
 %define __builddir ./source/build
25
-%cmake -DENABLE_TESTS=OFF \
26
+%cmake $COMMON_FLAGS \
27
        -DENABLE_SHARED=ON \
28
        -DX265_LATEST_TAG="%{sover}.0" \
29
        -DX265_VERSION="%{version}" \
30
        -DENABLE_HDR10_PLUS=ON \
31
-       -DENABLE_PIC=ON \
32
        -DENABLE_CLI=ON \
33
        -DLINKED_10BIT=ON \
34
        -DLINKED_12BIT=ON \
35
        -DEXTRA_LINK_FLAGS="-L$SOURCE_DIR/build-10bit -L$SOURCE_DIR/build-12bit" \
36
-       -DEXTRA_LIB="x265_main10.a;x265_main12.a" \
37
-       -Wno-dev
38
-%else
39
-cd source
40
-%cmake $COMMON_FLAGS \
41
-       -DENABLE_SHARED=ON \
42
-       -DX265_LATEST_TAG="%{sover}.0" \
43
-       -DX265_VERSION="%{version}" \
44
-       -DENABLE_HDR10_PLUS=ON
45
-%endif
46
+       -DEXTRA_LIB="x265_main10.a;x265_main12.a"
47
 make %{?_smp_mflags}
48
 cd ../../
49
 
50
 %install
51
-%if 0%{?suse_version} < 1500
52
-cd source
53
-%endif
54
 %cmake_install
55
 find %{buildroot} -type f -name "*.a" -delete -print0
56
 
57
Refresh
Refresh
Request History
Olaf Hering's avatar

olh created request almost 4 years ago

Build 10 and 12bit libraries unconditionally. (forwarded request 5396 from Aloysius)


Olaf Hering's avatar

olh accepted request almost 4 years ago