diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ee48429 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/option-ext-0.2.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 3c79f44..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-option-ext - -The rust-option-ext package diff --git a/rust-option-ext.spec b/rust-option-ext.spec new file mode 100644 index 0000000..81bc119 --- /dev/null +++ b/rust-option-ext.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate option-ext + +Name: rust-option-ext +Version: 0.2.0 +Release: %autorelease +Summary: Extends Option with additional operations + +License: MPL-2.0 +URL: https://crates.io/crates/option-ext +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Extends `Option` with additional operations.} + +%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.txt +%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..2946420 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (option-ext-0.2.0.crate) = f8539f97b01af97e0b80fc96556002251befa60f8ddd19613311e62f9dc9834d71c22f5d8e7c53c4925046e38cdcf834c3c28042a4da862d6f6a21ddff8d8e56