## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global commit f00c43f4d6e812b581f64edc53a655f8e2413938 %global scm git %global date 20241031 %forgemeta Name: libyuv Summary: YUV conversion and scaling functionality library Version: 1897 Release: %autorelease License: BSD URL: https://chromium.googlesource.com/libyuv/libyuv ## git clone https://chromium.googlesource.com/libyuv/libyuv ## cd libyuv ## git archive --format=tar --prefix=libyuv-$(grep '#define LIBYUV_VERSION ' include/libyuv/version.h | cut -f3 -d' ')/ HEAD | gzip -9 > ../libyuv-$(git rev-parse HEAD).tar.gz Source0: %{name}-%{commit}.tar.gz # Fedora-specific. Upstream isn't interested in these patches. Patch: 0001-Use-a-proper-so-version.patch Patch: 0002-Link-against-shared-library.patch Patch: 0003-Use-GNUInstallDirs-during-installation.patch Patch: 0004-Remove-the-yuvconvert-installation-target-use-the-ve.patch Patch: 0005-Link-yuvconstants-to-libm.patch Patch: 0006-Use-CTest-switches-for-testing.patch Patch: 0007-arch-s390x-disable-little-endian-tests.patch Patch: 0008-arch-arm64-fix-building-udot-instructions-on-GCC-13.patch BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: cmake(GTest) BuildRequires: pkgconfig(libjpeg) %description This is an open source project that includes YUV conversion and scaling functionality. Converts all webcam formats to YUV (I420). Convert YUV to formats for rendering/effects. Rotate by 90 degrees to adjust for mobile devices in portrait mode. Scale YUV to prepare content for compression, with point, bilinear or box filter. %package devel Summary: The development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Additional header files for development with %{name}. %package static Summary: Static libraries for %{name} Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description static This package contains static libraries for %{name}. %prep %autosetup -p1 cat > %{name}.pc << EOF prefix=%{_prefix} exec_prefix=${prefix} libdir=%{_libdir} includedir=%{_includedir} Name: %{name} Description: %{summary} Version: %{version} Libs: -lyuv EOF %build %cmake -DBUILD_TESTING:BOOL=ON %cmake_build %install %cmake_install mkdir -p %{buildroot}%{_libdir}/pkgconfig cp -a %{name}.pc %{buildroot}%{_libdir}/pkgconfig/ %check %ctest %files %license LICENSE %doc AUTHORS PATENTS README.md %{_libdir}/%{name}.so.* %files devel %{_includedir}/%{name} %{_includedir}/%{name}.h %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %files static %{_libdir}/%{name}.a %changelog ## START: Generated by rpmautospec * Fri Nov 01 2024 Zephyr Lykos - 1897-1 - Update to version 1897 * Sun Apr 28 2024 Zephyr Lykos - 1888-2 - Fix aarch64 builds with GCC 13 * Sun Apr 28 2024 Zephyr Lykos - 1888-1 - Update to version 1888 * Tue Feb 06 2024 Zephyr Lykos - 0-53 - Update to afd9d5d31798d3eacf9ed6c30601e91d0f1e4d60 * Sun Nov 05 2023 Zephyr Lykos - 0-52 - Disable little endian only tests on s390x * Sat Nov 04 2023 Zephyr Lykos - 0-47.20231103gitfb6341d - Update to latest commit * Thu Jul 20 2023 Fedora Release Engineering - 0-0.46.20201024git19d71f6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 0-0.45.20201024git19d71f6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0-0.44.20201024git19d71f6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0-0.43.20201024git19d71f6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0-0.42.20201024git19d71f6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0-0.41.20201024git19d71f6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Oct 27 2020 Peter Lemenkov - 0-0.40.20201024git19d71f6 - Update to the latest git snapshot - Fix FTBFS * Sat Aug 01 2020 Fedora Release Engineering - 0-0.39.20190401git4bd08cb - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0-0.38.20190401git4bd08cb - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 0-0.37.20190401git4bd08cb - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0-0.36.20190401git4bd08cb - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Apr 17 2019 Peter Lemenkov - 0-0.35.20190401git4bd08cb - Fix linkage against libjpeg * Tue Apr 16 2019 Peter Lemenkov - 0-0.34.20190401git4bd08cb - Fixed pkgconfig-file * Tue Apr 09 2019 Peter Lemenkov - 0-0.33.20190401git4bd08cb - Update to the latest git snapshot * Fri Feb 01 2019 Fedora Release Engineering - 0-0.32.20180904git9a07219 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Sep 24 2018 Peter Lemenkov - 0-0.31.20180904git9a07219 - Update to the latest git snapshot * Fri Jul 13 2018 Fedora Release Engineering - 0-0.30.20121221svn522 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0-0.29.20121221svn522 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0-0.28.20121221svn522 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0-0.27.20121221svn522 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0-0.26.20121221svn522 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0-0.25.20121221svn522 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0-0.24.20121221svn522 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0-0.23.20121221svn522 - Rebuilt for GCC 5 C++11 ABI change * Sun Aug 17 2014 Fedora Release Engineering - 0-0.22.20121221svn522 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0-0.21.20121221svn522 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0-0.20.20121221svn522 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0-0.19.20121221svn522 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jan 18 2013 Adam Tkac - 0-0.18.20121221svn522 - rebuild due to "jpeg8-ABI" feature drop * Sun Dec 30 2012 Dan HorĂ¡k - 0-0.17.20121221svn522 - add big endian fix * Fri Dec 21 2012 Adam Tkac - 0-0.16.20121221svn522 - rebuild against new libjpeg * Fri Dec 21 2012 Peter Lemenkov - 0-0.15.20121221svn522 - Next svn snapshot - ver. 522 * Thu Oct 04 2012 Peter Lemenkov - 0-0.14.20121001svn389 - Next svn snapshot - ver. 389 - Enable NEON on ARM (if detected) * Sat Sep 15 2012 Peter Lemenkov - 0-0.13.20120915svn353 - Next svn snapshot - ver. 353 - Dropped upstreamed patch no.3 * Mon Jul 30 2012 Peter Lemenkov - 0-0.12.20120727svn312 - Next svn snapshot - ver. 312 * Thu Jul 19 2012 Fedora Release Engineering - 0-0.11.20120627svn296 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jul 05 2012 Peter Lemenkov - 0-0.10.20120627svn296 - Next svn snapshot - ver. 296 - Dropped patch3 (header conflict) - fixed upstream * Thu Jun 14 2012 Tom Callaway - 0-0.9.20120518svn268 - resolve header conflict with duplicate definition in scale*.h * Fri May 18 2012 Peter Lemenkov - 0-0.8.20120518svn268 - Next svn snapshot - ver. 268 - Fixed failure on s390x and PPC64 (see rhbz #822494) - Fixed FTBFS on EL5 (see rhbz #819179) * Sat May 05 2012 Peter Lemenkov - 0-0.7.20120505svn256 - Next svn snapshot - ver. 256 * Sun Apr 08 2012 Peter Lemenkov - 0-0.6.20120406svn239 - Next svn snapshot - ver. 239 * Thu Mar 08 2012 Peter Lemenkov - 0-0.5.20120308svn209 - Next svn ver. - 209 - Drop upstreamed patches - Add libjpeg as a dependency * Thu Feb 02 2012 Peter Lemenkov - 0-0.4.20120202svn164 - Next svn ver. - 164 - Added two patches - no.2 and no.3 * Thu Jan 12 2012 Peter Lemenkov - 0-0.3.20120109svn128 - Use bzip2 instead of xz (for EL-5) * Wed Jan 11 2012 Peter Lemenkov - 0-0.2.20120109svn128 - Update to svn rev. 128 - Enable unit-tests - Dropped obsolete defattr directive - Consistently use macros - Explicitly add _isa to the Requires for *-devel sub-package * Fri Jan 6 2012 Peter Lemenkov - 0-0.1.20120105svn127 - Initial package ## END: Generated by rpmautospec