diff --git a/README.md b/README.md deleted file mode 100644 index d8b7823..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-atty - -The rust-atty package \ No newline at end of file diff --git a/atty-fix-metadata.diff b/atty-fix-metadata-auto.diff similarity index 89% rename from atty-fix-metadata.diff rename to atty-fix-metadata-auto.diff index 0409b92..96a2d2f 100644 --- a/atty-fix-metadata.diff +++ b/atty-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- atty-0.2.14/Cargo.toml 2020-01-05T22:19:30+00:00 -+++ atty-0.2.14/Cargo.toml 2020-01-07T18:32:58.075544+00:00 ++++ atty-0.2.14/Cargo.toml 2023-05-25T18:14:49.045407+00:00 @@ -22,13 +22,8 @@ keywords = ["terminal", "tty", "isatty"] license = "MIT" diff --git a/rust-atty.spec b/rust-atty.spec index eeab141..b70a2a3 100644 --- a/rust-atty.spec +++ b/rust-atty.spec @@ -1,32 +1,25 @@ -# Generated by rust2rpm 19 -# * Checks are pretty much useless, because they rely on tty +# Generated by rust2rpm 24 +# * tests can only be run on a real TTY %bcond_with check %global debug_package %{nil} %global crate atty -Name: rust-%{crate} +Name: rust-atty Version: 0.2.14 Release: %autorelease Summary: Simple interface for querying atty -# Upstream license specification: MIT License: MIT URL: https://crates.io/crates/atty Source: %{crates_source} -# Initial patched metadata -# * No windows/hermit -Patch0: atty-fix-metadata.diff +# Automatically generated patch to strip foreign dependencies +Patch: atty-fix-metadata-auto.diff -ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif - -BuildRequires: rust-packaging +BuildRequires: rust-packaging >= 21 %global _description %{expand: -Simple interface for querying atty.} +A simple interface for querying atty.} %description %{_description} @@ -37,12 +30,13 @@ BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which -use "%{crate}" crate. +use the "%{crate}" crate. %files devel -%license LICENSE -%doc CHANGELOG.md README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} @@ -51,10 +45,10 @@ 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. +use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml +%ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1