You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-trash/rust-trash.spec

124 lines
3.4 KiB

# Generated by rust2rpm 20
# * tests require an existing trash folder
%bcond_with check
%global debug_package %{nil}
%global crate trash
Name: rust-%{crate}
Version: 2.0.3
Release: %autorelease
Summary: Library for moving files and folders to the Recycle Bin
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/trash
Source: %{crates_source}
# Initial patched metadata
# * drop windows- and mac OS-specific dependencies
Patch0: trash-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%global _description %{expand:
Library for moving files and folders to the Recycle Bin.}
%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 LICENSE.txt
%doc CHANGELOG.md 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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+coinit_apartmentthreaded-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+coinit_apartmentthreaded-devel %{_description}
This package contains library source intended for building other packages which
use the "coinit_apartmentthreaded" feature of the "%{crate}" crate.
%files -n %{name}+coinit_apartmentthreaded-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+coinit_disable_ole1dde-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+coinit_disable_ole1dde-devel %{_description}
This package contains library source intended for building other packages which
use the "coinit_disable_ole1dde" feature of the "%{crate}" crate.
%files -n %{name}+coinit_disable_ole1dde-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+coinit_multithreaded-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+coinit_multithreaded-devel %{_description}
This package contains library source intended for building other packages which
use the "coinit_multithreaded" feature of the "%{crate}" crate.
%files -n %{name}+coinit_multithreaded-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+coinit_speed_over_memory-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+coinit_speed_over_memory-devel %{_description}
This package contains library source intended for building other packages which
use the "coinit_speed_over_memory" feature of the "%{crate}" crate.
%files -n %{name}+coinit_speed_over_memory-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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