diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d0e1d42 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-revwalk-0.7.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index e7b94ee..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-revwalk - -The rust-gix-revwalk package diff --git a/rust-gix-revwalk.spec b/rust-gix-revwalk.spec new file mode 100644 index 0000000..fae1867 --- /dev/null +++ b/rust-gix-revwalk.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-revwalk + +Name: rust-gix-revwalk +Version: 0.7.0 +Release: %autorelease +Summary: Utility library for walking the revision graph + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-revwalk +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A crate providing utilities for walking the revision graph.} + +%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..5c4033f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-revwalk-0.7.0.crate) = f285c04c35a34c591d5d81c04e14e55158c4d42c622743a595aaa7be09226518548e90d7dff9f2786df481c9f1d20d063faa5008aaf11ee363680f16656ae9e4