## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 10; 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 %if 0%{?fedora} %bcond_without mingw %else %bcond_with mingw %endif %global common_description %{expand: WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode. Although the technology is loosely based on previous versions of WavPack, the new version 4 format has been designed from the ground up to offer unparalleled performance and functionality.} Name: wavpack Summary: A completely open audiocodec Version: 5.7.0 Release: %autorelease License: BSD-3-Clause AND BSD-2-Clause AND LicenseRef-Fedora-Public-Domain Url: https://www.wavpack.com/ Source: https://www.wavpack.com/%{name}-%{version}.tar.bz2 # Fedora-specific Patch1: wavpack-0001-fix-for-MinGW.patch # Fedora-specific (we do not build any C++ code) Patch2: wavpack-0002-We-compile-only-ANSI-C-sources.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: gettext-devel BuildRequires: libtool BuildRequires: make %if %{with mingw} BuildRequires: mingw32-filesystem >= 95 BuildRequires: mingw32-gcc BuildRequires: mingw64-filesystem >= 95 BuildRequires: mingw64-gcc %endif %description %{common_description} %package devel Summary: WavPack - development files Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Files needed for developing apps using wavpack %if %{with mingw} %package -n mingw32-%{name} Summary: %{summary} BuildArch: noarch %description -n mingw32-%{name} %{common_description} This package is MinGW compiled wavpack library for the Win32 target. %package -n mingw32-%{name}-tools Summary: %{summary} tools BuildArch: noarch Requires: mingw32-%{name} = %{version}-%{release} %description -n mingw32-%{name}-tools %{common_description} This package is MinGW compiled wavpack tools for the Win32 target. %package -n mingw64-%{name} Summary: %{summary} BuildArch: noarch %description -n mingw64-%{name} %{common_description} This package is MinGW compiled wavpack library for the Win64 target. %package -n mingw64-%{name}-tools Summary: %{summary} tools BuildArch: noarch Requires: mingw64-%{name} = %{version}-%{release} %description -n mingw64-%{name}-tools %{common_description} This package is MinGW compiled wavpack tools for the Win64 target. %endif %{?mingw_debug_package} %prep %autosetup -p1 %build # Debian and Buildroot recomendation: # WavPack "autodetects" CPU type to enable ASM code. However, the assembly code # for ARM is written for ARMv7 only and building WavPack for an ARM-non-v7 # architecture will fail. # http://lists.busybox.net/pipermail/buildroot/2015-October/142117.html %cmake -DWAVPACK_ENABLE_ASM=OFF %cmake_build %if %{with mingw} %mingw_cmake -DWAVPACK_ENABLE_ASM=OFF %mingw_make_build %endif %install %cmake_install rm -f %{buildroot}/%{_libdir}/*.la # we will install the documentation ourselves through the %doc macro rm -rf %{buildroot}/%{_docdir}/ %if %{with mingw} %mingw_make_install # remove libtool files rm -f %{buildroot}%{mingw32_libdir}/*.la rm -f %{buildroot}%{mingw64_libdir}/*.la # remove documentation (it's in the native version) rm -rf %{buildroot}%{mingw32_docdir} rm -rf %{buildroot}%{mingw32_mandir} rm -rf %{buildroot}%{mingw64_docdir} rm -rf %{buildroot}%{mingw64_mandir} %endif %{?mingw_debug_install_post} %files %{_bindir}/* %{_libdir}/libwavpack.so.* %{_mandir}/man1/wavpack.1* %{_mandir}/man1/wvgain.1* %{_mandir}/man1/wvunpack.1* %{_mandir}/man1/wvtag.1* %doc AUTHORS doc/wavpack_doc.html doc/style.css %license COPYING %files devel %{_includedir}/* %{_libdir}/cmake/WavPack/ %{_libdir}/pkgconfig/* %{_libdir}/libwavpack.so %doc ChangeLog doc/WavPack5PortingGuide.pdf doc/WavPack5LibraryDoc.pdf doc/WavPack5FileFormat.pdf %if %{with mingw} %files -n mingw32-wavpack %doc AUTHORS %license COPYING %dir %{mingw32_includedir}/wavpack %{mingw32_bindir}/libwavpack-1.dll %{mingw32_includedir}/wavpack/*.h %{mingw32_libdir}/cmake/WavPack/ %{mingw32_libdir}/libwavpack.dll.a %{mingw32_libdir}/pkgconfig/* %files -n mingw32-wavpack-tools %{mingw32_bindir}/*.exe %files -n mingw64-wavpack %doc AUTHORS %license COPYING %dir %{mingw64_includedir}/wavpack %{mingw64_bindir}/libwavpack-1.dll %{mingw64_includedir}/wavpack/*.h %{mingw64_libdir}/cmake/WavPack/ %{mingw64_libdir}/libwavpack.dll.a %{mingw64_libdir}/pkgconfig/* %files -n mingw64-wavpack-tools %{mingw64_bindir}/*.exe %endif %changelog ## START: Generated by rpmautospec * Fri Oct 25 2024 Peter Lemenkov - 5.7.0-10 - Remove CMake requirement for C++ compiler * Tue Oct 22 2024 Peter Lemenkov - 5.7.0-9 - Merge mingw32/64 package * Tue Oct 22 2024 Peter Lemenkov - 5.7.0-8 - Use common description block (prepare for Mingw merge) * Tue Oct 22 2024 Peter Lemenkov - 5.7.0-7 - Switch to cmake * Tue Oct 22 2024 Peter Lemenkov - 5.7.0-6 - No need to specify this dep * Tue Oct 22 2024 Peter Lemenkov - 5.7.0-5 - Cosmetic cleanups * Mon Jul 29 2024 Tomas Korbar - 5.7.0-3 - Disable asm code parts - ASM code parts break support for cf-protection on x86_64, since they do not contain such feature. This situation is likely to repeat in the future and thus all code parts should be compiled by compiler which knows distribution settings. * Sat Jul 20 2024 Fedora Release Engineering - 5.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Mar 13 2024 Tomas Korbar - 5.7.0-1 - Rebase to 5.7.0 - Resolves: rhbz#2267425 * Sat Jan 27 2024 Fedora Release Engineering - 5.6.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Nov 02 2023 Tomas Korbar - 5.6.0-5 - Add licenses to fully conform to SPDX * Sat Jul 22 2023 Fedora Release Engineering - 5.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Mar 11 2023 Tomas Korbar - 5.6.0-3 - Change the License tag to the SPDX format * Sat Jan 21 2023 Fedora Release Engineering - 5.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Dec 08 2022 Tomas Korbar - 5.6.0-1 - Rebase to 5.6.0 - Resolves: rhbz#2148994 * Sat Jul 23 2022 Fedora Release Engineering - 5.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jul 13 2022 Tomas Korbar - 5.5.0-1 - Rebase to 5.5.0 - Resolves: rhbz#2105686 * Wed Apr 6 2022 Peter Lemenkov - 5.4.0-5 - Fix for CVE-2021-44269 * Sat Jan 22 2022 Fedora Release Engineering - 5.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 5.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 5.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 17 2021 Sérgio Basto - 5.4.0-1 - Update wavpack to 5.4.0 (#1915740) - Security fix for CVE-2020-35738 * Wed Jul 29 2020 Fedora Release Engineering - 5.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Apr 18 2020 Peter Lemenkov - 5.3.0-1 - Update to 5.3.0 * Fri Jan 31 2020 Fedora Release Engineering - 5.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 09 2020 Tomas Korbar - 5.2.0-1 - Update to 5.2.0 * Mon Aug 19 2019 Tomas Korbar - 5.1.0-16 - Fix for CVE-2019-1010317 * Mon Aug 19 2019 Tomas Korbar - 5.1.0-15 - Fix for CVE-2019-1010319 * Sat Jul 27 2019 Fedora Release Engineering - 5.1.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 17 2019 Peter Lemenkov - 5.1.0-13 - Fix for CVE-2019-11498 * Wed Apr 10 2019 Peter Lemenkov - 5.1.0-12 - Fix for CVE-2018-19840, CVE-2018-19841 * Thu Feb 28 2019 Sérgio Basto - 5.1.0-11 - Make the manual pages decompression format agnostic * Sun Feb 03 2019 Fedora Release Engineering - 5.1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 5.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue May 22 2018 Miroslav Lichvar - 5.1.0-8 - Fix for CVE-2018-10536, CVE-2018-10537, CVE-2018-10538, CVE-2018-10539, CVE-2018-10540 * Tue Feb 20 2018 Peter Lemenkov - 5.1.0-7 - Fix for CVE-2018-6767, CVE-2018-7253, and two more GH issues * Fri Feb 09 2018 Fedora Release Engineering - 5.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Feb 03 2018 Igor Gnatenko - 5.1.0-5 - Switch to %%ldconfig_scriptlets * Thu Aug 03 2017 Fedora Release Engineering - 5.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 5.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 5.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 01 2017 Sérgio Basto - 5.1.0-1 - Update wavpack to 5.1.0 * Thu Apr 21 2016 Sérgio Basto - 4.80.0-1 - Update wavpack to 4.80.0 * Mon Mar 28 2016 Sérgio Basto - 4.75.2-1 - Update to 4.75.2 * Fri Feb 05 2016 Fedora Release Engineering - 4.70.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Fedora Release Engineering - 4.70.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Feb 21 2015 Till Maas - 4.70.0-4 - Rebuilt for Fedora 23 Change https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code * Mon Aug 18 2014 Fedora Release Engineering - 4.70.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 4.70.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Feb 17 2014 Peter Lemenkov - 4.70.0-1 - Ver. 4.70.0 * Sun Aug 04 2013 Fedora Release Engineering - 4.60.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Jul 21 2013 Peter Lemenkov - 4.60.1-7 - Reconfigure to allow building on AArch64 - Cleanup spec-file * Fri Feb 15 2013 Fedora Release Engineering - 4.60.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jan 3 2013 Miroslav Lichvar 4.60.1-5 - Fix -Wstrict-aliasing compiler warnings * Sun Jul 22 2012 Fedora Release Engineering - 4.60.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 4.60.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Feb 07 2011 Fedora Release Engineering - 4.60.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jan 9 2011 Peter Lemenkov 4.60.1-1 - Version 4.60.1 (bugfix release) - Added man-pages - The only patch was rebased - Small cosmetic spec-file cleanups * Mon Sep 28 2009 Peter Lemenkov 4.60-1 - Version 4.60 * Mon Jul 27 2009 Fedora Release Engineering - 4.50.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 4.50.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Aug 30 2008 Peter Lemenkov 4.50.1-2 - Fixes to meet the Fedora Packaging Guidelines * Sun Aug 24 2008 Peter Lemenkov 4.50.1-1 - Version 4.50.1 * Wed Jun 18 2008 Peter Lemenkov 4.50-1 - Version 4.50 * Tue Feb 19 2008 Fedora Release Engineering - 4.41-2 - Autorebuild for GCC 4.3 * Sat May 12 2007 Peter Lemenkov 4.41-1 - Version 4.41 - Removed unnecessary --with-pic * Fri Dec 15 2006 Peter Lemenkov 4.40-1.1 - Rebuild * Fri Dec 15 2006 Peter Lemenkov 4.40-1 - Version 4.40 * Tue Sep 12 2006 Peter Lemenkov 4.32-3%{?dist} - Rebuild for FC6 * Sat Jul 01 2006 Peter Lemenkov 4.32-2%{?dist} - force PIC-only code * Wed Jun 28 2006 Peter Lemenkov 4.32-1%{?dist} - Version 4.32 * Thu Mar 30 2006 Peter Lemenkov 4.31-2%{?dist} - rebuild * Sat Jan 07 2006 Peter Lemenkov 4.31-1 - Fixed several issues with wavpack.pc.in - Cosmetic fixes. - Version 4.31 * Sun Nov 13 2005 Peter Lemenkov 4.3-1 - Initial build for FC-Extras - Version 4.3 ## END: Generated by rpmautospec