diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ef791d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/print-positions-0.6.1.crate diff --git a/rust-print-positions.spec b/rust-print-positions.spec new file mode 100644 index 0000000..b50aa8a --- /dev/null +++ b/rust-print-positions.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate print-positions + +Name: rust-print-positions +Version: 0.6.1 +Release: %autorelease +Summary: String segmentation library for grapheme clusters and ANSI escape sequences + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/print-positions +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +A library providing string segmentation on grapheme clusters and ANSI +escape sequences for accurate length arithmetic based on visible print +positions.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE.txt +%license %{crate_instdir}/LICENSE-MIT.txt +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..b1caaee --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (print-positions-0.6.1.crate) = c6f3cf45093da391bd02ef312ea03f33fe04aeb001cf827e0c410924ad121e389f6664359a239ebe2ad2e65127b797f506ac017698e389c34085f0afe39ea66c