diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b590428 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-credentials-0.19.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index f4894b1..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-credentials - -The rust-gix-credentials package diff --git a/rust-gix-credentials.spec b/rust-gix-credentials.spec new file mode 100644 index 0000000..ace27fe --- /dev/null +++ b/rust-gix-credentials.spec @@ -0,0 +1,96 @@ +# Generated by rust2rpm 24 +# Deactivate tests because of a missing dev-dependency (gix-testtools) +%bcond_with check +%global debug_package %{nil} + +%global crate gix-credentials + +Name: rust-gix-credentials +Version: 0.19.0 +Release: %autorelease +Summary: Gix implementation for interacting with git credentials helpers + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-credentials +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A crate of the gitoxide project to interact with git credentials +helpers.} + +%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 +%exclude %{crate_instdir}/tests/fixtures/ +%{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..9a4b36d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-credentials-0.19.0.crate) = 46a740ab67faa4f4f218fbce7d0018ea76bc178eeb103efb33ab19002802827b74c6d99cc624738919c5dd73c00c99500de6fba85933416434ecd4aaea7cf24a