diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-01-07 16:48:15 -0800 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-01-07 16:48:15 -0800 |
commit | 93497e692df1d3e097148ccbe9c73c15afd67f18 (patch) | |
tree | 3a0f755979699eec208220ebe79b0092f389298e | |
parent | 433cc8e172411a1dc40fb8d6747a9f3255a01208 (diff) | |
download | specs-93497e692df1d3e097148ccbe9c73c15afd67f18.tar.gz specs-93497e692df1d3e097148ccbe9c73c15afd67f18.tar.xz specs-93497e692df1d3e097148ccbe9c73c15afd67f18.zip |
+ rust:
* nu-source
* pretty (dependency, intentionally using an older version)
-rw-r--r-- | rust/rust-nu-source.spec | 70 | ||||
-rw-r--r-- | rust/rust-pretty.spec | 85 |
2 files changed, 155 insertions, 0 deletions
diff --git a/rust/rust-nu-source.spec b/rust/rust-nu-source.spec new file mode 100644 index 0000000..c39eff7 --- /dev/null +++ b/rust/rust-nu-source.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate nu-source + +Name: rust-%{crate} +Version: 0.42.0 +Release: %autorelease +Summary: Source string characterizer for Nushell + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/nu-source +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Source string characterizer for Nushell.} + +%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 +%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 the "default" feature of the "%{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/rust/rust-pretty.spec b/rust/rust-pretty.spec new file mode 100644 index 0000000..8b55646 --- /dev/null +++ b/rust/rust-pretty.spec @@ -0,0 +1,85 @@ +# Generated by rust2rpm 20 +%bcond_without check +%global debug_package %{nil} + +%global crate pretty + +Name: rust-%{crate} +Version: 0.5.2 +Release: %autorelease +Summary: Wadler-style pretty-printing combinators in Rust + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/pretty +Source: %{crates_source} +# Initial patched metadata +Patch0: pretty-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%global _description %{expand: +Wadler-style pretty-printing combinators in Rust.} + +%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 LICENSE +%doc CHANGELOG.md 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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+termcolor-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+termcolor-devel %{_description} + +This package contains library source intended for building other packages which +use the "termcolor" feature of the "%{crate}" crate. + +%files -n %{name}+termcolor-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 |