From 03f9084a39974251e4536b25981bebb6fec9b74c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 24 Jun 2023 00:06:28 +0200 Subject: [PATCH] Initial import (#2214343) --- .gitignore | 1 + README.md | 3 -- rust-databake-derive.spec | 69 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 71 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-databake-derive.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..87c11d9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/databake-derive-0.1.5.crate diff --git a/README.md b/README.md deleted file mode 100644 index 4bdfa49..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-databake-derive - -The rust-databake-derive package diff --git a/rust-databake-derive.spec b/rust-databake-derive.spec new file mode 100644 index 0000000..aade96d --- /dev/null +++ b/rust-databake-derive.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 24 +# * tests can only be run in-tree +%bcond_with check +%global debug_package %{nil} + +%global crate databake-derive + +Name: rust-databake-derive +Version: 0.1.5 +Release: %autorelease +Summary: Custom derive for the databake crate + +License: Unicode-DFS-2016 +URL: https://crates.io/crates/databake-derive +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Custom derive for the databake crate.} + +%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 +%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..c904a6e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (databake-derive-0.1.5.crate) = 3a75615f97d41e4b78d0a5fb9e752485f680391411b9bd1db369a3752214d4353b67ef7b3144228c0f0b274938005ba38c32f94ac38792388c180f4fe71e6add