From 1318c96d65301a98700d462a3b955ebfe4b294a1 Mon Sep 17 00:00:00 2001 From: Igor Raits Date: May 16 2020 02:12:11 +0000 Subject: Initial import Signed-off-by: Igor Raits --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7c0217e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/migrations_macros-1.4.2.crate diff --git a/rust-migrations_macros.spec b/rust-migrations_macros.spec new file mode 100644 index 0000000..d8146cf --- /dev/null +++ b/rust-migrations_macros.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate migrations_macros + +Name: rust-%{crate} +Version: 1.4.2 +Release: 1%{?dist} +Summary: Codegeneration macros for diesels embedded migrations + +# Upstream license specification: MIT OR Apache-2.0 +# https://github.com/diesel-rs/diesel/pull/2395 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/migrations_macros +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Codegeneration macros for diesels embedded migrations.} + +%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 +%{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 + +%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 May 15 16:32:28 CEST 2020 Igor Raits - 1.4.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..52ccc58 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (migrations_macros-1.4.2.crate) = 4dd57ef1e29fdf60e002b2a5d626b98c11a9273d53e3b40937b07f3d76726623d4e2287cf53c1f7e3ba31464a72d6f2871470a464b25d2279cfaabc76c306df1