58 lines
1.4 KiB
RPMSpec
58 lines
1.4 KiB
RPMSpec
# Generated by rust2rpm
|
|
%bcond_without check
|
|
|
|
%global crate sd
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.5.0
|
|
Release: 1%{?dist}
|
|
Summary: An intuitive find & replace CLI
|
|
|
|
License: MIT
|
|
URL: https://crates.io/crates/sd
|
|
Source: %{crates_source}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
BuildRequires: (crate(atomicwrites/default) >= 0.2.2 with crate(atomicwrites/default) < 0.3.0)
|
|
BuildRequires: (crate(rayon/default) >= 1.0.3 with crate(rayon/default) < 2.0.0)
|
|
BuildRequires: (crate(regex-syntax/default) >= 0.6.5 with crate(regex-syntax/default) < 0.7.0)
|
|
BuildRequires: (crate(regex/default) >= 1.1.0 with crate(regex/default) < 2.0.0)
|
|
BuildRequires: (crate(structopt/default) >= 0.2.14 with crate(structopt/default) < 0.3.0)
|
|
BuildRequires: (crate(unescape/default) >= 0.1.0 with crate(unescape/default) < 0.2.0)
|
|
|
|
%global _description \
|
|
An intuitive find & replace CLI.
|
|
|
|
%description %{_description}
|
|
|
|
%package -n %{crate}
|
|
Summary: %{summary}
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%files -n %{crate}
|
|
%doc CHANGELOG.md README.md
|
|
%license LICENSE
|
|
%{_bindir}/sd
|
|
|
|
%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 Apr 13 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.5.0-1
|
|
- Initial package
|