diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..97b1e38 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/supports-hyperlinks-1.2.0.crate diff --git a/rust-supports-hyperlinks.spec b/rust-supports-hyperlinks.spec new file mode 100644 index 0000000..0e41138 --- /dev/null +++ b/rust-supports-hyperlinks.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate supports-hyperlinks + +Name: rust-%{crate} +Version: 1.2.0 +Release: %autorelease +Summary: Detects whether a terminal supports rendering hyperlinks + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: https://crates.io/crates/supports-hyperlinks +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Detects whether a terminal supports rendering hyperlinks.} + +%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..f86ef14 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (supports-hyperlinks-1.2.0.crate) = fd8791e108230b263c34b4094c4ef116a1c12da84b39100937b1373149473070aab7cd2493987ccf2f51767aad0caffc9cec8b58a78a3bd1167509feadeb3945