diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ca372e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pori-0.0.0.crate diff --git a/rust-pori.spec b/rust-pori.spec new file mode 100644 index 0000000..dc80cdd --- /dev/null +++ b/rust-pori.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate pori + +Name: rust-pori +Version: 0.0.0 +Release: %autorelease +Summary: Parser state and error extensions for nom + +License: MIT +URL: https://crates.io/crates/pori +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Parser state and error extensions for nom.} + +%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}/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..7498d8f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pori-0.0.0.crate) = 6fbc9e74fde5229f57a91ca48799cc0de8febb47a5c636ed54ddb64c71d793518692a664ace776f9407004809e69c11fe2f5fa68aa98332885febb715b34a5a3