diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09cc0c2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sd-0.5.0.crate diff --git a/rust-sd.spec b/rust-sd.spec new file mode 100644 index 0000000..fe5d84d --- /dev/null +++ b/rust-sd.spec @@ -0,0 +1,58 @@ +# 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} +%{summary}. + +%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 - 0.5.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..a09baf1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sd-0.5.0.crate) = de0c6808dec0301bdc157f0b1ed9f4f703bbddc76b92e1e70034a7b82c8fc42801e5dcfad95a047c552cc69fff8e34208a9832f1d3aac1ed61a3618b338135c0