commit 134745766f6d09fb78d8d380fa350e39aa2247e5 Author: MSVSphere Packaging Team Date: Fri Dec 20 15:04:32 2024 +0300 import rust-cfg_aliases-0.2.1-2.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b48a20 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cfg_aliases-0.2.1.crate diff --git a/.rust-cfg_aliases.metadata b/.rust-cfg_aliases.metadata new file mode 100644 index 0000000..c389129 --- /dev/null +++ b/.rust-cfg_aliases.metadata @@ -0,0 +1 @@ +434f3d15e4c7d9999658931ba064148284a71d62 SOURCES/cfg_aliases-0.2.1.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..6e05f31 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Tiny utility to help with long winded #[cfg()] checks" + diff --git a/SPECS/rust-cfg_aliases.spec b/SPECS/rust-cfg_aliases.spec new file mode 100644 index 0000000..d9622ea --- /dev/null +++ b/SPECS/rust-cfg_aliases.spec @@ -0,0 +1,99 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.1) +## 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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate cfg_aliases + +Name: rust-cfg_aliases +Version: 0.2.1 +Release: %autorelease +Summary: Tiny utility to help with long winded #[cfg()] checks + +License: MIT +URL: https://crates.io/crates/cfg_aliases +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A tiny utility to help save you a lot of effort with long winded +`#[cfg()]` checks.} + +%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 +%license %{crate_instdir}/NOTICES.md +%doc %{crate_instdir}/NOTICES.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 + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.2.1-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Jun 13 2024 Fabio Valentini - 0.2.1-1 +- Update to version 0.2.1; Fixes RHBZ#2255246 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Apr 26 2023 Aleksei Bavshin - 0.1.1-1 +- Initial import (rhbz#2183859) +## END: Generated by rpmautospec