Update to new macro

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-06-22 22:03:32 +02:00
parent 12d8ba87ba
commit 94f3e25804
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
1 changed files with 7 additions and 6 deletions

View File

@ -1,13 +1,11 @@
# Generated by rust2rpm
%bcond_without check
%global __cargo_common_opts %{__cargo_common_opts} --features all
%global crate tokei
Name: rust-%{crate}
Version: 7.0.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Utility that allows you to count code, quickly
License: MIT or ASL 2.0
@ -67,14 +65,14 @@ which use %{crate} from crates.io.
%cargo_prep
%build
%cargo_build
%cargo_build -a
%install
%cargo_install
%cargo_install -a
%if %{with check}
%check
%cargo_test
%cargo_test -a
%endif
%files -n %{crate}
@ -86,6 +84,9 @@ which use %{crate} from crates.io.
%{cargo_registry}/%{crate}-%{version}/
%changelog
* Fri Jun 22 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 7.0.3-2
- Update to new macro
* Thu Jun 14 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 7.0.3-1
- Update to 7.0.3