diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2960d0c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/exitcode-1.1.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index bd7617d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-exitcode - -The rust-exitcode package diff --git a/rust-exitcode.spec b/rust-exitcode.spec new file mode 100644 index 0000000..7fed9f3 --- /dev/null +++ b/rust-exitcode.spec @@ -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 diff --git a/sources b/sources new file mode 100644 index 0000000..42f0bf1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (exitcode-1.1.2.crate) = fa31817e2bfdafe64faaaa6b32573e01e2ca0db24c6c88c81f43d84a9db66d19db842b61cbd89b8f6e199aad531a1dc0053b2d4166e0f9196f275fe715f28fc3