## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 # Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate zip Name: rust-zip Version: 7.0.0 Release: %autorelease Summary: Library to support the reading and writing of zip files License: MIT URL: https://crates.io/crates/zip Source: %{crates_source} # * A copy of the GitHub source archive for zip-rs/zip2, with everything but the # test/data/ subdirectory removed, and additionally, from which test files # with known license issues have been removed. Fortunately, no removed test # files are required for any of the tests that are present in the published # crates. Source10: zip2-%{version}-filtered.tar.gz # * Script used to generate Source11: ./get_test_data.sh %%{version} Source11: get_test_data.sh # Automatically generated patch to strip dependencies and normalize metadata Patch: zip-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * Drop unused benchmark-only / example-only dev-dependencies # * Remove the wasm_js feature from the getrandom dev-dependency. Our # rust-getrandom does not provide this feature; see also “Unconditional use of # getrandom’s wasm_js feature is counter to upstream guidance,” # https://github.com/zip-rs/zip2/issues/336. Upstream fixed the issue for the # dependency since 4.3.0, but not yet for the dev-dependency. # * Patch out the nt-time features; rust-nt-time not yet packaged # * Patch out ppmd support, even though it is in the default features. While the # README.md for the ppmd-rust crate says “The code in this crate is in the # public domain as the original code by their authors,” Cargo.toml lists the # license as CC0-1.0, which is not precisely equivalent to the public-domain # declaration in the README and is not-allowed for code in Fedora. # * Patch out the deflate-flate2-zlib-ng-compat feature, which requires # flate2/zlib-ng-compat, not packaged. # * Unpin generic-array; see https://github.com/zip-rs/zip2/pull/458 for the # upstream rationale, but we cannot use an old version and are not so # concerned about deprecation warnings anyway. # * Update constant_time_eq from 0.3.1 to 0.4.2. Downstream-only for MSRV # reasons. Patch: zip-fix-metadata.diff # * Downstream-only: patch out tests that would need omitted test files to # compile Patch10: zip-6.0.0-omitted-test-files.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Library to support the reading and writing of zip files.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/SECURITY.md %{crate_instdir}/ %exclude %{crate_instdir}/cliff.toml %exclude %{crate_instdir}/pull_request_template.md %exclude %{crate_instdir}/release-plz.toml %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+_all-features-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+_all-features-devel %{_description} This package contains library source intended for building other packages which use the "_all-features" feature of the "%{crate}" crate. %files -n %{name}+_all-features-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+_deflate-any-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+_deflate-any-devel %{_description} This package contains library source intended for building other packages which use the "_deflate-any" feature of the "%{crate}" crate. %files -n %{name}+_deflate-any-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+aes-crypto-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+aes-crypto-devel %{_description} This package contains library source intended for building other packages which use the "aes-crypto" feature of the "%{crate}" crate. %files -n %{name}+aes-crypto-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bitstream-io-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bitstream-io-devel %{_description} This package contains library source intended for building other packages which use the "bitstream-io" feature of the "%{crate}" crate. %files -n %{name}+bitstream-io-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bzip2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bzip2-devel %{_description} This package contains library source intended for building other packages which use the "bzip2" feature of the "%{crate}" crate. %files -n %{name}+bzip2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+chrono-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chrono-devel %{_description} This package contains library source intended for building other packages which use the "chrono" feature of the "%{crate}" crate. %files -n %{name}+chrono-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+deflate-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deflate-devel %{_description} This package contains library source intended for building other packages which use the "deflate" feature of the "%{crate}" crate. %files -n %{name}+deflate-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+deflate-flate2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deflate-flate2-devel %{_description} This package contains library source intended for building other packages which use the "deflate-flate2" feature of the "%{crate}" crate. %files -n %{name}+deflate-flate2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+deflate-flate2-zlib-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deflate-flate2-zlib-devel %{_description} This package contains library source intended for building other packages which use the "deflate-flate2-zlib" feature of the "%{crate}" crate. %files -n %{name}+deflate-flate2-zlib-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+deflate-flate2-zlib-ng-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deflate-flate2-zlib-ng-devel %{_description} This package contains library source intended for building other packages which use the "deflate-flate2-zlib-ng" feature of the "%{crate}" crate. %files -n %{name}+deflate-flate2-zlib-ng-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+deflate-flate2-zlib-rs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deflate-flate2-zlib-rs-devel %{_description} This package contains library source intended for building other packages which use the "deflate-flate2-zlib-rs" feature of the "%{crate}" crate. %files -n %{name}+deflate-flate2-zlib-rs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+deflate-zopfli-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deflate-zopfli-devel %{_description} This package contains library source intended for building other packages which use the "deflate-zopfli" feature of the "%{crate}" crate. %files -n %{name}+deflate-zopfli-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+deflate64-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deflate64-devel %{_description} This package contains library source intended for building other packages which use the "deflate64" feature of the "%{crate}" crate. %files -n %{name}+deflate64-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+jiff-02-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+jiff-02-devel %{_description} This package contains library source intended for building other packages which use the "jiff-02" feature of the "%{crate}" crate. %files -n %{name}+jiff-02-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+legacy-zip-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+legacy-zip-devel %{_description} This package contains library source intended for building other packages which use the "legacy-zip" feature of the "%{crate}" crate. %files -n %{name}+legacy-zip-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+lzma-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+lzma-devel %{_description} This package contains library source intended for building other packages which use the "lzma" feature of the "%{crate}" crate. %files -n %{name}+lzma-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+time-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+time-devel %{_description} This package contains library source intended for building other packages which use the "time" feature of the "%{crate}" crate. %files -n %{name}+time-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unreserved-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unreserved-devel %{_description} This package contains library source intended for building other packages which use the "unreserved" feature of the "%{crate}" crate. %files -n %{name}+unreserved-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+xz-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+xz-devel %{_description} This package contains library source intended for building other packages which use the "xz" feature of the "%{crate}" crate. %files -n %{name}+xz-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zstd-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zstd-devel %{_description} This package contains library source intended for building other packages which use the "zstd" feature of the "%{crate}" crate. %files -n %{name}+zstd-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -a %build %cargo_build -a %install %cargo_install -a %if %{with check} %check # Extract test data (only) from the GitHub archive tar -xzvf '%{SOURCE10}' --strip-components=1 'zip2-%{version}/tests/data/' %cargo_test -a %endif %changelog ## START: Generated by rpmautospec * Fri Jan 09 2026 Benjamin A. Beasley - 7.0.0-2 - Update constant_time_eq from 0.3.1 to 0.4.2 * Thu Jan 08 2026 Benjamin A. Beasley - 7.0.0-1 - Update to version 7.0.0; Fixes RHBZ#2367905 * Sat Dec 20 2025 Benjamin A. Beasley - 6.0.0-1 - Update to version 6.0.0 * Tue Dec 16 2025 Benjamin A. Beasley - 3.0.0-3 - Allow bzip2 0.6 * Fri Jul 25 2025 Fedora Release Engineering - 3.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Fri May 16 2025 Benjamin A. Beasley - 3.0.0-1 - Update to version 3.0.0; Fixes RHBZ#2366379 * Fri Apr 11 2025 Benjamin A. Beasley - 2.6.1-1 - Update to version 2.6.1; Fixes RHBZ#2352783 * Fri Apr 11 2025 Benjamin A. Beasley - 2.6.0-1 - Update to version 2.6.0 * Fri Apr 11 2025 Benjamin A. Beasley - 2.5.0-1 - Update to version 2.5.0 * Fri Apr 11 2025 Benjamin A. Beasley - 2.4.2-1 - Update to version 2.4.2 * Fri Apr 11 2025 Benjamin A. Beasley - 2.4.1-1 - Update to version 2.4.1 * Fri Apr 11 2025 Benjamin A. Beasley - 2.4.0-1 - Update to version 2.4.0 * Fri Apr 11 2025 Benjamin A. Beasley - 2.3.0-1 - Update to version 2.3.0 * Thu Apr 10 2025 Benjamin A. Beasley - 2.2.3-7 - No longer relax the bzip2 dependency * Thu Apr 10 2025 Benjamin A. Beasley - 2.2.3-6 - Backport fix for s390x issues * Sat Mar 15 2025 Fabio Valentini - 2.2.3-5 - Minor rust2rpm config changes, don't rely on tomcli * Fri Mar 14 2025 Benjamin A. Beasley - 2.2.3-4 - Report and skip test failures on s390x * Fri Mar 14 2025 Benjamin A. Beasley - 2.2.3-3 - Conditionalize a zip64 doctest (fix i686) * Thu Mar 13 2025 Benjamin A. Beasley - 2.2.3-2 - Drop a patch that is no longer needed * Thu Mar 13 2025 Benjamin A. Beasley - 2.2.3-1 - Update to 2.2.3 (close RHBZ#2276230) * Thu Mar 13 2025 Benjamin A. Beasley - 2.2.2-1 - Update to 2.2.2 * Thu Mar 13 2025 Benjamin A. Beasley - 2.1.5-1 - Update to 2.1.5 * Thu Mar 13 2025 Benjamin A. Beasley - 2.1.4-1 - Update to 2.1.4 * Thu Mar 13 2025 Benjamin A. Beasley - 2.1.3-1 - Update to 2.1.3 * Thu Mar 13 2025 Benjamin A. Beasley - 2.1.0-2 - Maintain a list of *allowed* test data files * Thu Mar 13 2025 Benjamin A. Beasley - 2.1.0-1 - Update to 2.1.0 * Sun Jan 19 2025 Fedora Release Engineering - 0.6.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Sep 19 2024 Fabio Valentini - 0.6.6-8 - Bump pbkdf2 dependency from 0.11 to 0.12 * Thu Sep 19 2024 Fabio Valentini - 0.6.6-7 - Bump zstd dependency from 0.12 to 0.13 * Thu Sep 19 2024 Fabio Valentini - 0.6.6-6 - Drop unused, benchmark-only bencher dev-dependency * Sat Jul 20 2024 Fedora Release Engineering - 0.6.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jan 27 2024 Fedora Release Engineering - 0.6.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 06 2024 Michel Lind - 0.6.6-3 - Rebuilt for constant_time_eq 0.3 * Sat Jul 22 2023 Fedora Release Engineering - 0.6.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed May 17 2023 Fabio Valentini - 0.6.6-1 - Update to version 0.6.6; Fixes RHBZ#2195924 * Mon Apr 17 2023 Fabio Valentini - 0.6.4-1 - Update to version 0.6.4; Fixes RHBZ#2066114 * Sat Jan 21 2023 Fedora Release Engineering - 0.5.13-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 0.5.13-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 0.5.13-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.5.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sat Jun 05 2021 Fabio Valentini - 0.5.13-1 - Update to version 0.5.13. - Fixes RHBZ#1968045 * Wed Apr 21 2021 Fabio Valentini - 0.5.12-1 - Update to version 0.5.12. - Fixes RHBZ#1950461 * Mon Mar 01 2021 Fabio Valentini - 0.5.11-1 - Update to version 0.5.11. - Bump to bzip2 0.4. * Wed Jan 27 2021 Fedora Release Engineering - 0.5.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 07 2020 Fabio Valentini - 0.5.9-1 - Update to version 0.5.9. - Fixes RHBZ#1904876 * Sun Nov 08 2020 Fabio Valentini - 0.5.8-2 - Relax flate2 dependency. * Fri Sep 11 2020 Josh Stone - 0.5.8-1 - Update to 0.5.8 * Wed Jul 29 2020 Fedora Release Engineering - 0.5.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jun 27 2020 Michel Alexandre Salim - 0.5.6-1 - Update to 0.5.6 * Sat May 23 13:25:44 PDT 2020 Michel Alexandre Salim - 0.5.5-1 - Initial package ## END: Generated by rpmautospec