diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c4984f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-revision-0.21.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 3b48701..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-revision - -The rust-gix-revision package diff --git a/rust-gix-revision.spec b/rust-gix-revision.spec new file mode 100644 index 0000000..e04876b --- /dev/null +++ b/rust-gix-revision.spec @@ -0,0 +1,107 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-revision + +Name: rust-gix-revision +Version: 0.21.0 +Release: %autorelease +Summary: Deal with finding names for revisions and parsing specifications + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-revision +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A crate of the gitoxide project dealing with finding names for revisions +and parsing specifications.} + +%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 +%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 + +%package -n %{name}+describe-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+describe-devel %{_description} + +This package contains library source intended for building other packages which +use the "describe" feature of the "%{crate}" crate. + +%files -n %{name}+describe-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..8afffdb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-revision-0.21.0.crate) = f57ddcbaeb133c9179781340da629b2b9532a5d77b79dc6c8dba43444bab279f372e70e50cb9c976c311edf592372f5690eaf3aebc3739129ab4c4625b12de2f