# Generated by rust2rpm 12 %bcond_without check %global debug_package %{nil} %global crate findshlibs Name: rust-%{crate} Version: 0.5.0 Release: 3%{?dist} Summary: Find the set of shared libraries loaded in the current process # Upstream license specification: Apache-2.0/MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/findshlibs Source: %{crates_source} # Fix address/bias on 32-bit systems # https://github.com/gimli-rs/findshlibs/commit/760f122b42aca9d41e7f8de533bffca60e715727 Patch0: 0001-Fix-address-bias-on-32-bit-systems.patch ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %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 "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT %doc ./README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+nightly-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+nightly-devel %{_description} This package contains library source intended for building other packages which use "nightly" feature of "%{crate}" crate. %files -n %{name}+nightly-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep # Dubious executable bits, fixed upstream find . -type f -executable -iname "*.rs" -exec chmod 0644 '{}' \; %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sun Feb 02 18:47:13 CET 2020 Robert-André Mauchin - 0.5.0-3 - Remove extraneous executable bits * Thu Jan 30 2020 Fedora Release Engineering - 0.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Dec 06 18:20:28 CET 2019 Robert-André Mauchin - 0.5.0-1 - Initial package