diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c76c984 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/event-listener-2.5.3.crate diff --git a/README.md b/README.md deleted file mode 100644 index 0cbac3e..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-event-listener2 - -The rust-event-listener2 package diff --git a/rust-event-listener2.spec b/rust-event-listener2.spec new file mode 100644 index 0000000..5b24396 --- /dev/null +++ b/rust-event-listener2.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate event-listener + +Name: rust-event-listener2 +Version: 2.5.3 +Release: %autorelease +Summary: Notify async tasks or threads + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/event-listener +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Notify async tasks or threads.} + +%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}/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 + +%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..457f235 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (event-listener-2.5.3.crate) = ddd67c1139ffe2aba95d763b73db0e2a9985dd2e57cf8f72030047d53d46d833df4b4192730cf0af4e060ce52e4f2df23aab6509abb94a6cd02e0d8cc3559d22