diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-04-14 13:00:34 -0700 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-04-14 13:00:34 -0700 |
commit | 99067be6a2aa67e4cfcfd71e816abaf342f4bfff (patch) | |
tree | aab4b75dcc9a8ad290f2c921f3a10675f7bfdc55 | |
parent | 4eb34926c3ea175a07132ee5c101687769d034b7 (diff) | |
download | specs-99067be6a2aa67e4cfcfd71e816abaf342f4bfff.tar.gz specs-99067be6a2aa67e4cfcfd71e816abaf342f4bfff.tar.xz specs-99067be6a2aa67e4cfcfd71e816abaf342f4bfff.zip |
+ fishlibs for unretirement review
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r-- | rust/rust-meta/findshlibs-fix-metadata.diff | 11 | ||||
-rw-r--r-- | rust/rust-meta/rust-findshlibs.spec | 75 |
2 files changed, 86 insertions, 0 deletions
diff --git a/rust/rust-meta/findshlibs-fix-metadata.diff b/rust/rust-meta/findshlibs-fix-metadata.diff new file mode 100644 index 0000000..92660c6 --- /dev/null +++ b/rust/rust-meta/findshlibs-fix-metadata.diff @@ -0,0 +1,11 @@ +--- findshlibs-0.10.2/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ findshlibs-0.10.2/Cargo.toml 2022-04-14T19:58:42.065992+00:00 +@@ -24,8 +24,3 @@ + version = "0.2.104" + [build-dependencies.cc] + version = "1.0.67" +-[target."cfg(any(target_os = \"macos\", target_os = \"ios\"))".dependencies.lazy_static] +-version = "1.4" +-[target."cfg(target_os = \"windows\")".dependencies.winapi] +-version = "0.3.9" +-features = ["psapi", "memoryapi", "libloaderapi", "processthreadsapi"] diff --git a/rust/rust-meta/rust-findshlibs.spec b/rust/rust-meta/rust-findshlibs.spec new file mode 100644 index 0000000..daca2bf --- /dev/null +++ b/rust/rust-meta/rust-findshlibs.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate findshlibs + +Name: rust-%{crate} +Version: 0.10.2 +Release: %autorelease +Summary: Find the set of shared libraries loaded in the current process with a cross platform API + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/findshlibs +Source: %{crates_source} +# Drop dependencies for Mac and Windows targets +Patch0: findshlibs-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Find the set of shared libraries loaded in the current process with a cross +platform API.} + +%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}/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 + +%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 |