commit 1b91a7e8bafe0f34c9e838d0bde87e3698d6afb1 Author: MSVSphere Packaging Team Date: Fri Dec 20 14:59:07 2024 +0300 import rust-build-context-0.1.3-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d1e75d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/build-context-0.1.3.crate diff --git a/.rust-build-context.metadata b/.rust-build-context.metadata new file mode 100644 index 0000000..344167f --- /dev/null +++ b/.rust-build-context.metadata @@ -0,0 +1 @@ +3bd1f0efb3d019632397d97b86a661e379e08296 SOURCES/build-context-0.1.3.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..8b588df --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Make build environment/target information available as constants" + diff --git a/SPECS/rust-build-context.spec b/SPECS/rust-build-context.spec new file mode 100644 index 0000000..09fa3ac --- /dev/null +++ b/SPECS/rust-build-context.spec @@ -0,0 +1,99 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## 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 build-context + +Name: rust-build-context +Version: 0.1.3 +Release: %autorelease +Summary: Make build environment/target information available as constants + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/build-context +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Make build environment/target information available as constants in +normal libraries and binaries.} + +%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}/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.1.3-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Mon Sep 16 2024 Fabio Valentini - 0.1.3-1 +- Update to version 0.1.3; Fixes RHBZ#2312231 + +* Fri Jul 19 2024 Fedora Release Engineering - 0.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Apr 16 2024 Fabio Valentini - 0.1.2-1 +- Update to version 0.1.2; Fixes RHBZ#2274920 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Sep 13 2023 Fabio Valentini - 0.1.1-1 +- Initial import (#2236540) +## END: Generated by rpmautospec