From 8b951a8216a2cc61e91ebb5cdf5d1a158a3627b5 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Mon, 4 Apr 2022 09:59:35 -0700 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-is_ci.spec | 73 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 75 insertions(+) create mode 100644 .gitignore create mode 100644 rust-is_ci.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8838851 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/is_ci-1.1.1.crate diff --git a/rust-is_ci.spec b/rust-is_ci.spec new file mode 100644 index 0000000..d38aabc --- /dev/null +++ b/rust-is_ci.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate is_ci + +Name: rust-%{crate} +Version: 1.1.1 +Release: %autorelease +Summary: Super lightweight CI environment checker + +# Upstream license specification: ISC +License: ISC +URL: https://crates.io/crates/is_ci +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Super lightweight CI environment checker. Just tells you if you're in CI or not +without much fuss.} + +%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 %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 %{crate_instdir}/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..9255a66 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (is_ci-1.1.1.crate) = 89341da9fe86cf4aa5a107f8dfab21020c581e661ea551e4f2e33e39efa21dc0c2e46b2fef08fbe75d16fb1028118971561b1a4e0c351ab7de6125b7102372b6