## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 4; 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 21 %bcond_without check %global debug_package %{nil} %global crate bitflags Name: rust-%{crate} Version: 1.3.2 Release: %autorelease Summary: Macro to generate structures which behave like bitflags # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/bitflags Source: %{crates_source} # Initial patched metadata # * drop dependencies on compiler internals Patch0: bitflags-fix-metadata.diff # * upstream patch to fix building tests with trybuild >= 1.0.57 Patch1: https://github.com/bitflags/bitflags/commit/44c7063.patch ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Macro to generate structures which behave like bitflags.} %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-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/README.md %{crate_instdir}/ %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}+example_generated-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+example_generated-devel %{_description} This package contains library source intended for building other packages which use the "example_generated" feature of the "%{crate}" crate. %files -n %{name}+example_generated-devel %ghost %{crate_instdir}/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 # * skip trybuild tests that are broken due to cosmetic string differences %cargo_test -- -- --skip fail %endif %changelog * Wed Jun 01 2022 Fabio Valentini 1.3.2-4 - Skip trybuild tests that are broken due to cosmetic string differences * Mon May 09 2022 Fabio Valentini 1.3.2-3 - Fix compilation of test suite with trybuild >= 1.0.57 * Fri Jan 21 2022 Fedora Release Engineering 1.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Sep 27 2021 Fabio Valentini 1.3.2-1 - Update to version 1.3.2; Fixes RHBZ#1993743 * Fri Aug 13 2021 Fabio Valentini 1.3.1-1 - Update to version 1.3.1; Fixes RHBZ#1992891 * Fri Jul 23 2021 Fedora Release Engineering - 1.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Nov 15 2019 Josh Stone - 1.2.1-1 - Update to 1.2.1 * Thu Sep 26 13:14:26 CEST 2019 Igor Gnatenko - 1.2.0-1 - Update to 1.2.0 * Fri Jul 26 2019 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jun 19 23:10:21 CEST 2019 Igor Gnatenko - 1.1.0-3 - Regenerate * Sat Jun 08 23:44:48 CEST 2019 Igor Gnatenko - 1.1.0-2 - Regenerate * Sat Jun 08 10:08:10 CEST 2019 Igor Gnatenko - 1.1.0-1 - Update to 1.1.0 * Thu May 02 10:04:24 CEST 2019 Igor Gnatenko - 1.0.5-1 - Update to 1.0.5 * Sat Feb 02 2019 Fedora Release Engineering - 1.0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Oct 26 2018 Igor Gnatenko - 1.0.4-3 - Adapt to new packaging * Sun Oct 07 2018 Igor Gnatenko - 1.0.4-2 - Run tests in infrastructure * Thu Aug 30 2018 Josh Stone - 1.0.4-1 - Update to 1.0.4 * Sat Jul 14 2018 Fedora Release Engineering - 1.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed May 02 2018 Josh Stone - 1.0.3-1 - Update to 1.0.3 * Fri Apr 27 2018 Josh Stone - 1.0.2-1 - Update to 1.0.2 * Fri Feb 09 2018 Fedora Release Engineering - 1.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Igor Gnatenko - 1.0.1-2 - Rebuild for rust-packaging v5 * Mon Nov 13 2017 Igor Gnatenko - 1.0.1-1 - Update to 1.0.1 * Sat Nov 04 2017 Igor Gnatenko - 1.0.0-1 - Update to 1.0.0 * Thu Jun 15 2017 Igor Gnatenko - 0.9.1-1 - Update to 0.9.1 * Wed Jun 14 2017 Igor Gnatenko - 0.8.2-2 - Port to use rust-packaging * Thu Mar 30 2017 Igor Gnatenko - 0.8.2-1 - Update to 0.8.2 * Thu Feb 16 2017 Igor Gnatenko - 0.8.0-1 - Update to 0.8.0 * Sun Feb 12 2017 Igor Gnatenko - 0.7.0-1 - Initial package