commit 9990a2a63738cc99d516d239c8a34f17d11be81c Author: MSVSphere Packaging Team Date: Fri Dec 20 18:12:03 2024 +0300 import rust-zerofrom-0.1.5-1.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31cf659 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/zerofrom-0.1.5.crate diff --git a/.rust-zerofrom.metadata b/.rust-zerofrom.metadata new file mode 100644 index 0000000..bd328ef --- /dev/null +++ b/.rust-zerofrom.metadata @@ -0,0 +1 @@ +2a159fb66fb938364e033c00b8b753e8f7906931 SOURCES/zerofrom-0.1.5.crate diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..9096586 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# rust-zerofrom + +The rust-zerofrom package diff --git a/SOURCES/rust-zerofrom.rplintrc b/SOURCES/rust-zerofrom.rplintrc new file mode 100644 index 0000000..0244557 --- /dev/null +++ b/SOURCES/rust-zerofrom.rplintrc @@ -0,0 +1,2 @@ +# Feature metapackages are not supposed to have documentation! +addFilter(r"\+[-_\w]+-devel.noarch: W: no-documentation") diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..90bf329 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,6 @@ +[package] +# The rust2rpm-generated summary would be "Trait for constructing" because +# rust2rpm attempts to remove the crate name from the beginning of the summary. +# In this case, the result doesn’t make much sense, so we restore the original +# summary text. +summary = "ZeroFrom trait for constructing" diff --git a/SPECS/rust-zerofrom.spec b/SPECS/rust-zerofrom.spec new file mode 100644 index 0000000..1e1dcd3 --- /dev/null +++ b/SPECS/rust-zerofrom.spec @@ -0,0 +1,111 @@ +## 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 zerofrom + +Name: rust-zerofrom +Version: 0.1.5 +Release: %autorelease +Summary: ZeroFrom trait for constructing + +License: Unicode-3.0 +URL: https://crates.io/crates/zerofrom +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +ZeroFrom trait for constructing.} + +%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}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+derive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+derive-devel %{_description} + +This package contains library source intended for building other packages which +use the "derive" feature of the "%{crate}" crate. + +%files -n %{name}+derive-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.5-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Nov 23 2024 Benjamin A. Beasley - 0.1.5-1 +- Update to 0.1.5 (close RHBZ#2328449) + +* Tue Sep 10 2024 Benjamin A. Beasley - 0.1.4-1 +- Initial package (close RHBZ#2310860) +## END: Generated by rpmautospec