%global mingw_build_ucrt64 1 %{?mingw_package_header} Name: mingw-libwebp Version: 1.4.0 Release: 1%{?dist} Summary: MinGW compilation of Library and tools for the WebP format License: BSD URL: http://webmproject.org Source0: https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw32-binutils BuildRequires: mingw32-libpng BuildRequires: mingw32-libjpeg BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc BuildRequires: mingw64-binutils BuildRequires: mingw64-libpng BuildRequires: mingw64-libjpeg BuildRequires: ucrt64-filesystem >= 95 BuildRequires: ucrt64-gcc BuildRequires: ucrt64-binutils BuildRequires: ucrt64-libpng BuildRequires: ucrt64-libjpeg %description WebP is an image format that does lossy compression of digital photographic images. WebP consists of a codec based on VP8, and a container based on RIFF. Webmasters, web developers and browser developers can use WebP to compress, archive and distribute digital images more efficiently. # Win32 %package -n mingw32-libwebp Summary: MinGW compilation of Library and tools for the WebP format %description -n mingw32-libwebp WebP is an image format that does lossy compression of digital photographic images. WebP consists of a codec based on VP8, and a container based on RIFF. Webmasters, web developers and browser developers can use WebP to compress, archive and distribute digital images more efficiently. # Win64 %package -n mingw64-libwebp Summary: MinGW compilation of Library and tools for the WebP format %description -n mingw64-libwebp WebP is an image format that does lossy compression of digital photographic images. WebP consists of a codec based on VP8, and a container based on RIFF. Webmasters, web developers and browser developers can use WebP to compress, archive and distribute digital images more efficiently. # UCRT64 %package -n ucrt64-libwebp Summary: MinGW compilation of Library and tools for the WebP format %description -n ucrt64-libwebp WebP is an image format that does lossy compression of digital photographic images. WebP consists of a codec based on VP8, and a container based on RIFF. Webmasters, web developers and browser developers can use WebP to compress, archive and distribute digital images more efficiently. %?mingw_debug_package %prep %autosetup -p1 -n libwebp-%{version} %build %mingw_configure \ --enable-shared --disable-static \ --enable-libwebpmux --enable-libwebpdemux \ --enable-libwebpdecoder %mingw_make_build %install %mingw_make_install #drop unneeded files rm -f %{buildroot}%{mingw32_libdir}/libwebp*.la rm -f %{buildroot}%{mingw64_libdir}/libwebp*.la rm -f %{buildroot}%{ucrt64_libdir}/libwebp*.la rm -fr %{buildroot}%{mingw32_mandir} rm -fr %{buildroot}%{mingw64_mandir} rm -fr %{buildroot}%{ucrt64_mandir} # Win32 %files -n mingw32-libwebp %license PATENTS COPYING %{mingw32_bindir}/cwebp.exe %{mingw32_bindir}/dwebp.exe %{mingw32_bindir}/img2webp.exe %{mingw32_bindir}/webpinfo.exe %{mingw32_bindir}/webpmux.exe %{mingw32_bindir}/libwebp-7.dll %{mingw32_bindir}/libwebpdecoder-3.dll %{mingw32_bindir}/libwebpdemux-2.dll %{mingw32_bindir}/libwebpmux-3.dll %{mingw32_bindir}/libsharpyuv-0.dll %{mingw32_includedir}/webp %{mingw32_libdir}/pkgconfig/libwebp.pc %{mingw32_libdir}/pkgconfig/libwebpdecoder.pc %{mingw32_libdir}/pkgconfig/libwebpdemux.pc %{mingw32_libdir}/pkgconfig/libwebpmux.pc %{mingw32_libdir}/pkgconfig/libsharpyuv.pc %{mingw32_libdir}/libwebp.dll.a %{mingw32_libdir}/libwebpdecoder.dll.a %{mingw32_libdir}/libwebpdemux.dll.a %{mingw32_libdir}/libwebpmux.dll.a %{mingw32_libdir}/libsharpyuv.dll.a # Win64 %files -n mingw64-libwebp %license PATENTS COPYING %{mingw64_bindir}/cwebp.exe %{mingw64_bindir}/dwebp.exe %{mingw64_bindir}/img2webp.exe %{mingw64_bindir}/webpinfo.exe %{mingw64_bindir}/webpmux.exe %{mingw64_bindir}/libwebp-7.dll %{mingw64_bindir}/libwebpdecoder-3.dll %{mingw64_bindir}/libwebpdemux-2.dll %{mingw64_bindir}/libwebpmux-3.dll %{mingw64_bindir}/libsharpyuv-0.dll %{mingw64_includedir}/webp %{mingw64_libdir}/pkgconfig/libwebp.pc %{mingw64_libdir}/pkgconfig/libwebpdecoder.pc %{mingw64_libdir}/pkgconfig/libwebpdemux.pc %{mingw64_libdir}/pkgconfig/libwebpmux.pc %{mingw64_libdir}/pkgconfig/libsharpyuv.pc %{mingw64_libdir}/libwebp.dll.a %{mingw64_libdir}/libwebpdecoder.dll.a %{mingw64_libdir}/libwebpdemux.dll.a %{mingw64_libdir}/libwebpmux.dll.a %{mingw64_libdir}/libsharpyuv.dll.a # UCRT64 %files -n ucrt64-libwebp %license PATENTS COPYING %{ucrt64_bindir}/cwebp.exe %{ucrt64_bindir}/dwebp.exe %{ucrt64_bindir}/img2webp.exe %{ucrt64_bindir}/webpinfo.exe %{ucrt64_bindir}/webpmux.exe %{ucrt64_bindir}/libwebp-7.dll %{ucrt64_bindir}/libwebpdecoder-3.dll %{ucrt64_bindir}/libwebpdemux-2.dll %{ucrt64_bindir}/libwebpmux-3.dll %{ucrt64_bindir}/libsharpyuv-0.dll %{ucrt64_includedir}/webp %{ucrt64_libdir}/pkgconfig/libwebp.pc %{ucrt64_libdir}/pkgconfig/libwebpdecoder.pc %{ucrt64_libdir}/pkgconfig/libwebpdemux.pc %{ucrt64_libdir}/pkgconfig/libwebpmux.pc %{ucrt64_libdir}/pkgconfig/libsharpyuv.pc %{ucrt64_libdir}/libwebp.dll.a %{ucrt64_libdir}/libwebpdecoder.dll.a %{ucrt64_libdir}/libwebpdemux.dll.a %{ucrt64_libdir}/libwebpmux.dll.a %{ucrt64_libdir}/libsharpyuv.dll.a %changelog * Tue Aug 20 2024 Jack Greiner - 1.4.0-1 - Update to 1.4.0 - Add libsharpyuv dependencies. * Mon Aug 19 2024 Jack Greiner - 1.2.4-2 - Add ucrt64 builds to spec. * Sun Aug 07 2022 Sandro Mani - 1.2.4-1 - Update to 1.2.4 * Thu Jan 20 2022 Sandro Mani - 1.2.2-1 - Update to 1.2.2 * Sun Aug 15 2021 Sandro Mani - 1.2.1-1 - Update to 1.2.1 * Thu Jul 22 2021 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Feb 01 2021 Sandro Mani - 1.2.0-1 - Update to 1.2.0 * Tue Jan 26 2021 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Jan 07 2020 Sandro Mani - 1.1.0-1 - Update to 1.1.0 * Tue Oct 08 2019 Sandro Mani - 1.0.3-3 - Rebuild (Changes/Mingw32GccDwarf2) * Thu Jul 25 2019 Fedora Release Engineering - 1.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jul 15 2019 Sandro Mani - 1.0.3-1 - Update to 1.0.3 * Fri Feb 01 2019 Fedora Release Engineering - 1.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 22 2019 Sandro Mani - 1.0.2-1 - Update to 1.0.2 * Fri Jul 13 2018 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Apr 26 2018 Sandro Mani - 1.0.0-1 - Update to 1.0.0 * Thu Feb 08 2018 Fedora Release Engineering - 0.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Nov 30 2017 Sandro Mani - 0.6.1-1 - Update to 0.6.1 * Wed Jul 26 2017 Fedora Release Engineering - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 01 2017 Sandro Mani - 0.6.0-1 - Update to 0.6.0 * Thu Dec 22 2016 Sandro Mani - 0.5.2-1 - Update to 0.5.2 * Sat Oct 29 2016 Sandro Mani - 0.5.1-2 - Backport e2affacc35f1df6cc3b1a9fa0ceff5ce2d0cce83 (CVE-2016-9085, rhbz#1389338) * Fri Aug 12 2016 Sandro Mani - 0.5.1-1 - Update to 0.5.1 * Thu Feb 04 2016 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Dec 28 2015 Sandro Mani - 0.5.0-1 - Update to 0.5.0 * Fri Oct 30 2015 Sandro Mani - 0.4.4-1 - Update to 0.4.4 * Wed Oct 14 2015 Sandro Mani - 0.4.3-1 - Update to 0.4.3 * Wed Jun 17 2015 Fedora Release Engineering - 0.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Nov 15 2014 Kalev Lember - 0.4.2-1 - Update to 0.4.2 * Sat Jun 07 2014 Fedora Release Engineering - 0.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 22 2014 Kalev Lember - 0.4.0-1 - Update to 0.4.0 * Thu Mar 27 2014 Yaakov Selkowitz - 0.2.1-4 - Fix mingw64 BRs * Sat Aug 03 2013 Fedora Release Engineering - 0.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Mar 25 2013 Paweł Forysiuk - 0.2.1-2 - Fix Buildrequires - Add COPYING files * Sun Dec 30 2012 Paweł Forysiuk - 0.2.1-1 - Initial packaging