diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d34d673 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/thiserror-impl-1.0.69.crate diff --git a/README.md b/README.md deleted file mode 100644 index 42fd609..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-thiserror-impl1 - -The rust-thiserror-impl1 package diff --git a/rust-thiserror-impl1.spec b/rust-thiserror-impl1.spec new file mode 100644 index 0000000..0bc1b89 --- /dev/null +++ b/rust-thiserror-impl1.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 27 +%bcond check 1 +%global debug_package %{nil} + +%global crate thiserror-impl + +Name: rust-thiserror-impl1 +Version: 1.0.69 +Release: %autorelease +Summary: Implementation detail of the thiserror crate + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/thiserror-impl +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Implementation detail of the `thiserror` crate.} + +%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 +%{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 diff --git a/sources b/sources new file mode 100644 index 0000000..d3b3988 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (thiserror-impl-1.0.69.crate) = 579eb796c8885feb01d27638862823acd96c79440655bb444c3445ac00121852603396ce7439aed617c0a0ac69f62102167fde5845411c906997574a46d6d9e3