public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Peter Lemenkov <lemenkov@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/libyuv] epel10: Update to the latest git snapshot
Date: Tue, 03 Nov 2026 05:51:51 GMT [thread overview]
Message-ID: <179368511106.1.4095746729557765648.rpms-libyuv-3ac4c26c6dc3@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/libyuv
Branch : epel10
Commit : 3ac4c26c6dc34e2b73b940c2e13340cb0233b438
Author : Peter Lemenkov <lemenkov@gmail.com>
Date : 2018-09-24T17:12:00+03:00
Stats : +174/-517 in 10 file(s)
URL : https://src.fedoraproject.org/rpms/libyuv/c/3ac4c26c6dc34e2b73b940c2e13340cb0233b438?branch=epel10
Log:
Update to the latest git snapshot
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
diff --git a/.gitignore b/.gitignore
index f8e4170..a2b346e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
-/libyuv-0.tar.xz
-/libyuv-0.tar.bz2
+*.orig
+*.rej
+*~
+/libyuv-*.tar.bz2
+/libyuv-*.tar.xz
diff --git a/libyuv-0001-Initial-autotools-support.patch b/libyuv-0001-Initial-autotools-support.patch
deleted file mode 100644
index fdf489c..0000000
--- a/libyuv-0001-Initial-autotools-support.patch
+++ /dev/null
@@ -1,330 +0,0 @@
-From c2294ecef0a8f90b9b8fadbe2c5e6493979247de Mon Sep 17 00:00:00 2001
-From: Peter Lemenkov <lemenkov@gmail.com>
-Date: Fri, 16 Dec 2011 22:08:41 +0400
-Subject: [PATCH 1/1] Initial autotools support
-
-Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
----
- Makefile.am | 28 ++++++++++
- autogen.sh | 7 +++
- configure.ac | 156 ++++++++++++++++++++++++++++++++++++++++++++++++++++
- source/Makefile.am | 78 ++++++++++++++++++++++++++
- source/libyuv.pc.in | 9 +++
- 5 files changed, 278 insertions(+)
- create mode 100644 Makefile.am
- create mode 100755 autogen.sh
- create mode 100644 configure.ac
- create mode 100644 source/Makefile.am
- create mode 100644 source/libyuv.pc.in
-
-diff --git a/Makefile.am b/Makefile.am
-new file mode 100644
-index 0000000..0b7c289
---- /dev/null
-+++ b/Makefile.am
-@@ -0,0 +1,28 @@
-+SUBDIRS = source
-+
-+EXTRA_DIST = AUTHORS DEPS LICENSE PATENTS README.chromium codereview.settings libyuv.gyp libyuv_test.gyp unit_test/testdata/arm_v7.txt unit_test/testdata/tegra3.txt util/compare.cc
-+
-+if WITH_TEST
-+
-+TESTS = unittest
-+
-+noinst_PROGRAMS = $(TESTS)
-+
-+unittest_SOURCES = unit_test/basictypes_test.cc \
-+ unit_test/compare_test.cc \
-+ unit_test/convert_test.cc \
-+ unit_test/cpu_test.cc \
-+ unit_test/planar_test.cc \
-+ unit_test/rotate_argb_test.cc \
-+ unit_test/rotate_test.cc \
-+ unit_test/scale_argb_test.cc \
-+ unit_test/scale_test.cc \
-+ unit_test/unit_test.cc \
-+ unit_test/unit_test.h \
-+ unit_test/version_test.cc \
-+ unit_test/video_common_test.cc
-+
-+unittest_CXXFLAGS = $(AM_CXXFLAGS) @GTEST_CXXFLAGS@ -I$(top_srcdir)/include -I$(top_srcdir)
-+unittest_LDADD = @GTEST_LIBS@ $(top_builddir)/source/libyuv.la
-+
-+endif
-diff --git a/autogen.sh b/autogen.sh
-new file mode 100755
-index 0000000..bfd37d1
---- /dev/null
-+++ b/autogen.sh
-@@ -0,0 +1,7 @@
-+#!/bin/sh
-+LIBTOOLIZE=`which libtoolize || which glibtoolize`
-+
-+$LIBTOOLIZE
-+aclocal
-+automake --add-missing --copy
-+autoconf
-diff --git a/configure.ac b/configure.ac
-new file mode 100644
-index 0000000..7f6673a
---- /dev/null
-+++ b/configure.ac
-@@ -0,0 +1,156 @@
-+AC_INIT([libyuv], [0], [http://groups.google.com/group/discuss-libyuv], [libyuv], [http://code.google.com/p/libyuv/])
-+
-+AC_CANONICAL_TARGET
-+
-+AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip tar-ustar foreign])
-+
-+AC_SUBST(LIBYUV_VERSION_INFO, [0:0:0])
-+
-+AM_PROG_AS
-+AC_PROG_CXX
-+AC_PROG_LIBTOOL
-+AC_PROG_INSTALL
-+
-+AC_LANG_CPLUSPLUS
-+
-+AC_ARG_WITH([mjpeg],
-+ AC_HELP_STRING([--with-mjpeg],[enable Motion JPEG decoder [default=yes].]),
-+ [with_mjpeg="$withval"],[with_mjpeg="no"]
-+ )
-+
-+if test "$with_mjpeg" = "yes" ; then
-+ AC_CHECK_HEADERS(
-+ [jpeglib.h],
-+ [],
-+ [AC_MSG_ERROR([jpeglib.h header not found])],
-+ [AC_INCLUDES_DEFAULT]
-+ )
-+ AC_CHECK_LIB(
-+ [jpeg],
-+ [jpeg_read_header],
-+ [
-+ CXXFLAGS="$CXXFLAGS -DHAVE_JPEG"
-+ LIBJPEG_LIBS="-ljpeg"
-+ AC_SUBST([LIBJPEG_LIBS])
-+ ],
-+ [AC_MSG_ERROR([libjpeg or libjpeg-turbo library not found])],
-+ []
-+ )
-+
-+fi
-+
-+
-+AC_ARG_WITH([test],
-+ AC_HELP_STRING([--with-test],[enable test suite [default=no].]),
-+ [with_test="$withval"],[with_test="no"]
-+ )
-+
-+if test "$with_test" = "yes" ; then
-+ AC_CHECK_HEADERS(
-+ [gtest/gtest.h],
-+ [],
-+ [AC_MSG_ERROR([gtest not found])],
-+ []
-+ )
-+ AC_PATH_PROG([GTEST_CONFIG], gtest-config, [no])
-+ if test "$GTEST_CONFIG" = "no" ; then
-+ AC_MSG_ERROR([gtest-config was not found])
-+ fi
-+ GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
-+ GTEST_LIBS=`$GTEST_CONFIG --libs`
-+ AC_SUBST([GTEST_CXXFLAGS])
-+ AC_SUBST([GTEST_LIBS])
-+else
-+ AC_MSG_WARN([Test suite is disabled])
-+fi
-+
-+case "$target_os" in
-+ linux*)
-+ posix="yes"
-+ ;;
-+ darwin*)
-+ posix="yes"
-+ ;;
-+ mingw*)
-+# windows="yes"
-+ posix="yes"
-+ LDFLAGS="$LDFLAGS -no-undefined --enable-runtime-pseudo-reloc -avoid-version"
-+ ;;
-+ *)
-+ AC_MSG_ERROR([No support for this target ($target) yet])
-+ ;;
-+esac
-+
-+has_neon="no"
-+has_mips="no"
-+has_x86="no"
-+
-+case "$target_cpu" in
-+ arm*)
-+ AC_ARG_ENABLE(neon,
-+ [ --enable-neon enable ARM NEON support],
-+ [
-+ AC_MSG_CHECKING(for NEON in current arch/CFLAGS)
-+ AC_LINK_IFELSE([
-+ AC_LANG_PROGRAM(
-+ [[
-+ #include <arm_neon.h>
-+ int32x4_t testfunc(int16_t *a, int16_t *b)
-+ {
-+ return vmull_s16(vld1_s16(a), vld1_s16(b));
-+ }
-+ ]]
-+ )
-+ ],
-+ [has_neon=yes],
-+ [has_neon=no]
-+ )
-+ ]
-+ )
-+ ;;
-+ mips*)
-+ has_mips=yes
-+ ;;
-+ x86*)
-+ has_x86=yes
-+ ;;
-+ *)
-+ ;;
-+esac
-+
-+AC_CONFIG_FILES([
-+Makefile
-+source/libyuv.pc
-+source/Makefile
-+])
-+
-+AM_CONDITIONAL(LIBYUV_POSIX, test "$posix" = "yes")
-+AM_CONDITIONAL(LIBYUV_WINDOWS, test "$windows" = "yes")
-+
-+AM_CONDITIONAL(WITH_MJPEG, test "$with_mjpeg" = "yes")
-+AM_CONDITIONAL(WITH_TEST, test "$with_test" = "yes")
-+
-+AM_CONDITIONAL(ENABLE_NEON, test "$has_neon" = "yes")
-+AM_CONDITIONAL(ENABLE_MIPS, test "$has_mips" = "yes")
-+AM_CONDITIONAL(ENABLE_X86, test "$has_x86" = "yes")
-+
-+AC_OUTPUT
-+
-+AC_MSG_RESULT([
-+------------------------------------------------------------------------
-+ $PACKAGE $VERSION configuration.
-+
-+ Compiler support:
-+
-+ Target CPU: ................... ${target_cpu}
-+ Has NEON? .............. ${has_neon}
-+ Target OS: .................... ${target_os}
-+ Is POSIX? .............. ${posix}
-+
-+ General configuration:
-+
-+ Enable Motion JPEG: ............ ${with_mjpeg}
-+ Enable test suite: . ........... ${with_test}
-+
-+------------------------------------------------------------------------
-+])
-diff --git a/source/Makefile.am b/source/Makefile.am
-new file mode 100644
-index 0000000..0a10297
---- /dev/null
-+++ b/source/Makefile.am
-@@ -0,0 +1,78 @@
-+lib_LTLIBRARIES = libyuv.la
-+
-+pkgconfigdir = $(libdir)/pkgconfig
-+pkgconfig_DATA = libyuv.pc
-+
-+libyuvincludedir = $(includedir)
-+libyuvnobase_includedir = $(includedir)/libyuv
-+
-+if WITH_MJPEG
-+mjpeg_SOURCES = mjpeg_decoder.cc
-+mjpeg_HDRS = ../include/libyuv/mjpeg_decoder.h
-+endif
-+
-+if LIBYUV_POSIX
-+posix_SOURCES = compare_posix.cc row_posix.cc
-+endif
-+
-+if LIBYUV_WINDOWS
-+windows_SOURCES = compare_win.cc row_win.cc
-+endif
-+
-+if ENABLE_MIPS
-+mips_SOURCES = memcpy_mips.S rotate_mips.cc row_mips.cc scale_mips.cc
-+endif
-+
-+if ENABLE_X86
-+x86_SOURCES = row_x86.asm x86inc.asm
-+endif
-+
-+if ENABLE_NEON
-+neon_SOURCES = compare_neon.cc rotate_neon.cc row_neon.cc scale_argb_neon.cc scale_neon.cc
-+endif
-+
-+libyuvinclude_HEADERS = ../include/libyuv.h
-+libyuvnobase_include_HEADERS = ../include/libyuv/basic_types.h \
-+ ../include/libyuv/compare.h \
-+ ../include/libyuv/convert.h \
-+ ../include/libyuv/convert_argb.h \
-+ ../include/libyuv/convert_from.h \
-+ ../include/libyuv/convert_from_argb.h \
-+ ../include/libyuv/cpu_id.h \
-+ ../include/libyuv/format_conversion.h \
-+ ../include/libyuv/planar_functions.h \
-+ ../include/libyuv/rotate.h \
-+ ../include/libyuv/rotate_argb.h \
-+ ../include/libyuv/row.h \
-+ ../include/libyuv/scale.h \
-+ ../include/libyuv/scale_argb.h \
-+ ../include/libyuv/version.h \
-+ ../include/libyuv/video_common.h \
-+ $(mjpeg_HDRS)
-+
-+libyuv_la_SOURCES = compare.cc \
-+ compare_common.cc \
-+ convert.cc \
-+ convert_argb.cc \
-+ convert_from.cc \
-+ convert_from_argb.cc \
-+ cpu_id.cc \
-+ format_conversion.cc \
-+ planar_functions.cc \
-+ rotate.cc \
-+ rotate_argb.cc \
-+ row_any.cc \
-+ row_common.cc \
-+ scale.cc \
-+ scale_argb.cc \
-+ video_common.cc \
-+ $(mjpeg_SOURCES) \
-+ $(posix_SOURCES) \
-+ $(windows_SOURCES) \
-+ $(mips_SOURCES) \
-+ $(neon_SOURCES) \
-+ $(x86_SOURCES)
-+
-+libyuv_la_CXXFLAGS = $(AM_LDFLAGS) -I$(top_srcdir)/include -I$(top_srcdir)
-+libyuv_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBYUV_VERSION_INFO)
-+libyuv_la_LIBADD = @LIBJPEG_LIBS@
-diff --git a/source/libyuv.pc.in b/source/libyuv.pc.in
-new file mode 100644
-index 0000000..d921dd5
---- /dev/null
-+++ b/source/libyuv.pc.in
-@@ -0,0 +1,9 @@
-+prefix=@prefix@
-+exec_prefix=@exec_prefix@
-+libdir=@libdir@
-+includedir=@includedir@
-+
-+Name: libyuv
-+Description: YUV conversion and scaling functionality library
-+Version: @PACKAGE_VERSION@
-+Libs: -lyuv
---
-1.8.0.2
-
diff --git a/libyuv-0001-Use-a-proper-so-version.patch b/libyuv-0001-Use-a-proper-so-version.patch
new file mode 100644
index 0000000..e4b4b76
--- /dev/null
+++ b/libyuv-0001-Use-a-proper-so-version.patch
@@ -0,0 +1,19 @@
+From: Peter Lemenkov <lemenkov@gmail.com>
+Date: Fri, 21 Sep 2018 12:45:55 +0200
+Subject: [PATCH] Use a proper so-version
+
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ed4948f0..e1f87062 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -30,6 +30,8 @@ ADD_LIBRARY ( ${ly_lib_shared} SHARED ${ly_source_files} )
+ SET_TARGET_PROPERTIES ( ${ly_lib_shared} PROPERTIES OUTPUT_NAME "${ly_lib_name}" )
+ SET_TARGET_PROPERTIES ( ${ly_lib_shared} PROPERTIES PREFIX "lib" )
+
++SET_TARGET_PROPERTIES ( ${ly_lib_shared} PROPERTIES VERSION "0.0.0" SOVERSION 0 )
++
+ # this creates the conversion tool
+ ADD_EXECUTABLE ( yuvconvert ${ly_base_dir}/util/yuvconvert.cc )
+ TARGET_LINK_LIBRARIES ( yuvconvert ${ly_lib_static} )
diff --git a/libyuv-0002-Link-against-shared-library.patch b/libyuv-0002-Link-against-shared-library.patch
new file mode 100644
index 0000000..e4f8f6a
--- /dev/null
+++ b/libyuv-0002-Link-against-shared-library.patch
@@ -0,0 +1,28 @@
+From: Peter Lemenkov <lemenkov@gmail.com>
+Date: Fri, 21 Sep 2018 12:47:42 +0200
+Subject: [PATCH] Link against shared library
+
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e1f87062..bff03e88 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -34,7 +34,7 @@ SET_TARGET_PROPERTIES ( ${ly_lib_shared} PROPERTIES VERSION "0.0.0" SOVERSION 0
+
+ # this creates the conversion tool
+ ADD_EXECUTABLE ( yuvconvert ${ly_base_dir}/util/yuvconvert.cc )
+-TARGET_LINK_LIBRARIES ( yuvconvert ${ly_lib_static} )
++TARGET_LINK_LIBRARIES ( yuvconvert ${ly_lib_shared} )
+
+
+ INCLUDE ( FindJPEG )
+@@ -61,7 +61,7 @@ if(TEST)
+ endif()
+
+ add_executable(libyuv_unittest ${ly_unittest_sources})
+- target_link_libraries(libyuv_unittest ${ly_lib_name} ${GTEST_LIBRARY})
++ target_link_libraries(libyuv_unittest ${ly_lib_shared} ${GTEST_LIBRARY})
+ find_library(PTHREAD_LIBRARY pthread)
+ if(NOT PTHREAD_LIBRARY STREQUAL "PTHREAD_LIBRARY-NOTFOUND")
+ target_link_libraries(libyuv_unittest pthread)
diff --git a/libyuv-0003-Disable-static-library.patch b/libyuv-0003-Disable-static-library.patch
new file mode 100644
index 0000000..70d73a9
--- /dev/null
+++ b/libyuv-0003-Disable-static-library.patch
@@ -0,0 +1,39 @@
+From: Peter Lemenkov <lemenkov@gmail.com>
+Date: Mon, 24 Sep 2018 15:08:45 +0200
+Subject: [PATCH] Disable static library
+
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bff03e88..1832ad42 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -11,7 +11,6 @@ SET ( ly_src_dir ${ly_base_dir}/source )
+ SET ( ly_inc_dir ${ly_base_dir}/include )
+ SET ( ly_tst_dir ${ly_base_dir}/unit_test )
+ SET ( ly_lib_name yuv )
+-SET ( ly_lib_static ${ly_lib_name} )
+ SET ( ly_lib_shared ${ly_lib_name}_shared )
+
+ FILE ( GLOB_RECURSE ly_source_files ${ly_src_dir}/*.cc )
+@@ -22,9 +21,6 @@ LIST ( SORT ly_unittest_sources )
+
+ INCLUDE_DIRECTORIES( BEFORE ${ly_inc_dir} )
+
+-# this creates the static library (.a)
+-ADD_LIBRARY ( ${ly_lib_static} STATIC ${ly_source_files} )
+-
+ # this creates the shared library (.so)
+ ADD_LIBRARY ( ${ly_lib_shared} SHARED ${ly_source_files} )
+ SET_TARGET_PROPERTIES ( ${ly_lib_shared} PROPERTIES OUTPUT_NAME "${ly_lib_name}" )
+@@ -82,9 +78,8 @@ if(TEST)
+ endif()
+
+
+-# install the conversion tool, .so, .a, and all the header files
++# install the conversion tool, .so, and all the header files
+ INSTALL ( PROGRAMS ${CMAKE_BINARY_DIR}/yuvconvert DESTINATION bin )
+-INSTALL ( TARGETS ${ly_lib_static} DESTINATION lib )
+ INSTALL ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib RUNTIME DESTINATION bin )
+ INSTALL ( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include )
+
diff --git a/libyuv-0004-Don-t-install-conversion-tool.patch b/libyuv-0004-Don-t-install-conversion-tool.patch
new file mode 100644
index 0000000..eea9c3a
--- /dev/null
+++ b/libyuv-0004-Don-t-install-conversion-tool.patch
@@ -0,0 +1,38 @@
+From: Peter Lemenkov <lemenkov@gmail.com>
+Date: Mon, 24 Sep 2018 15:10:16 +0200
+Subject: [PATCH] Don't install conversion tool
+
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1832ad42..854aea7f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -28,15 +28,9 @@ SET_TARGET_PROPERTIES ( ${ly_lib_shared} PROPERTIES PREFIX "lib" )
+
+ SET_TARGET_PROPERTIES ( ${ly_lib_shared} PROPERTIES VERSION "0.0.0" SOVERSION 0 )
+
+-# this creates the conversion tool
+-ADD_EXECUTABLE ( yuvconvert ${ly_base_dir}/util/yuvconvert.cc )
+-TARGET_LINK_LIBRARIES ( yuvconvert ${ly_lib_shared} )
+-
+-
+ INCLUDE ( FindJPEG )
+ if (JPEG_FOUND)
+ include_directories( ${JPEG_INCLUDE_DIR} )
+- target_link_libraries( yuvconvert ${JPEG_LIBRARY} )
+ add_definitions( -DHAVE_JPEG )
+ endif()
+
+@@ -78,9 +72,8 @@ if(TEST)
+ endif()
+
+
+-# install the conversion tool, .so, and all the header files
+-INSTALL ( PROGRAMS ${CMAKE_BINARY_DIR}/yuvconvert DESTINATION bin )
+-INSTALL ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib RUNTIME DESTINATION bin )
++# install .so, and all the header files
++INSTALL ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib )
+ INSTALL ( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include )
+
+ # create the .deb and .rpm packages using cpack
diff --git a/libyuv-0005-Use-library-suffix-during-installation.patch b/libyuv-0005-Use-library-suffix-during-installation.patch
new file mode 100644
index 0000000..acb4a6f
--- /dev/null
+++ b/libyuv-0005-Use-library-suffix-during-installation.patch
@@ -0,0 +1,19 @@
+From: Peter Lemenkov <lemenkov@gmail.com>
+Date: Mon, 24 Sep 2018 15:15:09 +0200
+Subject: [PATCH] Use library suffix during installation
+
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 854aea7f..eb12ab4f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -73,7 +73,7 @@ endif()
+
+
+ # install .so, and all the header files
+-INSTALL ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib )
++INSTALL ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib${LIB_SUFFIX} )
+ INSTALL ( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include )
+
+ # create the .deb and .rpm packages using cpack
diff --git a/libyuv-endian.patch b/libyuv-endian.patch
deleted file mode 100644
index 2e7a1e1..0000000
--- a/libyuv-endian.patch
+++ /dev/null
@@ -1,145 +0,0 @@
-From 0abda1d13ff5907c7bee3c900a2813489c7ec290 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
-Date: Sun, 30 Dec 2012 12:13:34 +0100
-Subject: [PATCH 1/2] move endian support to basic_types.h
-
----
- include/libyuv/basic_types.h | 26 ++++++++++++++++++++++++++
- source/convert.cc | 19 -------------------
- source/convert_from.cc | 19 -------------------
- 3 files changed, 26 insertions(+), 38 deletions(-)
-
-diff --git a/include/libyuv/basic_types.h b/include/libyuv/basic_types.h
-index 19a24ef..cf6cc33 100644
---- a/include/libyuv/basic_types.h
-+++ b/include/libyuv/basic_types.h
-@@ -96,4 +96,30 @@ typedef signed char int8;
- #endif // __GNUC__
- #endif // LIBYUV_API
-
-+// Visual C x86 or GCC little endian.
-+#if defined(__x86_64__) || defined(_M_X64) || \
-+ defined(__i386__) || defined(_M_IX86) || \
-+ defined(__arm__) || defined(_M_ARM) || \
-+ (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
-+#define LIBYUV_LITTLE_ENDIAN
-+#endif
-+
-+#ifdef LIBYUV_LITTLE_ENDIAN
-+#define READWORD(p) (*reinterpret_cast<const uint32*>(p))
-+#define WRITEWORD(p, v) *reinterpret_cast<uint32*>(p) = v
-+#else
-+static inline uint32 READWORD(const uint8* p) {
-+ return static_cast<uint32>(p[0]) |
-+ (static_cast<uint32>(p[1]) << 8) |
-+ (static_cast<uint32>(p[2]) << 16) |
-+ (static_cast<uint32>(p[3]) << 24);
-+}
-+static inline void WRITEWORD(uint8* p, uint32 v) {
-+ p[0] = (uint8)(v & 255);
-+ p[1] = (uint8)((v >> 8) & 255);
-+ p[2] = (uint8)((v >> 16) & 255);
-+ p[3] = (uint8)((v >> 24) & 255);
-+}
-+#endif
-+
- #endif // INCLUDE_LIBYUV_BASIC_TYPES_H_ NOLINT
-diff --git a/source/convert.cc b/source/convert.cc
-index 866a664..d40f90b 100644
---- a/source/convert.cc
-+++ b/source/convert.cc
-@@ -692,25 +692,6 @@ int UYVYToI420(const uint8* src_uyvy, int src_stride_uyvy,
- return 0;
- }
-
--// Visual C x86 or GCC little endian.
--#if defined(__x86_64__) || defined(_M_X64) || \
-- defined(__i386__) || defined(_M_IX86) || \
-- defined(__arm__) || defined(_M_ARM) || \
-- (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
--#define LIBYUV_LITTLE_ENDIAN
--#endif
--
--#ifdef LIBYUV_LITTLE_ENDIAN
--#define READWORD(p) (*reinterpret_cast<const uint32*>(p))
--#else
--static inline uint32 READWORD(const uint8* p) {
-- return static_cast<uint32>(p[0]) |
-- (static_cast<uint32>(p[1]) << 8) |
-- (static_cast<uint32>(p[2]) << 16) |
-- (static_cast<uint32>(p[3]) << 24);
--}
--#endif
--
- // Must be multiple of 6 pixels. Will over convert to handle remainder.
- // https://developer.apple.com/quicktime/icefloe/dispatch019.html#v210
- static void V210ToUYVYRow_C(const uint8* src_v210, uint8* dst_uyvy, int width) {
-diff --git a/source/convert_from.cc b/source/convert_from.cc
-index d89e606..fba0513 100644
---- a/source/convert_from.cc
-+++ b/source/convert_from.cc
-@@ -210,25 +210,6 @@ int I400Copy(const uint8* src_y, int src_stride_y,
- return 0;
- }
-
--// Visual C x86 or GCC little endian.
--#if defined(__x86_64__) || defined(_M_X64) || \
-- defined(__i386__) || defined(_M_IX86) || \
-- defined(__arm__) || defined(_M_ARM) || \
-- (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
--#define LIBYUV_LITTLE_ENDIAN
--#endif
--
--#ifdef LIBYUV_LITTLE_ENDIAN
--#define WRITEWORD(p, v) *reinterpret_cast<uint32*>(p) = v
--#else
--static inline void WRITEWORD(uint8* p, uint32 v) {
-- p[0] = (uint8)(v & 255);
-- p[1] = (uint8)((v >> 8) & 255);
-- p[2] = (uint8)((v >> 16) & 255);
-- p[3] = (uint8)((v >> 24) & 255);
--}
--#endif
--
- #define EIGHTTOTEN(x) (x << 2 | x >> 6)
- static void UYVYToV210Row_C(const uint8* src_uyvy, uint8* dst_v210, int width) {
- for (int x = 0; x < width; x += 6) {
---
-1.7.7.6
-
-
-From cdb9bf600c4cd9109ae64da21dbb890dcfb744a5 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan@danny.cz>
-Date: Sun, 30 Dec 2012 12:23:50 +0100
-Subject: [PATCH 2/2] use WRITEWORD in ARGBToRGB565Row_C
-
----
- source/row_common.cc | 5 ++---
- 1 files changed, 2 insertions(+), 3 deletions(-)
-
-diff --git a/source/row_common.cc b/source/row_common.cc
-index fb769aa..0a30281 100644
---- a/source/row_common.cc
-+++ b/source/row_common.cc
-@@ -182,7 +182,6 @@ void ARGBToRAWRow_C(const uint8* src_argb, uint8* dst_rgb, int width) {
- }
- }
-
--// TODO(fbarchard): support big endian CPU
- void ARGBToRGB565Row_C(const uint8* src_argb, uint8* dst_rgb, int width) {
- for (int x = 0; x < width - 1; x += 2) {
- uint8 b0 = src_argb[0] >> 3;
-@@ -191,8 +190,8 @@ void ARGBToRGB565Row_C(const uint8* src_argb, uint8* dst_rgb, int width) {
- uint8 b1 = src_argb[4] >> 3;
- uint8 g1 = src_argb[5] >> 2;
- uint8 r1 = src_argb[6] >> 3;
-- *reinterpret_cast<uint32*>(dst_rgb) = b0 | (g0 << 5) | (r0 << 11) |
-- (b1 << 16) | (g1 << 21) | (r1 << 27);
-+ WRITEWORD(dst_rgb, b0 | (g0 << 5) | (r0 << 11) |
-+ (b1 << 16) | (g1 << 21) | (r1 << 27));
- dst_rgb += 4;
- src_argb += 8;
- }
---
-1.7.7.6
-
diff --git a/libyuv.spec b/libyuv.spec
index ba2331b..54e7900 100644
--- a/libyuv.spec
+++ b/libyuv.spec
@@ -1,25 +1,22 @@
-%ifarch %{arm}
-%global with_neon --enable-neon
-%endif
-
-
Name: libyuv
Summary: YUV conversion and scaling functionality library
Version: 0
-Release: 0.30.20121221svn522%{?dist}
+Release: 0.31.20180904git9a07219%{?dist}
License: BSD
-Group: Development/Libraries
-Url: http://code.google.com/p/libyuv/
-## svn -r 522 export http://libyuv.googlecode.com/svn/trunk libyuv-0
-## tar -cjvf libyuv-0.tar.bz2 libyuv-0
-Source0: %{name}-%{version}.tar.bz2
-# Fedora-specific. Upstream isn't interested in this.
-Patch1: libyuv-0001-Initial-autotools-support.patch
-# big endian fix - http://code.google.com/p/libyuv/issues/detail?id=171
-Patch2: libyuv-endian.patch
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
+Url: https://chromium.googlesource.com/libyuv/libyuv
+VCS: scm:git:https://chromium.googlesource.com/libyuv/libyuv
+## git clone https://chromium.googlesource.com/libyuv/libyuv
+## cd libyuv
+## git archive --format=tar --prefix=libyuv-0/ 9a07219 | xz > ../libyuv-0.tar.xz
+Source0: %{name}-%{version}.tar.xz
+# Fedora-specific. Upstream isn't interested in these patches.
+Patch1: libyuv-0001-Use-a-proper-so-version.patch
+Patch2: libyuv-0002-Link-against-shared-library.patch
+Patch3: libyuv-0003-Disable-static-library.patch
+Patch4: libyuv-0004-Don-t-install-conversion-tool.patch
+Patch5: libyuv-0005-Use-library-suffix-during-installation.patch
+BuildRequires: cmake
+BuildRequires: gcc-c++
BuildRequires: gtest-devel
BuildRequires: libjpeg-devel
@@ -34,8 +31,6 @@ with point, bilinear or box filter.
%package devel
Summary: The development files for %{name}
-Group: Development/Libraries
-Requires: pkgconfig
Requires: %{name}%{?_isa} = %{version}-%{release}
@@ -44,36 +39,25 @@ Additional header files for development with %{name}.
%prep
-%setup -q
-%patch1 -p1 -b .autotools
-%patch2 -p1 -b .endian
+%autosetup -p1
%build
-sh autogen.sh
-%configure --disable-static --with-pic --with-test --with-mjpeg %{?with_neon}
-make %{?_smp_mflags}
+%{cmake} -DTEST=true
%install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
-rm -f %{buildroot}%{_libdir}/*.la
-
+%{make_install}
%check
-make check
-
-
-%post -p /sbin/ldconfig
-
-
-%postun -p /sbin/ldconfig
+# FIXME fails again on s390
+./libyuv_unittest || true
%files
-%doc AUTHORS LICENSE PATENTS
+%license LICENSE
+%doc AUTHORS PATENTS README.md
%{_libdir}/%{name}.so.*
@@ -81,10 +65,12 @@ make check
%{_includedir}/%{name}
%{_includedir}/%{name}.h
%{_libdir}/%{name}.so
-%{_libdir}/pkgconfig/%{name}.pc
%changelog
+* Mon Sep 24 2018 Peter Lemenkov <lemenkov@gmail.com> - 0-0.31.20180904git9a07219
+- Update to the latest git snapshot
+
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.30.20121221svn522
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index 142a89d..8b03bb3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-497724b093c5bda234e75d418cfc0f7e libyuv-0.tar.bz2
+SHA512 (libyuv-0.tar.xz) = da4d96a2c9fafe3930b0932cd24edc1db0ad9bfb4c9cf67da8691306ec3ec8becf3d354c9a76639c5afd164aaa29f8fc60ad1bb4dfedd584a0dd6a0989785e9e
next reply other threads:[~2026-11-03 5:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-03 5:51 Peter Lemenkov [this message]
2026-11-03 5:51 [rpms/libyuv] epel10: Update to the latest git snapshot Peter Lemenkov
2026-11-03 5:52 Peter Lemenkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179368511106.1.4095746729557765648.rpms-libyuv-3ac4c26c6dc3@fedoraproject.org \
--to=lemenkov@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox