Initial import (#1999232)

epel9
Fabio Valentini 3 years ago
parent 279db726de
commit e8086f4247
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

4
.gitignore vendored

@ -0,0 +1,4 @@
/results_*/
/*.src.rpm
/exitcode-1.1.2.crate

@ -1,3 +0,0 @@
# rust-exitcode
The rust-exitcode package

@ -0,0 +1,74 @@
# Generated by rust2rpm 18
%bcond_without check
%global debug_package %{nil}
%global crate exitcode
Name: rust-%{crate}
Version: 1.1.2
Release: %autorelease
Summary: Preferred system exit codes as defined by sysexits.h
# Upstream license specification: Apache-2.0
License: ASL 2.0
URL: https://crates.io/crates/exitcode
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Preferred system exit codes as defined by sysexits.h.}
%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
%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
%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

@ -0,0 +1 @@
SHA512 (exitcode-1.1.2.crate) = fa31817e2bfdafe64faaaa6b32573e01e2ca0db24c6c88c81f43d84a9db66d19db842b61cbd89b8f6e199aad531a1dc0053b2d4166e0f9196f275fe715f28fc3
Loading…
Cancel
Save