Initial import (libloading 0.7 compat package)

epel9 imports/e9/rust-libloading0.7-0.7.4-1.el9
Fabio Valentini 1 year ago
parent af145f0187
commit edaecef8ee
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -0,0 +1 @@
/libloading-0.7.4.crate

@ -1,3 +0,0 @@
# rust-libloading0.7
The rust-libloading0.7 package

@ -0,0 +1,12 @@
--- libloading-0.7.4/Cargo.toml 1970-01-01T00:00:01+00:00
+++ libloading-0.7.4/Cargo.toml 2023-10-24T10:30:52.525037+00:00
@@ -43,9 +43,3 @@
[target."cfg(unix)".dependencies.cfg-if]
version = "1"
-[target."cfg(windows)".dependencies.winapi]
-version = "0.3"
-features = [
- "errhandlingapi",
- "libloaderapi",
-]

@ -0,0 +1,71 @@
# Generated by rust2rpm 25
%bcond_without check
%global debug_package %{nil}
%global crate libloading
Name: rust-libloading0.7
Version: 0.7.4
Release: %autorelease
Summary: Bindings for native dynamic library loading primitives
License: ISC
URL: https://crates.io/crates/libloading
Source: %{crates_source}
# Automatically generated patch to strip dependencies and normalize metadata
Patch: libloading-fix-metadata-auto.diff
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Bindings around the platform's dynamic library loading primitives with
greatly improved memory safety.}
%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
%doc %{crate_instdir}/README.mkd
%{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
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog

@ -0,0 +1,2 @@
[package]
summary = "Bindings for native dynamic library loading primitives"

@ -0,0 +1 @@
SHA512 (libloading-0.7.4.crate) = 34439d9eca68bac8fcbe2bc94a70e07550e7e95d713ab74ed60ba6736ec807fd9c9135c178d436fbeb39afb074b2a9b05775d953340845c088f5f8712f5f56a1
Loading…
Cancel
Save