## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by rust2rpm 20 # * tests can only be run in-tree %bcond_with check %global debug_package %{nil} %global crate cargo # Drop unnecessary debuginfo generation to fix armv7hl OOM problems %global rustflags_debuginfo 0 Name: rust-%{crate} Version: 0.59.0 Release: %autorelease Summary: Package manager for Rust # Upstream license specification: MIT OR Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/cargo Source: %{crates_source} # Initial patched metadata # * drop windows-specific dependencies # * drop dependencies on compiler internals # * drop feature for vendored OpenSSL # * drop cargo binary (shipped with rust) # * downgrade libgit2-sys and git2 dependencies Patch0: cargo-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21-2 %global _description %{expand: Package manager for Rust.} %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 LICENSE-APACHE LICENSE-MIT %doc CHANGELOG.md CONTRIBUTING.md README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/{ci/,publish.py,triagebot.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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+deny-warnings-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+deny-warnings-devel %{_description} This package contains library source intended for building other packages which use the "deny-warnings" feature of the "%{crate}" crate. %files -n %{name}+deny-warnings-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+openssl-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+openssl-devel %{_description} This package contains library source intended for building other packages which use the "openssl" feature of the "%{crate}" crate. %files -n %{name}+openssl-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+pretty-env-logger-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pretty-env-logger-devel %{_description} This package contains library source intended for building other packages which use the "pretty-env-logger" feature of the "%{crate}" crate. %files -n %{name}+pretty-env-logger-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+pretty_env_logger-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pretty_env_logger-devel %{_description} This package contains library source intended for building other packages which use the "pretty_env_logger" feature of the "%{crate}" crate. %files -n %{name}+pretty_env_logger-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Tue Feb 22 2022 Zbigniew Jędrzejewski-Szmek 0.59.0-3 - Build at debuginfo level 1 again * Tue Feb 22 2022 Fabio Valentini 0.59.0-2 - Work around RUSTFLAGS no longer being set in .cargo/config * Mon Feb 21 2022 Fabio Valentini 0.59.0-1 - Update to version 0.59.0; Fixes RHBZ#2002775 * Fri Jan 21 2022 Fedora Release Engineering 0.55.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Aug 26 2021 Fabio Valentini 0.55.0-2 - Drop unnecessary debuginfo generation to fix armv7hl OOM problems * Thu Aug 26 2021 Fabio Valentini 0.55.0-1 - Update to version 0.55.0; Fixes RHBZ#>1987571 * Fri Jul 23 2021 Fedora Release Engineering - 0.51.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Mar 29 2021 Fabio Valentini - 0.51.0-1 - Update to version 0.51.0. * Wed Jan 27 2021 Fedora Release Engineering - 0.49.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 28 13:27:54 CET 2020 Igor Raits - 0.49.0-2 - Rebuild * Sun Nov 29 2020 Fabio Valentini - 0.49.0-1 - Update to version 0.49.0. - Fixes RHBZ#1858031 * Wed Jul 29 2020 Fedora Release Engineering - 0.45.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 19 2020 Josh Stone - 0.45.1-1 - Update to 0.45.1 * Fri Jun 05 2020 Josh Stone - 0.45.0-1 - Update to 0.45.0 * Thu May 21 2020 Josh Stone - 0.44.1-2 - Bump to im-rc 15 * Thu May 07 2020 Josh Stone - 0.44.1-1 - Update to 0.44.1 * Thu Apr 23 2020 Josh Stone - 0.44.0-1 - Update to 0.44.0 * Thu Mar 19 12:38:02 CET 2020 Igor Raits - 0.43.1-2 - Update git2 dependencies * Tue Mar 17 2020 Josh Stone - 0.43.1-1 - Update to 0.43.1 * Thu Mar 12 2020 Josh Stone - 0.43.0-1 - Update to 0.43.0 * Thu Mar 05 2020 Josh Stone - 0.42.0-3 - Bump to rustfix 0.5 * Tue Mar 03 2020 Josh Stone - 0.42.0-2 - Bump git2 dependencies * Mon Mar 02 2020 Josh Stone - 0.42.0-1 - Update to 0.42.0 * Thu Jan 30 2020 Fedora Release Engineering - 0.40.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Dec 07 2019 Josh Stone - 0.40.0-1 - Update to 0.40.0 * Fri Jul 26 2019 Fedora Release Engineering - 0.36.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jun 07 2019 Josh Stone - 0.36.0-1 - Update to 0.36.0 * Wed Apr 03 2019 Josh Stone - 0.32.0-4 - Bump git2 and git2-curl dependencies * Sat Feb 02 2019 Fedora Release Engineering - 0.32.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Dec 15 2018 Igor Gnatenko - 0.32.0-2 - Bump crossbeam-utils to 0.6 * Thu Dec 06 2018 Josh Stone - 0.32.0-1 - Update to 0.32.0 * Sat Nov 17 2018 Igor Gnatenko - 0.31.0-1 - Update to 0.31.0 * Tue Nov 13 2018 Josh Stone - 0.30.0-2 - Adapt to new packaging * Mon Sep 10 2018 Igor Gnatenko - 0.29.0-2 - Switch to crossbeam-utils * Sat Aug 04 2018 Igor Gnatenko - 0.29.0-1 - Update to 0.29.0 * Sun Jul 22 2018 Igor Gnatenko - 0.28.0-1 - Initial package