Initial package (rhbz#2240386)

epel9
blinxen 1 year ago
parent 3c903c68cf
commit e942c511fd

1
.gitignore vendored

@ -0,0 +1 @@
/gix-index-0.24.0.crate

@ -1,3 +0,0 @@
# rust-gix-index
The rust-gix-index package

@ -0,0 +1,96 @@
# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate gix-index
Name: rust-gix-index
Version: 0.24.0
Release: %autorelease
Summary: Git index file implementation used by gix
License: MIT OR Apache-2.0
URL: https://crates.io/crates/gix-index
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
A work-in-progress crate of the gitoxide project dedicated implementing
the git index file.}
%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}+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
# Skip test that requires a not published file (tests/ directory is not published with the crate)
%cargo_test -- -- --skip entry_by_path_with_conflicting_file
%endif
%changelog
%autochangelog

@ -0,0 +1 @@
SHA512 (gix-index-0.24.0.crate) = f4007af07bfae3081d7a3ff14f20c0ebaeadeda61aadc8404d22918a5002ecb106b74c173ae4e4cea7b191df4105e9c3e5d2c4d733ba272624a19d545f53efd9
Loading…
Cancel
Save