diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-09-18 15:14:54 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-09-18 15:14:54 +0000 |
commit | 52b2b1790d9a20b3893e4dba4d5ef2c6680966d6 (patch) | |
tree | e700adcd54852ab4ffac35af1ee224be337b1c93 | |
parent | 421b21922737586fea3ba4ab75dd171d36fc83b2 (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rust-rocket_codegen.spec | 70 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 72 insertions, 0 deletions
@@ -0,0 +1 @@ +/rocket_codegen-0.5.1.crate diff --git a/rust-rocket_codegen.spec b/rust-rocket_codegen.spec new file mode 100644 index 0000000..2129935 --- /dev/null +++ b/rust-rocket_codegen.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 26 +# * can't find crate for `rocket` +%bcond_with check +%global debug_package %{nil} + +%global crate rocket_codegen + +Name: rust-rocket_codegen +Version: 0.5.1 +Release: %autorelease +Summary: Procedural macros for the Rocket web framework + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/rocket_codegen +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Procedural macros for the Rocket web framework.} + +%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}/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 +%autochangelog @@ -0,0 +1 @@ +122f1b5065cec611bc8dae4713f00ef0 rocket_codegen-0.5.1.crate |