diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dcb3a51 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/standback-0.2.8.crate diff --git a/rust-standback.spec b/rust-standback.spec new file mode 100644 index 0000000..30fc0e2 --- /dev/null +++ b/rust-standback.spec @@ -0,0 +1,90 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate standback + +Name: rust-%{crate} +Version: 0.2.8 +Release: 1%{?dist} +Summary: New standard library, old compiler + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/standback +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +New standard library, old compiler.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%doc README.md +%license LICENSE-Apache LICENSE-MIT +%{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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages +which use "std" feature of "%{crate}" crate. + +%files -n %{name}+std-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 +* Wed Apr 29 2020 Josh Stone - 0.2.8-1 +- Update to 0.2.8 + +* Fri Apr 17 16:40:46 PDT 2020 Josh Stone - 0.2.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..d74bfc0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (standback-0.2.8.crate) = eabece69c3f76be1d9cb1d84acb73ed4c0c6d09e3bf6f772de7886a605fdd0344d35a687fd2dbcee08129d6e6335fa50517f20eb8f6447b2e9f64e4bc02b9818