%global git_date 20241031 %global git_hash 50020b39a %global git_ver 1.15.0 %global rel 1 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz # Won't package properly without this set %global debug_package %{nil} # Name: libvpx Summary: VP8/VP9 Video Codec SDK Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} License: BSD Source0: %{url}/%{src_name} URL: http://www.webmproject.org/code/ BuildRequires: make BuildRequires: gcc BuildRequires: gcc-c++ %ifarch %{ix86} x86_64 BuildRequires: yasm %endif BuildRequires: doxygen #BuildRequires: php-cli BuildRequires: perl(Getopt::Long) %description libvpx provides the VP8/VP9 SDK, which allows you to integrate your applications with the VP8 and VP9 video codecs, high quality, royalty free, open source codecs deployed on millions of computers and devices worldwide. %package devel Summary: Development files for libvpx Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development libraries and headers for developing software against libvpx. %package utils Summary: VP8 utilities and tools Requires: %{name}%{?_isa} = %{version}-%{release} %description utils A selection of utilities and tools for VP8, including a sample encoder and decoder. %prep %autosetup -n libvpx %build %ifarch %{ix86} %global vpxtarget x86-linux-gcc %endif %ifarch x86_64 %global vpxtarget x86_64-linux-gcc %endif %ifarch aarch64 %global vpxtarget arm64-linux-gcc %endif %set_build_flags ./configure --target=%{vpxtarget} \ %ifarch %{arm} --disable-neon --disable-neon_asm \ %endif --enable-pic --disable-install-srcs \ --enable-vp9-decoder --enable-vp9-encoder \ --enable-experimental \ --enable-vp9-highbitdepth \ --enable-debug \ --enable-shared \ --disable-static \ --prefix=%{_prefix} --libdir=%{_libdir} --size-limit=16384x16384 %make_build verbose=true %install %make_install %ldconfig_scriptlets %files %license LICENSE %doc AUTHORS CHANGELOG README %{_libdir}/libvpx.so.* %files devel %{_includedir}/vpx/* %{_libdir}/pkgconfig/vpx.pc %{_libdir}/libvpx.so %files utils %{_bindir}/* %changelog %autochangelog