## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## 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 2e95c9001bf1ad0177c54923029ed8f4c53b70e0 #global shortcommit %(c=%{commit}; echo ${c:0:7}) %if 0%{?rhel} # Qt5 only up to 9, and Qt6 in 9+ %if %{rhel} >= 10 %bcond_with qt5 %else %bcond_without qt5 %endif %if %{rhel} >= 9 %bcond_without qt6 %else %bcond_with qt6 %endif %bcond_with mingw %else # Fedora - build everything %bcond_without qt5 %bcond_without qt6 %bcond_without mingw %endif %bcond_without test Name: quazip Version: 1.7.1 Release: %autorelease Summary: Qt/C++ wrapper for the minizip library # Following files are zlib licensed: # - quazip/unzip.c # - quazip/unzip.h # - quazip/zip.c # - quazip/zip.h # Rest is LGPLv2 with a static linking exception, see COPYING License: (LGPL-2.1-or-later WITH Qwt-exception-1.0) AND Zlib URL: https://github.com/stachenov/quazip %if 0%{?commit:1} Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source0: %{url}/archive/v%{version}/%{name}-v%{version}.tar.gz %endif # Fix use in qt5 applications (Qt5 does not have QStringConverter) Patch0: quazip_qt5.patch BuildRequires: cmake BuildRequires: bzip2-devel BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: graphviz BuildRequires: zlib-devel %if %{with mingw} BuildRequires: mingw32-filesystem BuildRequires: mingw32-gcc-c++ BuildRequires: mingw32-libzip BuildRequires: mingw64-filesystem BuildRequires: mingw64-gcc-c++ BuildRequires: mingw64-libzip %endif %description QuaZip is the C++ wrapper for Gilles Vollant's ZIP/UNZIP package (AKA Minizip) using Qt library. %if %{with qt5} %package qt5 Summary: Qt5 wrapper for the minizip library BuildRequires: qt5-qtbase-devel %description qt5 QuaZip is the C++ wrapper for Gilles Vollant's ZIP/UNZIP package (AKA Minizip) using Qt library. %package qt5-devel Summary: Development files for %{name}-qt5 Requires: %{name}-qt5%{?_isa} = %{version}-%{release} Requires: bzip2-devel%{?_isa} Requires: qt5-qtbase-devel%{?_isa} Requires: zlib-devel%{?_isa} %description qt5-devel The %{name}-qt5-devel package contains libraries, header files and documentation for developing applications that use %{name}-qt5. %if %{with mingw} %package -n mingw32-%{name}-qt5 Summary: MinGW Windows Qt5 %{name} library BuildRequires: mingw32-qt5-qtbase BuildArch: noarch %description -n mingw32-%{name}-qt5 MinGW Windows Qt5 %{name} library. %package -n mingw64-%{name}-qt5 Summary: MinGW Windows Qt5 %{name} library BuildRequires: mingw64-qt5-qtbase BuildArch: noarch %description -n mingw64-%{name}-qt5 MinGW Windows Qt5 %{name} library. %endif %endif %if %{with qt6} %package qt6 Summary: Qt6 wrapper for the minizip library BuildRequires: qt6-qtbase-devel BuildRequires: qt6-qt5compat-devel %description qt6 QuaZip is the C++ wrapper for Gilles Vollant's ZIP/UNZIP package (AKA Minizip) using Qt library. %package qt6-devel Summary: Development files for %{name}-qt6 Requires: %{name}-qt6%{?_isa} = %{version}-%{release} Requires: bzip2-devel%{?_isa} Requires: qt6-qtbase-devel%{?_isa} Requires: qt6-qt5compat-devel%{?_isa} Requires: zlib-devel%{?_isa} %description qt6-devel The %{name}-qt6-devel package contains libraries, header files and documentation for developing applications that use %{name}-qt6. %if %{with mingw} %package -n mingw32-%{name}-qt6 Summary: MinGW Windows Qt6 %{name} library BuildRequires: mingw32-qt6-qtbase BuildRequires: mingw32-qt6-qt5compat BuildArch: noarch %description -n mingw32-%{name}-qt6 MinGW Windows Qt6 %{name} library. %package -n mingw64-%{name}-qt6 Summary: MinGW Windows Qt6 %{name} library BuildRequires: mingw64-qt6-qtbase BuildRequires: mingw64-qt6-qt5compat BuildArch: noarch %description -n mingw64-%{name}-qt6 MinGW Windows Qt6 %{name} library. %endif %endif %if %{with mingw} %{?mingw_debug_package} %endif %prep %if 0%{?commit:1} %autosetup -p1 -n %{name}-%{commit} %else %autosetup -p1 -n %{name}-%{version} %endif %build %if %{with mingw} export MINGW32_CXXFLAGS="%{mingw32_cflags} -msse2" export MINGW64_CXXFLAGS="%{mingw64_cflags} -msse2" %endif %if %{with qt5} %global _vpath_builddir build-qt5 %cmake -DQUAZIP_QT_MAJOR_VERSION=5 -DQUAZIP_ENABLE_TESTS=ON %cmake_build %if %{with mingw} mkdir build_qt5 pushd build_qt5 ( %mingw_cmake -DQUAZIP_QT_MAJOR_VERSION=5 -DQT_INCLUDE_DIRS_NO_SYSTEM=ON ../.. %mingw_make_build ) popd %endif %endif %if %{with qt6} %global _vpath_builddir build-qt6 %cmake -DQUAZIP_QT_MAJOR_VERSION=6 -DQUAZIP_ENABLE_TESTS=ON %cmake_build %if %{with mingw} mkdir build_qt6 pushd build_qt6 ( %mingw_cmake -DQUAZIP_QT_MAJOR_VERSION=6 -DQT_INCLUDE_DIRS_NO_SYSTEM=ON ../.. %mingw_make_build ) popd %endif %endif doxygen Doxyfile for file in doc/html/*; do touch -r Doxyfile $file; done %install %if %{with qt5} %global _vpath_builddir build-qt5 %cmake_install %if %{with mingw} pushd build_qt5 %mingw_make_install popd %endif %endif %if %{with qt6} %global _vpath_builddir build-qt6 %cmake_install %if %{with mingw} pushd build_qt6 %mingw_make_install popd %endif %endif %if %{with mingw} %mingw_debug_install_post %endif %if %{with test} # Qt4 uses the locale rather than libicu to determine file name encoding. # Thus we need to force a UTF-8 locale, otherwise the tests will fail # under Qt4. # https://github.com/stachenov/quazip/issues/127 export LC_ALL=C.UTF-8 # In some emulated environments (such as the s390x mock chroot emulated # on x86_64) the regexp JIT is broken, so turn it off to avoid incorrect # test failures. export QT_ENABLE_REGEXP_JIT=0 %check %if %{with qt5} %global _vpath_builddir build-qt5 %ctest %endif %if %{with qt6} %global _vpath_builddir build-qt6 %ctest %endif %endif %if %{with qt5} %files qt5 %doc NEWS.txt README.md %license COPYING %{_libdir}/libquazip1-qt5.so.1.7 %{_libdir}/libquazip1-qt5.so.%{version} %files qt5-devel %doc doc/html %{_includedir}/QuaZip-Qt5-%{version}/ %{_libdir}/libquazip1-qt5.so %{_libdir}/cmake/QuaZip-Qt5-%{version}/ %{_libdir}/pkgconfig/quazip1-qt5.pc %if %{with mingw} %files -n mingw32-%{name}-qt5 %license COPYING %{mingw32_bindir}/libquazip1-qt5.dll %{mingw32_includedir}/QuaZip-Qt5-%{version}/ %{mingw32_libdir}/libquazip1-qt5.dll.a %{mingw32_libdir}/pkgconfig/quazip1-qt5.pc %{mingw32_libdir}/cmake/QuaZip-Qt5-%{version}/ %files -n mingw64-%{name}-qt5 %license COPYING %{mingw64_bindir}/libquazip1-qt5.dll %{mingw64_includedir}/QuaZip-Qt5-%{version}/ %{mingw64_libdir}/libquazip1-qt5.dll.a %{mingw64_libdir}/pkgconfig/quazip1-qt5.pc %{mingw64_libdir}/cmake/QuaZip-Qt5-%{version}/ %endif %endif %if %{with qt6} %files qt6 %doc NEWS.txt README.md %license COPYING %{_libdir}/libquazip1-qt6.so.1.7 %{_libdir}/libquazip1-qt6.so.%{version} %files qt6-devel %doc doc/html %{_includedir}/QuaZip-Qt6-%{version}/ %{_libdir}/libquazip1-qt6.so %{_libdir}/cmake/QuaZip-Qt6-%{version}/ %{_libdir}/pkgconfig/quazip1-qt6.pc %if %{with mingw} %files -n mingw32-%{name}-qt6 %license COPYING %{mingw32_bindir}/libquazip1-qt6.dll %{mingw32_includedir}/QuaZip-Qt6-%{version}/ %{mingw32_libdir}/libquazip1-qt6.dll.a %{mingw32_libdir}/pkgconfig/quazip1-qt6.pc %{mingw32_libdir}/cmake/QuaZip-Qt6-%{version}/ %files -n mingw64-%{name}-qt6 %license COPYING %{mingw64_bindir}/libquazip1-qt6.dll %{mingw64_includedir}/QuaZip-Qt6-%{version}/ %{mingw64_libdir}/libquazip1-qt6.dll.a %{mingw64_libdir}/pkgconfig/quazip1-qt6.pc %{mingw64_libdir}/cmake/QuaZip-Qt6-%{version}/ %endif %endif %changelog ## START: Generated by rpmautospec * Mon Jun 01 2026 Sandro Mani - 1.7.1-1 - Update to 1.7.1 * Thu May 28 2026 Sandro Mani - 1.7.0-3 - Make mingw packages noarch * Thu May 28 2026 Sandro Mani - 1.7.0-2 - Enable mingw builds on fedora * Wed May 27 2026 Sandro Mani - 1.7.0-1 - Update to 1.7.0 * Fri Feb 20 2026 Ondrej Mosnáček - 1.4-15 - Don't build Qt5 packages in EPEL10 * Thu Feb 19 2026 Yaakov Selkowitz - 1.4-14 - Disable qt5 for EPEL 11 * Thu Feb 19 2026 Ondrej Mosnáček - 1.4-13 - Enable Qt6 packages on EPEL 9 and prepare for EPEL 10 * Sat Jan 17 2026 Fedora Release Engineering - 1.4-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Jul 25 2025 Fedora Release Engineering - 1.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sat Jan 18 2025 Fedora Release Engineering - 1.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Wed Sep 04 2024 Miroslav Suchý - 1.4-9 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 1.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 1.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri May 05 2023 Nicolas Chauvet - 1.4-4 - Add bzip2-devel * Thu May 04 2023 Nicolas Chauvet - 1.4-3 - Fixup soversion * Thu May 04 2023 Nicolas Chauvet - 1.4-2 - Update quazip soversion * Thu May 04 2023 Nicolas Chauvet - 1.4-1 - Update to 1.4 * Sat Mar 25 2023 topazus - 1.3-10 - switch to %%ctest macro * Sat Mar 25 2023 topazus - 1.3-9 - Remove ldconfig scriptlets * Sat Mar 25 2023 topazus - 1.3-8 - CMake do out-of-source builds by default * Fri Jan 20 2023 Fedora Release Engineering - 1.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Sep 01 2022 Ondrej Mosnáček - 1.3-6 - Ship quazip1-qt6.pc in the devel package - Resolves: rhbz#2123295 * Thu Sep 01 2022 Ondrej Mosnáček - 1.3-5 - Switch to rpmautospec * Sat Jul 23 2022 Fedora Release Engineering - 1.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Apr 18 2022 Rex Dieter 1.3-2 - track library sonames explicitly * Sun Apr 17 2022 Ondrej Mosnacek - 1.3-1 - Update to 1.3 - Resolves: rhbz#2075993 * Sun Mar 06 2022 Ondrej Mosnacek - 1.2-3 - Build Qt6 subpackages on s390x * Fri Jan 21 2022 Fedora Release Engineering - 1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Nov 14 2021 Fedora Release Monitoring - 1.2-1 - Update to 1.2 (#2023014) * Tue Sep 14 2021 Ondrej Mosnacek - 1.1-3 - Fix symlink-directory conflict on upgrade * Thu Aug 19 2021 Ondrej Mosnacek - 1.1-2 - Add Qt6 subpackages * Sat Jul 31 2021 Ondrej Mosnacek - 1.1-1 - Update to 1.1 - Resolves: rhbz#1895170 * Fri Jul 23 2021 Fedora Release Engineering - 0.7.6-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.7.6-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 0.7.6-9 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.7.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Mar 04 2020 Sandro Mani - 0.7.6-7 - Fix cmake module install path * Thu Jan 30 2020 Fedora Release Engineering - 0.7.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Oct 21 2019 Felipe Borges - 0.7.6-5 - Add patch to fix FindQuaZip.cmake install path * Fri Jul 26 2019 Fedora Release Engineering - 0.7.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Mar 26 2019 Nicolas Chauvet - 0.7.6-3 - Add zlib-devel - rhbz#1634468 * Sat Feb 02 2019 Fedora Release Engineering - 0.7.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jul 17 2018 Nicolas Chauvet - 0.7.6-1 - Update to 0.7.6 * Sat Jul 14 2018 Fedora Release Engineering - 0.7.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 0.7.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.7.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.7.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Feb 13 2017 Nicolas Chauvet - 0.7.3-1 - Update to 0.7.3 * Sat Feb 11 2017 Fedora Release Engineering - 0.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Apr 12 2016 Nicolas Chauvet - 0.7.2-1 - Update to 0.7.2 - Add patch to fix build with qt5 (disable static version) * Thu Feb 04 2016 Fedora Release Engineering - 0.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Apr 19 2015 Rex Dieter 0.7.1-2 - quazip qt5 support (#1197484) * Thu Jan 08 2015 Nicolas Chauvet - 0.7.1-1 - Update to 0.7.1 * Sun Aug 17 2014 Fedora Release Engineering - 0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Tue Jul 29 2014 Nicolas Chauvet - 0.7-1 - Update to 0.7.0 * Sun Jun 08 2014 Fedora Release Engineering - 0.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Feb 12 2014 Nicolas Chauvet - 0.6.2-1 - Update to 0.6.2 * Sun Jan 26 2014 Nicolas Chauvet - 0.6.1-1 - Update to 0.6.1 - Clean spec file * Sun Aug 04 2013 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sun Mar 03 2013 Nicolas Chauvet - 0.5.1-1 - Update to 0.5.1 * Sun Sep 09 2012 Nicolas Chauvet - 0.5-1 - Update to 0.5 * Sat Jul 21 2012 Fedora Release Engineering - 0.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jan 16 2012 Nicolas Chauvet - 0.4.4-1 - Update to 0.4.4 * Sat Jan 14 2012 Fedora Release Engineering - 0.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sat Dec 17 2011 Nicolas Chauvet - 0.4.3-1 - Update to 0.4.3 * Fri Aug 19 2011 Nicolas Chauvet - 0.4.2-1 - Update to 0.4.2 - Rebase ld patch * Mon Jul 25 2011 Nicolas Chauvet - 0.4.1-1 - Update to 0.4.1 * Tue Feb 08 2011 Fedora Release Engineering - 0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Jul 24 2010 Chen Lei - 0.3-2 - add BR:graphviz for building apidocs * Sat Jul 24 2010 Chen Lei - 0.3-1 - update to 0.3 * Wed Feb 3 2010 Chen Lei - 0.2.3-5 - quazip-devel must Requires minizip-devel * Sun Jan 31 2010 Chen Lei - 0.2.3-4 - change license to GPLv2+ or LGPLv2+ * Sun Jan 31 2010 Chen Lei - 0.2.3-3 - use %%doc for packaging documentations * Sun Jan 31 2010 Chen Lei - 0.2.3-2 - use system-wide minizip library * Sun Jan 31 2010 Chen Lei - 0.2.3-1 - initial rpm build ## END: Generated by rpmautospec