Overview

Request 5289 (accepted)

- Fix arm build with libx264.patch

Submit package home:olh:branches:Staging / libx264 to package Staging / libx264

libx264-x264.changes Deleted
x
 
1
@@ -1,450 +0,0 @@
2
--------------------------------------------------------------------
3
-Sat Nov 28 14:21:00 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
4
-
5
-- Update to git version 0.161+git20200912.d198931a
6
-- Bump soversion to 161
7
-- Drop x264-gpac10.patch (merged upstream)
8
-- Switch default muxer/demuxer library to l-smash and make gpac
9
-  optional
10
-- Add new update.sh helper script
11
-- Enable lto via switch
12
-
13
--------------------------------------------------------------------
14
-Sat Jul 11 14:30:44 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
15
-
16
-- Update to git version 0.160+git20200702.cde9a933
17
-- Bump soversion to 160
18
-- Add x264-gpac10.patch and x264-gpac_no_static.patch
19
-- Spec cleanup
20
-
21
--------------------------------------------------------------------
22
-Mon Mar 30 14:27:04 UTC 2020 - Antonio Larrosa <antonio.larrosa@gmail.com>
23
-
24
-- Update to git version 0.159+git20191127.1771b556
25
-- Use _service to retrieve the git sources
26
-- Bump soname to 159
27
-- Remove patch which is already included upstream
28
-  * 0001-cli-Fix-linking-with-system-libx264-on-x86.patch
29
-- Rebase x264-use-shared-library.patch
30
-- Removed a rpmlint error by rephrasing the summary of the libx264-x264 package
31
-
32
--------------------------------------------------------------------
33
-Sat Feb  2 19:22:57 UTC 2019 - antonio.larrosa@gmail.com
34
-
35
-- Update to 20190201 snapshot
36
-  * Unify 8-bit and 10-bit CLI and libraries
37
-    - Add 'i_bitdepth' to x264_param_t with the corresponding
38
-      '--output-depth' CLI option to set the bit depth at runtime.
39
-  * x86inc: Fix VEX -> EVEX instruction conversion stable
40
-  * configure: Fix required version checks for lavf and...
41
-  * Fix float division by zero in weightp analysis
42
-  * Fix undefined behavior of left shift for CAVLC encoding
43
-  * Fix integer overflow in slicetype_path_cost
44
-  * cli: Fix preset help listing
45
-  * ppc: Fix zigzag_interleave
46
-  * Fix clang stack alignment issues
47
-  * Fix missing bs_flush in AUD writing
48
-  * Fix possible undefined behavior of right shift
49
-  * Make bs_align_10 imply bs_flush
50
-  * Fix theoretically incorrect cost_mv_fpel free
51
-  * configure: Fix ambiguous "$(("
52
-  * Fix --qpmax default value in fullhelp
53
-  * x86: Correctly use v-prefix for instructions with opmasks
54
-  * configure: Only use gas-preprocessor with armasm for...
55
-- Bump soname to 155 following upstream changes.
56
-- Rebase x264-use-shared-library.patch
57
-- Add 0001-cli-Fix-linking-with-system-libx264-on-x86.patch from
58
-  upstream to fix building the cli x264 tool on x86.
59
-
60
--------------------------------------------------------------------
61
-Thu Apr 12 19:20:39 UTC 2018 - zaitor@opensuse.org
62
-
63
-- Bump soname in baselibs.conf, forgotten i previous version
64
-  update.
65
-
66
--------------------------------------------------------------------
67
-Fri Mar 23 12:39:21 UTC 2018 - enzokiel@kabelmail.de
68
-
69
-- Build with nasm >= 2.13 for openSUSE Leap 42.3 and SLE-12.
70
-
71
--------------------------------------------------------------------
72
-Tue Mar  6 14:26:46 UTC 2018 - zaitor@opensuse.org
73
-
74
-- Update to 20180305 snapshot.
75
-- Bump soname to 152 following upstream changes.
76
-- Conditionally BuildRequire nasm for current versions of
77
-  openSUSE and pass conditional --disable-asm to openSUSE Leap 43.3
78
-  and SLE-12.
79
-
80
--------------------------------------------------------------------
81
-Thu Aug 17 20:06:25 UTC 2017 - aloisio@gmx.com
82
-
83
-- Update to 20170816 snapshot
84
-
85
--------------------------------------------------------------------
86
-Tue Dec 20 12:44:42 UTC 2016 - scarabeus@opensuse.org
87
-
88
-- Update to 20161220 snapshot
89
-- Update homepage
90
-- Move x264 package here there is no reason for the split
91
-
92
--------------------------------------------------------------------
93
-Tue Sep  6 12:53:31 UTC 2016 - ismail@i10z.com
94
-
95
-- Update to 20160905 snapshot 
96
-
97
--------------------------------------------------------------------
98
-Sun May  1 06:52:05 UTC 2016 - aloisio@gmx.com
99
-
100
-- Update to 20160430 snapshot 
101
-- Refreshed x264-use-shared-library.patch
102
-
103
--------------------------------------------------------------------
104
-Wed Aug  5 13:04:18 UTC 2015 - ismail@i10z.com
105
-
106
-- update to 20150804 snapshot 
107
-
108
--------------------------------------------------------------------
109
-Sun Mar  1 09:33:42 UTC 2015 - i@margueirte.su
110
-
111
-- update version 20141218
112
-
113
--------------------------------------------------------------------
114
-Wed Nov  5 12:33:30 UTC 2014 - i@margueirte.su
115
-
116
-- update version 20141104
117
-
118
--------------------------------------------------------------------
119
-Sat Mar 22 17:10:14 UTC 2014 - i@margueirte.su
120
-
121
-- update version 20140321.
122
-
123
--------------------------------------------------------------------
124
-Tue Nov 19 07:53:08 UTC 2013 - obs@botter.cc
125
-
126
-- add -fno-aggressive-loop-optimizations to extra-cflags in
127
-  configure for >= 13.1 (specfile), see also
128
-  https://bugs.launchpad.net/ubuntu/+source/x264/+bug/1241772
129
-  MAY BE REMOVED on upstream fix
130
-
131
--------------------------------------------------------------------
132
-Wed Jul 24 14:11:22 UTC 2013 - i@margueirte.su
133
-
134
-- update version 20130723.
135
-
136
--------------------------------------------------------------------
137
-Thu Mar  7 00:36:00 UTC 2013 - marguerite@opensuse.org
138
-
139
-- fallback to 8-bit depth again.
140
-  * A user said he still need 8-bit to use `baseline` profile
141
-    for very old android phones.
142
-
143
--------------------------------------------------------------------
144
-Sun Feb 24 11:57:00 UTC 2013 - marguerite@opensuse.org
145
-
146
-- update version 20130224.
147
-- enable 10 bit depth by default.
148
-
149
--------------------------------------------------------------------
150
-Thu Nov  1 19:55:38 UTC 2012 - pascal.bleser@opensuse.org
151
-
152
-- only build the x264 library, to avoid cycles with ffmpeg (which
153
-  requires libx264)
154
-
155
--------------------------------------------------------------------
156
-Sat Sep 29 00:00:00 UTC 2012 - Manfred.Tremmel@iiv.de
157
-
158
-- update to snapshot 20120928
159
-
160
--------------------------------------------------------------------
161
-Sat May 26 00:00:00 UTC 2012 - Manfred.Tremmel@iiv.de
162
-
163
-- update to snapshot 20120525
164
-
165
--------------------------------------------------------------------
166
-Sat Apr 14 00:00:00 UTC 2012 - Manfred.Tremmel@iiv.de
167
-
168
-- update to snapshot 20120414
169
-
170
--------------------------------------------------------------------
171
-Mon Mar 12 09:33:21 UTC 2012 - toddrme2178@gmail.com
172
-
173
-- Cleaned up spec file formatting
174
-- Added 32bit compatibility version (needed by 
175
-  gstreamer-0_10-plugins-ugly-orig-addon-32bit)
176
-
177
--------------------------------------------------------------------
178
-Fri Jan 27 00:00:00 UTC 2012 - Manfred.Tremmel@iiv.de
179
-
180
-- update to snapshot 20120126
181
-
182
--------------------------------------------------------------------
183
-Tue Dec 27 00:00:00 UTC 2011 - Manfred.Tremmel@iiv.de
184
-
185
-- update to snapshot 20111226
186
-
187
--------------------------------------------------------------------
188
-Wed Sep 23 00:00:00 UTC 2011 - Manfred.Tremmel@iiv.de
189
-
190
-- update to snapshot 20111122
191
-
192
--------------------------------------------------------------------
193
-Thu Sep 08 00:00:00 UTC 2011 - Manfred.Tremmel@iiv.de
194
-
195
-- update to snapshot 20110907
196
-
197
--------------------------------------------------------------------
198
-Thu Jun 23 11:17:00 UTC 2011 - Manfred.Tremmel@iiv.de
199
-
200
-- update to snapshot 20110622
201
-
202
-
203
--------------------------------------------------------------------
204
-Sat May 28 15:05:00 UTC 2011 - Manfred.Tremmel@iiv.de
205
-
206
-- update to snapshot 20110527
207
-
208
-
209
--------------------------------------------------------------------
210
-Sat Apr 23 14:51:40 UTC 2011 - reddwarf@opensuse.org
211
-
212
-- remove build timestamp
213
-- remove execution permissions from library
214
-
215
--------------------------------------------------------------------
216
-Sat Feb 26 00:00:00 UTC 2011 - Manfred.Tremmel@iiv.de
217
-
218
-- update to snapshot 20110225
219
-
220
-
221
--------------------------------------------------------------------
222
-Sun Jan 16 00:00:00 UTC 2011 - Manfred.Tremmel@iiv.de
223
-
224
-- update to snapshot 20110115
225
-
226
-
227
--------------------------------------------------------------------
228
-Sun Oct 17 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
229
-
230
-- update to snapshot 20101016
231
-
232
-
233
--------------------------------------------------------------------
234
-Sun Oct 03 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
235
-
236
-- update to snapshot 20101002
237
-
238
-
239
--------------------------------------------------------------------
240
-Tue Jun 29 20:04:04 UTC 2010 - ludwig.nussel@gmx.de
241
-
242
-- require pkg-config
243
-- link binary against shared library
244
-
245
--------------------------------------------------------------------
246
-Wed Jun 16 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
247
-
248
-- update to snapshot 20100615
249
-
250
-
251
--------------------------------------------------------------------
252
-Tue May 18 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
253
-
254
-- update to snapshot 20100517
255
-
256
-
257
--------------------------------------------------------------------
258
-Mon Apr 26 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
259
-
260
-- update to snapshot 20100425
261
-  now able to create Blue Ray compatible h.264 streams
262
-
263
-
264
--------------------------------------------------------------------
265
-Sat Apr  3 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
266
-
267
-- update to snapshot 20100402
268
-
269
-
270
--------------------------------------------------------------------
271
-Sun Feb 28 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
272
-
273
-- update to snapshot 20100227
274
-
275
-
276
--------------------------------------------------------------------
277
-Wed Feb 17 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
278
-
279
-- update to snapshot 20100216
280
-
281
-
282
--------------------------------------------------------------------
283
-Sat Feb  6 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
284
-
285
-- update to snapshot 20100205
286
-
287
-
288
--------------------------------------------------------------------
289
-Wed Jan 27 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
290
-
291
-- rebuild because of no submit with the last build
292
-
293
-
294
--------------------------------------------------------------------
295
-Sat Jan 23 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
296
-
297
-- update to snapshot 20100122
298
-
299
-
300
--------------------------------------------------------------------
301
-Sat Jan  2 00:00:00 UTC 2010 - Manfred.Tremmel@iiv.de
302
-
303
-- update to svn 20100101
304
-
305
-
306
--------------------------------------------------------------------
307
-Tue Dec 15 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de
308
-
309
-- added a patch to fix broken ffmpeg defaults instead of aborting
310
-
311
-
312
--------------------------------------------------------------------
313
-Fri Dec 11 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de
314
-
315
-- update to svn 20091211
316
-
317
-
318
--------------------------------------------------------------------
319
-Mon Nov 23 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de
320
-
321
-- update to svn 20091123
322
-
323
-
324
--------------------------------------------------------------------
325
-Tue Aug 25 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de
326
-
327
-- updated to snapshot 20090624
328
-
329
-
330
--------------------------------------------------------------------
331
-Sat Jun 27 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de
332
-
333
-- updated to snapshot 20090627
334
-
335
-
336
--------------------------------------------------------------------
337
-Sun May 10 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de
338
-
339
-- updated to snapshot 20090510
340
-
341
-
342
--------------------------------------------------------------------
343
-Tue Mar 10 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de
344
-
345
-- updated to snapshot 20090310
346
-
347
-
348
--------------------------------------------------------------------
349
-Sat Feb  7 00:00:00 UTC 2009 - Manfred.Tremmel@iiv.de
350
-
351
-- updated to snapshot 20090206
352
-
353
-
354
--------------------------------------------------------------------
355
-Thu Nov  6 00:00:00 UTC 2008 - Manfred.Tremmel@iiv.de
356
-
357
-- updated to snapshot 20081105
358
-
359
-
360
--------------------------------------------------------------------
361
-Sat Oct  4 00:00:00 UTC 2008 - Manfred.Tremmel@iiv.de
362
-
363
-- updated to snapshot 20081004
364
-
365
-
366
--------------------------------------------------------------------
367
-Wed Sep 17 00:00:00 UTC 2008 - Manfred.Tremmel@iiv.de
368
-
369
-- updated to snapshot 20080917
370
-
371
-
372
--------------------------------------------------------------------
373
-Thu Aug 14 00:00:00 UTC 2008 - Manfred.Tremmel@iiv.de
374
-
375
-- updated to snapshot 20080814
376
-- recompile with new yasm version
377
-
378
-
379
--------------------------------------------------------------------
380
-Sat Aug  9 00:00:00 UTC 2008 - Manfred.Tremmel@iiv.de
381
-
382
-- updated to snapshot 20080809
383
-
384
-
385
--------------------------------------------------------------------
386
-Tue Jun 17 00:00:00 UTC 2008 - Manfred.Tremmel@iiv.de
387
-
388
-- updated to snapshot 20080617
389
-- also included snapshot 20071225 lib for compatibility reasons
390
-
391
-
392
--------------------------------------------------------------------
393
-Wed Apr 30 00:00:00 UTC 2008 - guru@unixtech.be
394
-
395
-- fixed file permissions, thanks to Christian Morales Vega <cmorve69@yahoo.es>
396
-
397
-
398
--------------------------------------------------------------------
399
-Mon Dec 31 00:00:00 UTC 2007 - guru@unixtech.be
400
-
401
-- made Requires in main package require the exact version-release
402
-- fixed License tag according to 10.3 packaging policies
403
-- added Provides/Obsoletes for proper upgrading of x264=>libx264-devel
404
-
405
-
406
--------------------------------------------------------------------
407
-Wed Dec 26 00:00:00 UTC 2007 - leon@links2linux.de
408
-
409
-- updated to snapshot 20071225
410
-- changed the spec according to the new library policy, thanks Detlef
411
-- changed the group according to SPC guidelines
412
-
413
-
414
--------------------------------------------------------------------
415
-Mon Nov  6 00:00:00 UTC 2006 - detlef@links2linux.de
416
-
417
-- update to snapshot-20061031-2245
418
-
419
-
420
--------------------------------------------------------------------
421
-Wed Nov  1 00:00:00 UTC 2006 - leon@links2linux.de
422
-
423
-- new release
424
-
425
-
426
--------------------------------------------------------------------
427
-Wed Apr 26 00:00:00 UTC 2006 - leon@links2linux.de
428
-
429
-- updated to the newest tarball (to fix PPC compiling)
430
-- match the new library revision (libx264.so.46)
431
-
432
-
433
--------------------------------------------------------------------
434
-Tue Apr 18 00:00:00 UTC 2006 - leon@links2linux.de
435
-
436
-- updated to the newest tarball
437
-- removed the syntax patch since it has been merged
438
-- remove yasm from BuildRequires on x86
439
-
440
-
441
--------------------------------------------------------------------
442
-Wed Mar 22 00:00:00 UTC 2006 - henne@links2linux.de
443
-
444
-- introduce a build section <:)
445
-- full url for source
446
-
447
-
448
--------------------------------------------------------------------
449
-Sat Mar 18 00:00:00 UTC 2006 - leon@links2linux.de
450
-
451
-- Initial release for packman.
452
libx264.changes Changed
11
 
