Blame rust-process_path.spec

b958d4e
# Generated by rust2rpm 13
b958d4e
%bcond_without check
b958d4e
%global debug_package %{nil}
b958d4e
b958d4e
%global crate process_path
b958d4e
b958d4e
Name:           rust-%{crate}
b958d4e
Version:        0.1.1
9ca75c0
Release:        2%{?dist}
b958d4e
Summary:        Rust library to get the path of the currently executing process
b958d4e
b958d4e
# Upstream license specification: MIT/Apache-2.0
b958d4e
License:        MIT or ASL 2.0
b958d4e
URL:            https://crates.io/crates/process_path
b958d4e
Source:         %{crates_source}
b958d4e
# Initial patched metadata
b958d4e
# * Drop unneded deps, https://github.com/wesleywiser/process_path/commit/fc1c74632959590a7cb9764278ab11de7f5dde6d
b958d4e
Patch0:         process_path-fix-metadata.diff
b958d4e
# * Finish previous patch
b958d4e
Patch0001:      0001-dependencies-make-them-platform-dependent.patch
b958d4e
b958d4e
ExclusiveArch:  %{rust_arches}
b958d4e
%if %{__cargo_skip_build}
b958d4e
BuildArch:      noarch
b958d4e
%endif
b958d4e
b958d4e
BuildRequires:  rust-packaging
b958d4e
b958d4e
%global _description %{expand:
b958d4e
Rust library to get the path of the currently executing process.}
b958d4e
b958d4e
%description %{_description}
b958d4e
b958d4e
%package        devel
b958d4e
Summary:        %{summary}
b958d4e
BuildArch:      noarch
b958d4e
b958d4e
%description    devel %{_description}
b958d4e
b958d4e
This package contains library source intended for building other packages
b958d4e
which use "%{crate}" crate.
b958d4e
b958d4e
%files          devel
b958d4e
%license LICENSE-MIT LICENSE-APACHE
b958d4e
%doc README.md
b958d4e
%{cargo_registry}/%{crate}-%{version_no_tilde}/
b958d4e
b958d4e
%package     -n %{name}+default-devel
b958d4e
Summary:        %{summary}
b958d4e
BuildArch:      noarch
b958d4e
b958d4e
%description -n %{name}+default-devel %{_description}
b958d4e
b958d4e
This package contains library source intended for building other packages
b958d4e
which use "default" feature of "%{crate}" crate.
b958d4e
b958d4e
%files       -n %{name}+default-devel
b958d4e
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
b958d4e
b958d4e
%prep
b958d4e
%autosetup -n %{crate}-%{version_no_tilde} -p1
b958d4e
%cargo_prep
b958d4e
b958d4e
%generate_buildrequires
b958d4e
%cargo_generate_buildrequires
b958d4e
b958d4e
%build
b958d4e
%cargo_build
b958d4e
b958d4e
%install
b958d4e
%cargo_install
b958d4e
b958d4e
%if %{with check}
b958d4e
%check
b958d4e
%cargo_test
b958d4e
%endif
b958d4e
b958d4e
%changelog
9ca75c0
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.1-2
9ca75c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9ca75c0
b958d4e
* Fri Feb 14 10:48:05 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.1.1-1
b958d4e
- Initial package