diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2cdd172 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-path-0.8.1.crate diff --git a/rust-gix-path.spec b/rust-gix-path.spec new file mode 100644 index 0000000..82e8ec7 --- /dev/null +++ b/rust-gix-path.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-path + +Name: rust-gix-path +Version: 0.8.1 +Release: %autorelease +Summary: WIP crate of the gitoxide project dealing paths and their conversions + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-path +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A WIP crate of the gitoxide project dealing paths and their conversions.} + +%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 +%{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..36090b5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-path-0.8.1.crate) = a17b6a5efe0f90076f66374f37e3e9bb5ddc9328170f71aed8d1bbdef4e600493cd9f189ea6227a667e9581d9a80c8fa7e28209013012a5aebdeb0d86256786d