diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad150b4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/maybe-async-0.2.7.crate diff --git a/README.md b/README.md deleted file mode 100644 index 5f655c9..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-maybe-async - -The rust-maybe-async package diff --git a/rust-maybe-async.spec b/rust-maybe-async.spec new file mode 100644 index 0000000..2c5dd2a --- /dev/null +++ b/rust-maybe-async.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate maybe-async + +Name: rust-maybe-async +Version: 0.2.7 +Release: %autorelease +Summary: Procedural macro to unify SYNC and ASYNC implementation + +License: MIT +URL: https://crates.io/crates/maybe-async +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A procedural macro to unify SYNC and ASYNC implementation.} + +%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}/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 + +%package -n %{name}+is_sync-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+is_sync-devel %{_description} + +This package contains library source intended for building other packages which +use the "is_sync" feature of the "%{crate}" crate. + +%files -n %{name}+is_sync-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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..a450847 --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Procedural macro to unify SYNC and ASYNC implementation diff --git a/sources b/sources new file mode 100644 index 0000000..79254da --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (maybe-async-0.2.7.crate) = ef5f4e705def3b188ad2dd4be33dbb2c3f28d08855a1cff0aabcfd63fe22d1ba99e6cb7d10a43bde3bb5d30c2fd98dd2c9172d2e0a2cf877051b5117f0e7d262