commit 03fafddeddb3b9db3a7863aea4f304f04265e63c Author: MSVSphere Packaging Team Date: Fri Dec 20 15:19:04 2024 +0300 import rust-derive-new-0.6.0-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..56c9e37 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/derive-new-0.6.0.crate diff --git a/.rust-derive-new.metadata b/.rust-derive-new.metadata new file mode 100644 index 0000000..fa9f189 --- /dev/null +++ b/.rust-derive-new.metadata @@ -0,0 +1 @@ +07136cddaa92c2e4c4492b7d1d3b08f9b7cd233a SOURCES/derive-new-0.6.0.crate diff --git a/SPECS/rust-derive-new.spec b/SPECS/rust-derive-new.spec new file mode 100644 index 0000000..0bdf67a --- /dev/null +++ b/SPECS/rust-derive-new.spec @@ -0,0 +1,126 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## 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 + +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate derive-new + +Name: rust-derive-new +Version: 0.6.0 +Release: %autorelease +Summary: Derive simple constructor functions for structs and enums + +License: MIT +URL: https://crates.io/crates/derive-new +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +`#[derive(new)]` implements simple constructor functions for structs and +enums.} + +%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}/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}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-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.6.0-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Tue Sep 24 2024 Fabio Valentini - 0.6.0-1 +- Update to version 0.6.0 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.5.9-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.5.9-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.5.9-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed May 17 2023 Fabio Valentini - 0.5.9-7 +- Regenerate with rust2rpm v24 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.5.9-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 0.5.9-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.5.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jul 27 2021 Fedora Release Engineering - 0.5.9-2 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Feb 09 12:14:25 EST 2021 Sohan Kunkerkar - 0.5.9-1 +- Initial package + +## END: Generated by rpmautospec