diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c6a78c5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pipe-trait-0.3.2.crate diff --git a/rust-pipe-trait.spec b/rust-pipe-trait.spec new file mode 100644 index 0000000..c3d629c --- /dev/null +++ b/rust-pipe-trait.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate pipe-trait + +Name: rust-pipe-trait +Version: 0.3.2 +Release: %autorelease +Summary: Make it possible to chain regular functions + +License: MIT +URL: https://crates.io/crates/pipe-trait +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Make it possible to chain regular functions.} + +%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.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_no_tilde} -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..dcebec1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pipe-trait-0.3.2.crate) = 1b01821f625b17cefc0ec5a05c5da57b1e07aab5756898442d4648c205e1353fe28f0a2dd02be6ae4dbe07c04ee0abea298aadae60d0ec980c11bca050a55bd2