Blame rust-fdlimit.spec

b5f8c34
# Generated by rust2rpm 13
b5f8c34
%bcond_without check
b5f8c34
%global debug_package %{nil}
b5f8c34
b5f8c34
%global crate fdlimit
b5f8c34
b5f8c34
Name:           rust-%{crate}
b5f8c34
Version:        0.2.1
9e32c4d
Release:        3%{?dist}
b5f8c34
Summary:        Utility crate for raising file descriptors limit for OSX and Linux
b5f8c34
b5f8c34
# Upstream license specification: Apache-2.0
b5f8c34
License:        ASL 2.0
b5f8c34
URL:            https://crates.io/crates/fdlimit
b5f8c34
Source:         %{crates_source}
b5f8c34
b5f8c34
ExclusiveArch:  %{rust_arches}
b5f8c34
%if %{__cargo_skip_build}
b5f8c34
BuildArch:      noarch
b5f8c34
%endif
b5f8c34
b5f8c34
BuildRequires:  rust-packaging
b5f8c34
b5f8c34
%global _description %{expand:
b5f8c34
Utility crate for raising file descriptors limit for OSX and Linux.}
b5f8c34
b5f8c34
%description %{_description}
b5f8c34
b5f8c34
%package        devel
b5f8c34
Summary:        %{summary}
b5f8c34
BuildArch:      noarch
b5f8c34
b5f8c34
%description    devel %{_description}
b5f8c34
b5f8c34
This package contains library source intended for building other packages
b5f8c34
which use "%{crate}" crate.
b5f8c34
b5f8c34
%files          devel
b5f8c34
%license LICENSE
b5f8c34
%doc README.md
b5f8c34
%{cargo_registry}/%{crate}-%{version_no_tilde}/
b5f8c34
b5f8c34
%package     -n %{name}+default-devel
b5f8c34
Summary:        %{summary}
b5f8c34
BuildArch:      noarch
b5f8c34
b5f8c34
%description -n %{name}+default-devel %{_description}
b5f8c34
b5f8c34
This package contains library source intended for building other packages
b5f8c34
which use "default" feature of "%{crate}" crate.
b5f8c34
b5f8c34
%files       -n %{name}+default-devel
b5f8c34
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
b5f8c34
b5f8c34
%prep
b5f8c34
%autosetup -n %{crate}-%{version_no_tilde} -p1
b5f8c34
%cargo_prep
b5f8c34
b5f8c34
%generate_buildrequires
b5f8c34
%cargo_generate_buildrequires
b5f8c34
b5f8c34
%build
b5f8c34
%cargo_build
b5f8c34
b5f8c34
%install
b5f8c34
%cargo_install
b5f8c34
b5f8c34
%if %{with check}
b5f8c34
%check
b5f8c34
%cargo_test
b5f8c34
%endif
b5f8c34
b5f8c34
%changelog
9e32c4d
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
9e32c4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9e32c4d
7beb2a5
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-2
7beb2a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7beb2a5
b5f8c34
* Thu Oct 01 2020 Fabio Valentini <decathorpe@gmail.com> - 0.2.1-1
b5f8c34
- Initial package