From dde51e1f6705fbee72f11861a361771036bc607f Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 11 May 2023 13:39:30 +0200 Subject: [PATCH] Initial import (#2193415) --- .gitignore | 1 + README.md | 3 -- anstyle-query-fix-metadata-auto.diff | 12 +++++ rust-anstyle-query.spec | 71 ++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 anstyle-query-fix-metadata-auto.diff create mode 100644 rust-anstyle-query.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16dae5c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/anstyle-query-1.0.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 12f03a3..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-anstyle-query - -The rust-anstyle-query package diff --git a/anstyle-query-fix-metadata-auto.diff b/anstyle-query-fix-metadata-auto.diff new file mode 100644 index 0000000..aadec4d --- /dev/null +++ b/anstyle-query-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- anstyle-query-1.0.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ anstyle-query-1.0.0/Cargo.toml 2023-05-05T15:01:07.594233+00:00 +@@ -71,9 +71,3 @@ + [Unreleased]: https://github.com/rust-cli/anstyle/compare/{{tag_name}}...HEAD""" + exactly = 1 + +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.48.0" +-features = [ +- "Win32_System_Console", +- "Win32_Foundation", +-] diff --git a/rust-anstyle-query.spec b/rust-anstyle-query.spec new file mode 100644 index 0000000..d787f9e --- /dev/null +++ b/rust-anstyle-query.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate anstyle-query + +Name: rust-anstyle-query +Version: 1.0.0 +Release: %autorelease +Summary: Look up colored console capabilities + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/anstyle-query +Source: %{crates_source} +# Automatically generated patch to strip foreign dependencies +Patch: anstyle-query-fix-metadata-auto.diff + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Look up colored console capabilities.} + +%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_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..a6fcbc4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (anstyle-query-1.0.0.crate) = 2781be5c82293b7ae338ec5046fbeb130de9eb2dbf2e4dfaa73ca5233032e1e52c133e141b02f33d4bc36d996a0a3f680ac82d42d614a5305005f60547133c7a