diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb1ff57 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/text-block-macros-0.1.1.crate diff --git a/rust-text-block-macros.spec b/rust-text-block-macros.spec new file mode 100644 index 0000000..03e539e --- /dev/null +++ b/rust-text-block-macros.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate text-block-macros + +Name: rust-text-block-macros +Version: 0.1.1 +Release: %autorelease +Summary: Create a multiline string literal + +License: MIT +URL: https://crates.io/crates/text-block-macros +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Create a multiline string literal.} + +%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.md +%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..2b66161 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (text-block-macros-0.1.1.crate) = 758e0e669c03b7039daae3682c02bdd580350bb5b553fa8786a07e04a34b4e9cea5b6fc1dde58e890e42d65010debc22e8995c3eeb4aacbc33453a4fc50389b3