diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbfacf9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/strip-ansi-escapes-0.1.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 49448c0..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-strip-ansi-escapes0.1 - -The rust-strip-ansi-escapes0.1 package diff --git a/rust-strip-ansi-escapes0.1.spec b/rust-strip-ansi-escapes0.1.spec new file mode 100644 index 0000000..17eb9a4 --- /dev/null +++ b/rust-strip-ansi-escapes0.1.spec @@ -0,0 +1,73 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate strip-ansi-escapes + +Name: rust-strip-ansi-escapes0.1 +Version: 0.1.1 +Release: %autorelease +Summary: Strip ANSI escape sequences from byte streams + +# Upstream license specification: Apache-2.0/MIT +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/strip-ansi-escapes +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * bump vte dependency from 0.10 to 0.11 +Patch: strip-ansi-escapes-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Strip ANSI escape sequences from byte streams.} + +%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 +%license %{crate_instdir}/LICENSE-MIT +%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} -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..612e869 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (strip-ansi-escapes-0.1.1.crate) = ebcddc0af68f7263726d8f9dc3825819ea75389bc6f97f97f0238b17a06e0596f1562ddcf065178940e4f1963bf7a2b99eb02ec124f9f633b2fab1b443bb5717 diff --git a/strip-ansi-escapes-fix-metadata.diff b/strip-ansi-escapes-fix-metadata.diff new file mode 100644 index 0000000..cf14c5e --- /dev/null +++ b/strip-ansi-escapes-fix-metadata.diff @@ -0,0 +1,8 @@ +--- strip-ansi-escapes-0.1.1/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ strip-ansi-escapes-0.1.1/Cargo.toml 2023-10-14T19:59:57.585218+00:00 +@@ -22,4 +22,4 @@ + license = "Apache-2.0/MIT" + repository = "https://github.com/luser/strip-ansi-escapes" + [dependencies.vte] +-version = "0.10" ++version = "0.11"