Blame rust-feedly_api.spec

6bf33cd
# Generated by rust2rpm 15
c09941e
# * Tests require internet and a token
c09941e
%bcond_with check
c09941e
%global debug_package %{nil}
c09941e
c09941e
%global crate feedly_api
c09941e
c09941e
Name:           rust-%{crate}
d76a596
Version:        0.3.1
c09941e
Release:        1%{?dist}
c09941e
Summary:        Rust implementation of the feedly REST API
c09941e
c09941e
# Upstream license specification: GPL-3.0-or-later
c09941e
License:        GPLv3+
c09941e
URL:            https://crates.io/crates/feedly_api
c09941e
Source:         %{crates_source}
c09941e
# Initial patched metadata
c09941e
# * Fixup deps, https://pagure.io/fedora-rust/rust2rpm/issue/109
c09941e
Patch0:         feedly_api-fix-metadata.diff
c09941e
c09941e
ExclusiveArch:  %{rust_arches}
c09941e
%if %{__cargo_skip_build}
c09941e
BuildArch:      noarch
c09941e
%endif
c09941e
c09941e
BuildRequires:  rust-packaging
c09941e
c09941e
%global _description %{expand:
c09941e
Rust implementation of the feedly REST API.}
c09941e
c09941e
%description %{_description}
c09941e
c09941e
%package        devel
c09941e
Summary:        %{summary}
c09941e
BuildArch:      noarch
c09941e
c09941e
%description    devel %{_description}
c09941e
c09941e
This package contains library source intended for building other packages
c09941e
which use "%{crate}" crate.
c09941e
c09941e
%files          devel
d76a596
%license LICENSE
c09941e
%doc README.md
c09941e
%{cargo_registry}/%{crate}-%{version_no_tilde}/
c09941e
c09941e
%package     -n %{name}+default-devel
c09941e
Summary:        %{summary}
c09941e
BuildArch:      noarch
c09941e
c09941e
%description -n %{name}+default-devel %{_description}
c09941e
c09941e
This package contains library source intended for building other packages
c09941e
which use "default" feature of "%{crate}" crate.
c09941e
c09941e
%files       -n %{name}+default-devel
c09941e
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
c09941e
c09941e
%prep
c09941e
%autosetup -n %{crate}-%{version_no_tilde} -p1
c09941e
%cargo_prep
c09941e
c09941e
%generate_buildrequires
c09941e
%cargo_generate_buildrequires
c09941e
c09941e
%build
c09941e
%cargo_build
c09941e
c09941e
%install
c09941e
%cargo_install
c09941e
c09941e
%if %{with check}
c09941e
%check
c09941e
%cargo_test
c09941e
%endif
c09941e
c09941e
%changelog
d76a596
* Mon May 25 05:51:33 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.3.1-1
d76a596
- Update to 0.3.1
d76a596
6bf33cd
* Fri May 22 20:03:05 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.3.0-1
6bf33cd
- Update to 0.3.0
6bf33cd
c09941e
* Tue May 12 17:27:17 CEST 2020 Igor Raits <i.gnatenko.brain@gmail.com> - 0.2.1-1
c09941e
- Initial package