Blame rust-migrations_macros.spec

1318c96
# Generated by rust2rpm 13
1318c96
%bcond_without check
1318c96
%global debug_package %{nil}
1318c96
1318c96
%global crate migrations_macros
1318c96
1318c96
Name:           rust-%{crate}
1318c96
Version:        1.4.2
1318c96
Release:        1%{?dist}
1318c96
Summary:        Codegeneration macros for diesels embedded migrations
1318c96
1318c96
# Upstream license specification: MIT OR Apache-2.0
1318c96
# https://github.com/diesel-rs/diesel/pull/2395
1318c96
License:        MIT or ASL 2.0
1318c96
URL:            https://crates.io/crates/migrations_macros
1318c96
Source:         %{crates_source}
1318c96
1318c96
ExclusiveArch:  %{rust_arches}
1318c96
%if %{__cargo_skip_build}
1318c96
BuildArch:      noarch
1318c96
%endif
1318c96
1318c96
BuildRequires:  rust-packaging
1318c96
1318c96
%global _description %{expand:
1318c96
Codegeneration macros for diesels embedded migrations.}
1318c96
1318c96
%description %{_description}
1318c96
1318c96
%package        devel
1318c96
Summary:        %{summary}
1318c96
BuildArch:      noarch
1318c96
1318c96
%description    devel %{_description}
1318c96
1318c96
This package contains library source intended for building other packages
1318c96
which use "%{crate}" crate.
1318c96
1318c96
%files          devel
1318c96
%{cargo_registry}/%{crate}-%{version_no_tilde}/
1318c96
1318c96
%package     -n %{name}+default-devel
1318c96
Summary:        %{summary}
1318c96
BuildArch:      noarch
1318c96
1318c96
%description -n %{name}+default-devel %{_description}
1318c96
1318c96
This package contains library source intended for building other packages
1318c96
which use "default" feature of "%{crate}" crate.
1318c96
1318c96
%files       -n %{name}+default-devel
1318c96
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
1318c96
1318c96
%prep
1318c96
%autosetup -n %{crate}-%{version_no_tilde} -p1
1318c96
%cargo_prep
1318c96
1318c96
%generate_buildrequires
1318c96
%cargo_generate_buildrequires
1318c96
1318c96
%build
1318c96
%cargo_build
1318c96
1318c96
%install
1318c96
%cargo_install
1318c96
1318c96
%if %{with check}
1318c96
%check
1318c96
%cargo_test
1318c96
%endif
1318c96
1318c96
%changelog
1318c96
* Fri May 15 16:32:28 CEST 2020 Igor Raits <i.gnatenko.brain@gmail.com> - 1.4.2-1
1318c96
- Initial package