Blob Blame History Raw
# Generated by rust2rpm
# escargot is not packaged yet
%bcond_with check

%global crate varlink-cli

Name:           rust-%{crate}
Version:        4.1.0
Release:        1%{?dist}
Summary:        Varlink command line tool

# Upstream license specification: MIT/Apache-2.0
License:        MIT or ASL 2.0
URL:            https://crates.io/crates/varlink-cli
Source:         %{crates_source}
# Initial patched metadata
# * Update colored_json to 2, https://github.com/varlink/rust/pull/21
Patch0:         varlink-cli-fix-metadata.diff
Patch1:         0001-chore-Update-colored_json-to-2.patch

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging
BuildRequires:  (crate(chainerror/default) >= 0.4.0 with crate(chainerror/default) < 0.5.0)
BuildRequires:  (crate(clap/default) >= 2.0.0 with crate(clap/default) < 3.0.0)
BuildRequires:  (crate(colored_json/default) >= 2.0.0 with crate(colored_json/default) < 3.0.0)
BuildRequires:  (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
BuildRequires:  (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0)
BuildRequires:  (crate(varlink/default) >= 7.0.0 with crate(varlink/default) < 8.0.0)
BuildRequires:  (crate(varlink_parser/default) >= 4.0.0 with crate(varlink_parser/default) < 5.0.0)
BuildRequires:  (crate(varlink_stdinterfaces/default) >= 7.0.0 with crate(varlink_stdinterfaces/default) < 8.0.0)
%if %{with check}
BuildRequires:  (crate(escargot/default) >= 0.3.0 with crate(escargot/default) < 0.4.0)
%endif

%global _description \
Varlink command line tool.

%description %{_description}

%package     -n %{crate}
Summary:        %{summary}
# /usr/bin/varlink
Conflicts:      libvarlink-util

%description -n %{crate}
%{summary}.

%files       -n %{crate}
%license LICENSE-APACHE LICENSE-MIT
%doc README.md
%{_bindir}/varlink

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif

%changelog
* Sat Feb 16 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 4.1.0-1
- Update to 4.1.0

* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Thu Dec 13 2018 Josh Stone <jistone@redhat.com> - 3.1.1-1
- Update to 3.1.1

* Mon Dec 10 2018 Josh Stone <jistone@redhat.com> - 3.0.2-1
- Update to 3.0.2

* Thu Dec 06 2018 Josh Stone <jistone@redhat.com> - 3.0.1-1
- Update to 3.0.1

* Mon Dec 03 2018 Josh Stone <jistone@redhat.com> - 3.0.0-2
- Bump to colored_json 0.6

* Thu Nov 29 2018 Josh Stone <jistone@redhat.com> - 3.0.0-1
- Update to 3.0.0

* Sat Nov 17 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.2.0-2
- Adapt to new packaging

* Tue Oct 09 2018 Josh Stone <jistone@redhat.com> - 2.2.0-1
- Update to 2.2.0

* Mon Oct 08 2018 Josh Stone <jistone@redhat.com> - 2.1.5-1
- Update to 2.1.5

* Sun Sep 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.4-1
- Update to 2.1.4

* Sat Aug 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.1.2-1
- Update to 2.1.2

* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 2.0.0-2
- Rebuild with fixed binutils

* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.0.0-1
- Update to 2.0.0

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Tue Jul 03 2018 Josh Stone <jistone@redhat.com> - 1.0.5-1
- Update to 1.0.5

* Fri Jun 22 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.3-1
- Initial package