diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09412d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/camino-1.0.4.crate diff --git a/rust-camino.spec b/rust-camino.spec new file mode 100644 index 0000000..64d9a52 --- /dev/null +++ b/rust-camino.spec @@ -0,0 +1,99 @@ +# Generated by rust2rpm 17 +%bcond_without check +%global debug_package %{nil} + +%global crate camino + +Name: rust-%{crate} +Version: 1.0.4 +Release: 1%{?dist} +Summary: UTF-8 paths + +# Upstream license specification: MIT OR Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/camino +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +UTF-8 paths.} + +%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 CHANGELOG.md CODE_OF_CONDUCT.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}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages +which use "serde" feature of "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+serde1-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde1-devel %{_description} + +This package contains library source intended for building other packages +which use "serde1" feature of "%{crate}" crate. + +%files -n %{name}+serde1-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 +* Sat Jul 03 12:22:42 CEST 2021 Olivier Lemasle - 1.0.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..bad71c6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (camino-1.0.4.crate) = d095e5d35920647a2b03f8fa5a1a699bb25b2f2368c47a60457e65cfc87ca1a0447e574e0894f57bb2705148e1deb480893b3fd92ae7f2745ac6edcff6217ea6