66 lines
1.7 KiB
RPMSpec
66 lines
1.7 KiB
RPMSpec
# Generated by rust2rpm 10
|
|
%bcond_without check
|
|
%global __cargo_skip_build 0
|
|
|
|
%global crate sd
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.6.5
|
|
Release: 1%{?dist}
|
|
Summary: Intuitive find & replace CLI
|
|
|
|
License: MIT
|
|
URL: https://crates.io/crates/sd
|
|
Source: %{crates_source}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
BuildRequires: (crate(man/default) >= 0.3.0 with crate(man/default) < 0.4.0)
|
|
BuildRequires: (crate(memmap/default) >= 0.7.0 with crate(memmap/default) < 0.8.0)
|
|
BuildRequires: (crate(rayon/default) >= 1.1.0 with crate(rayon/default) < 2.0.0)
|
|
BuildRequires: (crate(regex/default) >= 1.1.7 with crate(regex/default) < 2.0.0)
|
|
BuildRequires: (crate(structopt/default) >= 0.2.16 with crate(structopt/default) < 0.3.0)
|
|
BuildRequires: (crate(tempfile/default) >= 3.0.8 with crate(tempfile/default) < 4.0.0)
|
|
BuildRequires: (crate(unescape/default) >= 0.1.0 with crate(unescape/default) < 0.2.0)
|
|
|
|
%global _description %{expand:
|
|
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
|
|
* Tue Jun 18 23:58:04 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.6.5-1
|
|
- Release 0.6.5 (#1721651)
|
|
|
|
* Sun Jun 16 20:10:19 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.6.1-1
|
|
- Release 0.6.1
|
|
|
|
* Sat Apr 13 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.5.0-1
|
|
- Initial package
|