1
@@ -1,4 +1,9 @@
2
 -------------------------------------------------------------------
3
+Tue Dec 29 16:16:16 UTC 2020 - olaf@aepfle.de
4
+
5
+- Fix arm build with libx264.patch
6
+
7
+-------------------------------------------------------------------
8
 Sat Nov 28 14:21:00 UTC 2020 - Luigi Baldoni <aloisio@gmx.com>
9
 
10
 - Update to git version 0.161+git20200912.d198931a
11
libx264-x264.spec Deleted
182
 
1
@@ -1,180 +0,0 @@
2
-#
3
-# spec file for package libx264
4
-#
5
-# Copyright (c) 2020 Packman Team <packman@links2linux.de>
6
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
7
-#
8
-# All modifications and additions to the file contributed by third parties
9
-# remain the property of their copyright owners, unless otherwise agreed
10
-# upon. The license for this file, and modifications and additions to the
11
-# file, is the same license as for the pristine package itself (unless the
12
-# license for the pristine package is not an Open Source License, in which
13
-# case the license is the MIT License). An "Open Source License" is a
14
-# license that conforms to the Open Source Definition (Version 1.9)
15
-# published by the Open Source Initiative.
16
-
17
-# Please submit bugfixes or comments via https://bugs.links2linux.org/
18
-#
19
-
20
-
21
-%define _lto_cflags %{nil}
22
-# remember to adjust baselibs.conf
23
-%define sover   161
24
-%bcond_with     gpac
25
-##### WARNING: please do not edit this auto generated spec file. Use the libx264.spec! #####
26
-%bcond_without  x264_binary
27
-Name:           libx264-x264
28
-Version:        0.161+git20200912.d198931a
29
-Release:        0
30
-Summary:        Command line tool for libx264
31
-License:        GPL-2.0-or-later
32
-Group:          Productivity/Multimedia/Video/Editors and Convertors
33
-URL:            http://www.videolan.org/developers/x264.html
34
-Source:         x264-%{version}.tar.xz
35
-Source1:        baselibs.conf
36
-Patch0:         x264-use-shared-library.patch
37
-# PATCH_FIX-OPENSUSE x264-gpac_no_static.patch
38
-Patch2:         x264-gpac_no_static.patch
39
-BuildRequires:  nasm >= 2.13
40
-BuildRequires:  pkgconfig
41
-BuildRequires:  yasm >= 1.2.0
42
-%if %{with x264_binary}
43
-%if %{with gpac}
44
-BuildRequires:  pkgconfig(gpac)
45
-%else
46
-BuildRequires:  pkgconfig(liblsmash)
47
-%endif
48
-BuildRequires:  pkgconfig(ffms2)
49
-BuildRequires:  pkgconfig(libavcodec)
50
-BuildRequires:  pkgconfig(libavformat)
51
-BuildRequires:  pkgconfig(libavutil)
52
-BuildRequires:  pkgconfig(libswscale)
53
-BuildRequires:  pkgconfig(zlib)
54
-%endif
55
-
56
-%description
57
-x264 is a free library for encoding next-generation H264/AVC video
58
-streams. The code is written from scratch by Laurent Aimar, Loren
59
-Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Mans
60
-Rullgard, Radek Czyz, Christian Heine (asm), Alex Izvorski (asm), and
61
-Alex Wright. It is released under the terms of the GPL license. This
62
-package contains a shared library and a commandline tool for encoding
63
-H264 streams. This library is needed for mplayer/mencoder for H264
64
-encoding support.
65
-
66
-Encoder features:
67
-- CAVLC/CABAC
68
-- Multi-references
69
-- Intra: all macroblock types (16x16, 8x8, and 4x4 with all predictions)
70
-- Inter P: all partitions (from 16x16 down to 4x4)
71
-- Inter B: partitions from 16x16 down to 8x8 (including skip/direct)
72
-- Ratecontrol: constant quantizer, single or multipass ABR, optional VBV
73
-- Scene cut detection
74
-- Adaptive B-frame placement
75
-- B-frames as references / arbitrary frame order
76
-- 8x8 and 4x4 adaptive spatial transform
77
-- Lossless mode
78
-- Custom quantization matrices
79
-- Parallel encoding of multiple slices (currently disabled)
80
-
81
-%package %{sover}
82
-Summary:        A free h264/avc encoder - encoder binary
83
-Group:          System/Libraries
84
-
85
-%description %{sover}
86
-x264 is a free library for encoding next-generation H264/AVC video
87
-streams. The code is written from scratch by Laurent Aimar, Loren
88
-Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Mans
89
-Rullgard, Radek Czyz, Christian Heine (asm), Alex Izvorski (asm), and
90
-Alex Wright. It is released under the terms of the GPL license. This
91
-package contains a static library and a header needed for the
92
-development with libx264. This library is needed to build
93
-mplayer/mencoder with H264 encoding support.
94
-
95
-%package -n x264
96
-Summary:        Binaries for x264 streams conversions
97
-
98
-%description -n x264
99
-x264 is a free library for encoding next-generation H264/AVC video
100
-streams. The code is written from scratch by Laurent Aimar, Loren
101
-Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Mans
102
-Rullgard, Radek Czyz, Christian Heine (asm), Alex Izvorski (asm), and
103
-Alex Wright. It is released under the terms of the GPL license. This
104
-package contains a static library and a header needed for the
105
-development with libx264. This library is needed to build
106
-mplayer/mencoder with H264 encoding support.
107
-
108
-%package devel
109
-Summary:        Libraries and include file for the %{name} encoder
110
-Group:          Development/Libraries/C and C++
111
-Requires:       %{name}-%{sover} = %{version}
112
-Provides:       x264-devel = %{version}
113
-Obsoletes:      x264-devel < %{version}
114
-
115
-%description devel
116
-x264 is a free library for encoding next-generation H264/AVC video
117
-streams. The code is written from scratch by Laurent Aimar, Loren
118
-Merritt, Eric Petit (OS X), Min Chen (vfw/asm), Justin Clay (vfw), Mans
119
-Rullgard, Radek Czyz, Christian Heine (asm), Alex Izvorski (asm), and
120
-Alex Wright. It is released under the terms of the GPL license. This
121
-package contains a static library and a header needed for the
122
-development with libx264. This library is needed to build
123
-mplayer/mencoder with H264 encoding support.
124
-
125
-%prep
126
-%autosetup -p1 -n x264-%{version}
127
-
128
-%build
129
-%configure \
130
-  --disable-opencl \
131
-  --enable-shared \
132
-%if %{with x264_binary}
133
-%if %{with gpac}
134
-  --disable-lsmash \
135
-%else
136
-  --disable-gpac \
137
-%endif
138
-%else
139
-  --disable-cli \
140
-  --disable-swscale \
141
-  --disable-lavf \
142
-  --disable-ffms \
143
-%endif
144
-  --enable-lto \
145
-  --enable-pic
146
-%make_build
147
-
148
-%install
149
-%if %{with x264_binary}
150
-install -Dm 755 x264 %{buildroot}/%{_bindir}/x264
151
-%else
152
-%make_install
153
-
154
-rm -f %{buildroot}%{_libdir}/%{name}.so
155
-rm -f %{buildroot}%{_libdir}/%{name}.a
156
-ln -s %{name}.so.%{sover} %{buildroot}%{_libdir}/%{name}.so
157
-%endif
158
-
159
-%if %{with x264_binary}
160
-%files -n x264
161
-%defattr(-,root,root)
162
-%doc doc/*.txt
163
-%attr(0755,root,root) %{_bindir}/x264
164
-%else
165
-
166
-%post -n %{name}-%{sover} -p /sbin/ldconfig
167
-%postun -n %{name}-%{sover} -p /sbin/ldconfig
168
-
169
-%files %{sover}
170
-%defattr(0644,root,root)
171
-%{_libdir}/%{name}.so.%{sover}
172
-
173
-%files devel
174
-%defattr(0644,root,root)
175
-%{_includedir}/x264.h
176
-%{_includedir}/x264_config.h
177
-%{_libdir}/pkgconfig/x264.pc
178
-%{_libdir}/%{name}.so
179
-%endif
180
-
181
-%changelog
182
libx264.spec Changed
94
 
1
@@ -17,15 +17,25 @@
2
 #
3
 
4
 
5
-%define _lto_cflags %{nil}
6
 # remember to adjust baselibs.conf
7
 %define sover   161
8
 %bcond_with     gpac
9
-%bcond_with     x264_binary
10
-Name:           libx264
11
+
12
+%define build_flavor @BUILD_FLAVOR@%{nil}
13
+%define tag libx264
14
+%if "%{build_flavor}" == ""
15
+%define pkg %{tag}
16
+%else
17
+%define pkg %{tag}-%{build_flavor}
18
+%endif
19
+Name:           %{pkg}
20
 Version:        0.161+git20200912.d198931a
21
 Release:        0
22
-Summary:        A free h264/avc encoder - encoder binary
23
+%if "%{build_flavor}" == ""
24
+Summary:        A free h264/avc encoder
25
+%else
26
+Summary:        Command line tool for libx264
27
+%endif
28
 License:        GPL-2.0-or-later
29
 Group:          Productivity/Multimedia/Video/Editors and Convertors
30
 URL:            http://www.videolan.org/developers/x264.html
31
@@ -34,10 +44,11 @@
32
 Patch0:         x264-use-shared-library.patch
33
 # PATCH_FIX-OPENSUSE x264-gpac_no_static.patch
34
 Patch2:         x264-gpac_no_static.patch
35
+Patch3:         libx264.patch
36
 BuildRequires:  nasm >= 2.13
37
 BuildRequires:  pkgconfig
38
 BuildRequires:  yasm >= 1.2.0
39
-%if %{with x264_binary}
40
+%if "%{build_flavor}" == "x264"
41
 %if %{with gpac}
42
 BuildRequires:  pkgconfig(gpac)
43
 %else
44
@@ -106,7 +117,7 @@
45
 %package devel
46
 Summary:        Libraries and include file for the %{name} encoder
47
 Group:          Development/Libraries/C and C++
48
-Requires:       %{name}-%{sover} = %{version}
49
+Requires:       %{name}-%{sover} = %{version}-%{release}
50
 Provides:       x264-devel = %{version}
51
 Obsoletes:      x264-devel < %{version}
52
 
53
@@ -127,7 +138,7 @@
54
 %configure \
55
   --disable-opencl \
56
   --enable-shared \
57
-%if %{with x264_binary}
58
+%if "%{build_flavor}" == "x264"
59
 %if %{with gpac}
60
   --disable-lsmash \
61
 %else
62
@@ -144,7 +155,7 @@
63
 %make_build
64
 
65
 %install
66
-%if %{with x264_binary}
67
+%if "%{build_flavor}" == "x264"
68
 install -Dm 755 x264 %{buildroot}/%{_bindir}/x264
69
 %else
70
 %make_install
71
@@ -154,9 +165,8 @@
72
 ln -s %{name}.so.%{sover} %{buildroot}%{_libdir}/%{name}.so
73
 %endif
74
 
75
-%if %{with x264_binary}
76
+%if "%{build_flavor}" == "x264"
77
 %files -n x264
78
-%defattr(-,root,root)
79
 %doc doc/*.txt
80
 %attr(0755,root,root) %{_bindir}/x264
81
 %else
82
@@ -165,11 +175,9 @@
83
 %postun -n %{name}-%{sover} -p /sbin/ldconfig
84
 
85
 %files %{sover}
86
-%defattr(0644,root,root)
87
 %{_libdir}/%{name}.so.%{sover}
88
 
89
 %files devel
90
-%defattr(0644,root,root)
91
 %{_includedir}/x264.h
92
 %{_includedir}/x264_config.h
93
 %{_libdir}/pkgconfig/x264.pc
94
libx264.patch Added
22
 
1
@@ -0,0 +1,20 @@
2
+[   40s] lto1: warning: switch '-mcpu=cortex-a8' conflicts with '-march=armv7-a' switch
3
+--- a/configure
4
++++ b/configure
5
+@@ -966,7 +966,6 @@ fi
6
+ 
7
+ if [ $asm = auto -a $ARCH = ARM ] ; then
8
+     # set flags so neon is built by default
9
+-    [ $compiler == CL ] || echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu)' || CFLAGS="$CFLAGS -mcpu=cortex-a8 -mfpu=neon"
10
+ 
11
+     cc_check '' '' '__asm__("add r0, r1, r2");' && define HAVE_ARM_INLINE_ASM
12
+     if [ $compiler = CL ] && cpp_check '' '' 'defined(_M_ARM) && _M_ARM >= 7' ; then
13
+@@ -1031,7 +1030,7 @@ ASFLAGS="$ASFLAGS -DSTACK_ALIGNMENT=$sta
14
+ CPU_ENDIAN="little-endian"
15
+ if [ $compiler = GNU ]; then
16
+     echo "int i[2] = {0x42494745,0}; double f[2] = {0x1.0656e6469616ep+102,0};" > conftest.c
17
+-    $CC $CFLAGS conftest.c -c -o conftest.o 2>/dev/null || die "endian test failed"
18
++    $CC $CFLAGS -fno-lto conftest.c -c -o conftest.o 2>/dev/null || die "endian test failed"
19
+     if (${STRINGS} -a conftest.o | grep -q BIGE) && (${STRINGS} -a conftest.o | grep -q FPendian) ; then
20
+         define WORDS_BIGENDIAN
21
+         CPU_ENDIAN="big-endian"
22
_multibuild Added
5
 
1
@@ -0,0 +1,3 @@
2
+<multibuild>
3
+<package>x264</package>
4
+</multibuild>
5
Refresh

No build results available

Refresh

No rpmlint results available

Request History
Olaf Hering's avatar

olh created request over 4 years ago

- Fix arm build with libx264.patch


Olaf Hering's avatar

olh accepted request over 4 years ago