Blame rust-dotenv.spec

909791b
# Generated by rust2rpm 13
909791b
%bcond_without check
909791b
%global debug_package %{nil}
909791b
909791b
# The /usr/bin/dotenv is already provided by other packages
909791b
%global __cargo_is_bin() false
909791b
909791b
%global crate dotenv
909791b
909791b
Name:           rust-%{crate}
909791b
Version:        0.15.0
ef65874
Release:        3%{?dist}
909791b
Summary:        `dotenv` implementation for Rust
909791b
909791b
# Upstream license specification: MIT
909791b
# https://github.com/dotenv-rs/dotenv/issues/47
909791b
License:        MIT
909791b
URL:            https://crates.io/crates/dotenv
909791b
Source:         %{crates_source}
909791b
909791b
ExclusiveArch:  %{rust_arches}
909791b
%if %{__cargo_skip_build}
909791b
BuildArch:      noarch
909791b
%endif
909791b
909791b
BuildRequires:  rust-packaging
909791b
909791b
%global _description %{expand:
909791b
`dotenv` implementation for Rust.}
909791b
909791b
%description %{_description}
909791b
909791b
%package        devel
909791b
Summary:        %{summary}
909791b
BuildArch:      noarch
909791b
909791b
%description    devel %{_description}
909791b
909791b
This package contains library source intended for building other packages
909791b
which use "%{crate}" crate.
909791b
909791b
%files          devel
909791b
%{cargo_registry}/%{crate}-%{version_no_tilde}/
909791b
909791b
%package     -n %{name}+default-devel
909791b
Summary:        %{summary}
909791b
BuildArch:      noarch
909791b
909791b
%description -n %{name}+default-devel %{_description}
909791b
909791b
This package contains library source intended for building other packages
909791b
which use "default" feature of "%{crate}" crate.
909791b
909791b
%files       -n %{name}+default-devel
909791b
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
909791b
909791b
%package     -n %{name}+clap-devel
909791b
Summary:        %{summary}
909791b
BuildArch:      noarch
909791b
909791b
%description -n %{name}+clap-devel %{_description}
909791b
909791b
This package contains library source intended for building other packages
909791b
which use "clap" feature of "%{crate}" crate.
909791b
909791b
%files       -n %{name}+clap-devel
909791b
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
909791b
909791b
%package     -n %{name}+cli-devel
909791b
Summary:        %{summary}
909791b
BuildArch:      noarch
909791b
909791b
%description -n %{name}+cli-devel %{_description}
909791b
909791b
This package contains library source intended for building other packages
909791b
which use "cli" feature of "%{crate}" crate.
909791b
909791b
%files       -n %{name}+cli-devel
909791b
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
909791b
909791b
%prep
909791b
%autosetup -n %{crate}-%{version_no_tilde} -p1
909791b
%cargo_prep
909791b
909791b
%generate_buildrequires
909791b
%cargo_generate_buildrequires
909791b
909791b
%build
909791b
%cargo_build
909791b
909791b
%install
909791b
%cargo_install
909791b
909791b
%if %{with check}
909791b
%check
909791b
%cargo_test
909791b
%endif
909791b
909791b
%changelog
ef65874
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-3
ef65874
- Second attempt - Rebuilt for
ef65874
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ef65874
f822fb3
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-2
f822fb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f822fb3
909791b
* Tue May 12 16:13:43 CEST 2020 Igor Raits <i.gnatenko.brain@gmail.com> - 0.15.0-1
909791b
- Initial package