summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2022-01-07 17:36:29 -0800
committerMichel Alexandre Salim <salimma@fedoraproject.org>2022-01-07 17:36:29 -0800
commitf10b186397fbd91cc147087146d1cf5d61cc2ace (patch)
tree7d481693ffd82030a9ea6b6d9106053901b18582
parent93497e692df1d3e097148ccbe9c73c15afd67f18 (diff)
downloadspecs-f10b186397fbd91cc147087146d1cf5d61cc2ace.tar.gz
specs-f10b186397fbd91cc147087146d1cf5d61cc2ace.tar.xz
specs-f10b186397fbd91cc147087146d1cf5d61cc2ace.zip
+ rust
* nu-errors * bigdecimal (dependency) Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
-rw-r--r--rust/rust-bigdecimal.spec95
-rw-r--r--rust/rust-nu-errors.spec69
2 files changed, 164 insertions, 0 deletions
diff --git a/rust/rust-bigdecimal.spec b/rust/rust-bigdecimal.spec
new file mode 100644
index 0000000..9d9ae14
--- /dev/null
+++ b/rust/rust-bigdecimal.spec
@@ -0,0 +1,95 @@
+# Generated by rust2rpm 20
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate bigdecimal
+
+Name: rust-%{crate}
+Version: 0.3.0
+Release: %autorelease
+Summary: Arbitrary precision decimal numbers
+
+# Upstream license specification: MIT/Apache-2.0
+License: MIT or ASL 2.0
+URL: https://crates.io/crates/bigdecimal
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Arbitrary precision decimal numbers.}
+
+%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 COPYRIGHT LICENSE-APACHE LICENSE-MIT
+%doc README.rst
+%{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}+serde-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+serde-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "serde" feature of the "%{crate}" crate.
+
+%files -n %{name}+serde-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+string-only-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+string-only-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "string-only" feature of the "%{crate}" crate.
+
+%files -n %{name}+string-only-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-nu-errors.spec b/rust/rust-nu-errors.spec
new file mode 100644
index 0000000..ee1303d
--- /dev/null
+++ b/rust/rust-nu-errors.spec
@@ -0,0 +1,69 @@
+# Generated by rust2rpm 20
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate nu-errors
+
+Name: rust-%{crate}
+Version: 0.42.0
+Release: %autorelease
+Summary: Core error subsystem for Nushell
+
+# Upstream license specification: MIT
+License: MIT
+URL: https://crates.io/crates/nu-errors
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Core error subsystem 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
+%{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