File rust-libgit2-sys.spec of Package rust-libgit2-sys
BuildRequires: crate(libc) crate(libz-sys) crate(cc) crate(pkg-config)
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate libgit2-sys
%global upstream_version 0.16.2+1.7.2
Name: rust-libgit2-sys
Version: 0.16.2
Release: 1%{?dist}
Summary: Native bindings to the libgit2 library
License: MIT OR Apache-2.0
URL: https://crates.io/crates/libgit2-sys
Source: https://crates.io/api/v1/crates/%crate/%upstream_version/download#/%crate-%upstream_version.crate
# Automatically generated patch to strip dependencies and normalize metadata
Patch: libgit2-sys-fix-metadata-auto.diff
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Native bindings to the libgit2 library.}
%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
%license %{crate_instdir}/libgit2/COPYING
%license %{crate_instdir}/libgit2/deps/http-parser/COPYING
%license %{crate_instdir}/libgit2/deps/pcre/COPYING
%license %{crate_instdir}/libgit2/deps/pcre/LICENCE
%license %{crate_instdir}/libgit2/deps/pcre/cmake/COPYING-CMAKE-SCRIPTS
%license %{crate_instdir}/libgit2/deps/winhttp/COPYING.GPL
%license %{crate_instdir}/libgit2/deps/winhttp/COPYING.LGPL
%license %{crate_instdir}/libgit2/deps/zlib/COPYING
%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}+https-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+https-devel %{_description}
This package contains library source intended for building other packages which
use the "https" feature of the "%{crate}" crate.
%files -n %{name}+https-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+libssh2-sys-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+libssh2-sys-devel %{_description}
This package contains library source intended for building other packages which
use the "libssh2-sys" feature of the "%{crate}" crate.
%files -n %{name}+libssh2-sys-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+openssl-sys-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+openssl-sys-devel %{_description}
This package contains library source intended for building other packages which
use the "openssl-sys" feature of the "%{crate}" crate.
%files -n %{name}+openssl-sys-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ssh-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+ssh-devel %{_description}
This package contains library source intended for building other packages which
use the "ssh" feature of the "%{crate}" crate.
%files -n %{name}+ssh-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+ssh_key_from_memory-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+ssh_key_from_memory-devel %{_description}
This package contains library source intended for building other packages which
use the "ssh_key_from_memory" feature of the "%{crate}" crate.
%files -n %{name}+ssh_key_from_memory-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+vendored-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+vendored-devel %{_description}
This package contains library source intended for building other packages which
use the "vendored" feature of the "%{crate}" crate.
%files -n %{name}+vendored-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+vendored-openssl-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+vendored-openssl-devel %{_description}
This package contains library source intended for building other packages which
use the "vendored-openssl" feature of the "%{crate}" crate.
%files -n %{name}+vendored-openssl-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+zlib-ng-compat-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+zlib-ng-compat-devel %{_description}
This package contains library source intended for building other packages which
use the "zlib-ng-compat" feature of the "%{crate}" crate.
%files -n %{name}+zlib-ng-compat-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{upstream_version} -p1
%cargo_prep
%generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%endif
%changelog
* Tue Apr 09 2024 u <u> - 0.16.2-1
- Initial package