diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e23fd63 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-odb-0.52.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index f7c54f4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-odb - -The rust-gix-odb package diff --git a/rust-gix-odb.spec b/rust-gix-odb.spec new file mode 100644 index 0000000..3a8fee6 --- /dev/null +++ b/rust-gix-odb.spec @@ -0,0 +1,93 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-odb + +Name: rust-gix-odb +Version: 0.52.0 +Release: %autorelease +Summary: Implementation of the git object database + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-odb +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Implements various git object databases.} + +%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 + +%package -n %{name}+document-features-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+document-features-devel %{_description} + +This package contains library source intended for building other packages which +use the "document-features" feature of the "%{crate}" crate. + +%files -n %{name}+document-features-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 + +%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..5ebfd2d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-odb-0.52.0.crate) = 82bb669ff9e4a7517f888b5940cf1ca7bb68da3d7282215c8d8bd09c69c84bde2463b2e3cfecbbb4aec7b0aa11449b02bc7777429126d03f2c9acc501eb0d64c