summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-01 12:02:18 -0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2022-04-01 12:02:18 -0700
commite96f3bf1ece29cbf93e557e4d653203aaf5eef81 (patch)
tree282ffe8697f36de11a85313edf1d98e98c616948
parent35da6954933eeed6363860e4ba0b1efc612d6c2d (diff)
downloadspecs-e96f3bf1ece29cbf93e557e4d653203aaf5eef81.tar.gz
specs-e96f3bf1ece29cbf93e557e4d653203aaf5eef81.tar.xz
specs-e96f3bf1ece29cbf93e557e4d653203aaf5eef81.zip
+ rust-supports-unicode
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r--rust/rust-supports-unicode.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/rust/rust-supports-unicode.spec b/rust/rust-supports-unicode.spec
new file mode 100644
index 0000000..bbcb8a3
--- /dev/null
+++ b/rust/rust-supports-unicode.spec
@@ -0,0 +1,72 @@
+# Generated by rust2rpm 21
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate supports-unicode
+
+Name: rust-%{crate}
+Version: 1.0.2
+Release: %autorelease
+Summary: Detects whether a terminal supports unicode
+
+# Upstream license specification: Apache-2.0
+License: ASL 2.0
+URL: https://crates.io/crates/supports-unicode
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging >= 21
+
+%global _description %{expand:
+Detects whether a terminal supports unicode.}
+
+%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