diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..80332a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rmpv-1.0.0.crate diff --git a/rust-rmpv.spec b/rust-rmpv.spec new file mode 100644 index 0000000..cde0220 --- /dev/null +++ b/rust-rmpv.spec @@ -0,0 +1,107 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate rmpv + +Name: rust-%{crate} +Version: 1.0.0 +Release: %autorelease +Summary: Value variant for RMP + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/rmpv +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Value variant for RMP.} + +%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 +%{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}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde_bytes-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde_bytes-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde_bytes" feature of the "%{crate}" crate. + +%files -n %{name}+serde_bytes-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+with-serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+with-serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "with-serde" feature of the "%{crate}" crate. + +%files -n %{name}+with-serde-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..714a8f9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rmpv-1.0.0.crate) = 7d10560603064d50e03b439e8f0956d9ff01ae15bc3cdb8980cf9de7d5b52927903e7dbaa84357d658241ada6282be209ef4f0cefe92dd34079db4b891761665