From 6adc98fe1505161e6127c03b4ed4f5dbb438019f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jan 04 2018 17:45:47 +0000 Subject: initial import Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d39e927 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libloading-0.4.3.crate diff --git a/libloading-0.4.3-fix-metadata.diff b/libloading-0.4.3-fix-metadata.diff new file mode 100644 index 0000000..e04d5cd --- /dev/null +++ b/libloading-0.4.3-fix-metadata.diff @@ -0,0 +1,11 @@ +--- libloading-0.4.3/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ libloading-0.4.3/Cargo.toml 2018-01-03T16:36:53.270914+01:00 +@@ -22,8 +22,3 @@ + repository = "https://github.com/nagisa/rust_libloading/" + [dependencies.lazy_static] + version = "1" +-[target."cfg(windows)".dependencies.kernel32-sys] +-version = "0.2" +- +-[target."cfg(windows)".dependencies.winapi] +-version = "0.2" diff --git a/rust-libloading.spec b/rust-libloading.spec new file mode 100644 index 0000000..5299b1b --- /dev/null +++ b/rust-libloading.spec @@ -0,0 +1,66 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate libloading + +Name: rust-%{crate} +Version: 0.4.3 +Release: 1%{?dist} +Summary: Safer binding to platform’s dynamic library loading utilities + +License: ISC +URL: https://crates.io/crates/libloading +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * No windows +Patch0: libloading-0.4.3-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.0) +BuildRequires: glibc-devel + +%description +%{summary}. + +%package devel +Summary: %{summary} +Requires: glibc-devel +BuildArch: noarch + +%description devel +A safer binding to platform’s dynamic library loading utilities. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENSE +%doc README.mkd +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml + +%changelog +* Wed Jan 03 2018 Igor Gnatenko - 0.4.3-1 +- Update to 0.4.3 + +* Mon Dec 04 2017 Igor Gnatenko - 0.4.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..5517efc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libloading-0.4.3.crate) = ca5f6eef2241e7246d0d00808fc2feecfda4a424a2a34e5125ba020f5b555f6bad9aa26236b99b2515c465016dcb0a549cf3138cd8973d3a52e5ce12b75b9bc0