diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a98a3fd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/noop_proc_macro-0.2.1.crate diff --git a/rust-noop_proc_macro.spec b/rust-noop_proc_macro.spec new file mode 100644 index 0000000..5bd9187 --- /dev/null +++ b/rust-noop_proc_macro.spec @@ -0,0 +1,75 @@ +# Generated by rust2rpm 10 +%bcond_without check +%global debug_package %{nil} + +%global crate noop_proc_macro + +Name: rust-%{crate} +Version: 0.2.1 +Release: 1%{?dist} +Summary: No-op proc_macro, literally does nothing + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/noop_proc_macro +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +No-op proc_macro, literally does nothing.} + +%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 +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%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}/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 +* Fri Dec 06 22:58:18 CET 2019 Robert-André Mauchin - 0.2.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..c872636 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (noop_proc_macro-0.2.1.crate) = 3f2cf8eaf66fa8ec3c7704d9d525e38dfb10432a1e5c7be2b3c2b9833ddb72884dc3748adbeb34dabc94e643702fe2c9c69b96436347d7571fceee2529493c51