diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..17d3211 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rxml_validation-0.8.2.crate diff --git a/rust-rxml_validation.spec b/rust-rxml_validation.spec new file mode 100644 index 0000000..537a350 --- /dev/null +++ b/rust-rxml_validation.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate rxml_validation + +Name: rust-rxml_validation +Version: 0.8.2 +Release: %autorelease +Summary: Plumbing crate for rxml and rxml_proc crates + +License: MIT +URL: https://crates.io/crates/rxml_validation +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Plumbing crate for rxml and rxml_proc crates.} + +%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}/COPYING +%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..cae31de --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rxml_validation-0.8.2.crate) = bb856f290e77442233244d40ccee3a0ce8c775204e60f57f0bb52ba9d810623370bec74ccef285533ff01bce25565b30ab0b5edd75580b59277ce9ce4f130123