diff --git a/.gitignore b/.gitignore index 7604b76..9651147 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /lscolors-0.13.0.crate /lscolors-0.14.0.crate /lscolors-0.15.0.crate +/lscolors-0.16.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 29316f8..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-lscolors - -The rust-lscolors package \ No newline at end of file diff --git a/lscolors-fix-metadata.diff b/lscolors-fix-metadata.diff deleted file mode 100644 index aa111fe..0000000 --- a/lscolors-fix-metadata.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- lscolors-0.15.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ lscolors-0.15.0/Cargo.toml 2023-10-27T04:06:20.412916+00:00 -@@ -32,7 +32,6 @@ - [profile.release] - lto = true - codegen-units = 1 --strip = true - - [[bin]] - name = "lscolors" diff --git a/rust-lscolors.spec b/rust-lscolors.spec index ccd006b..eda33af 100644 --- a/rust-lscolors.spec +++ b/rust-lscolors.spec @@ -1,10 +1,10 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global crate lscolors Name: rust-lscolors -Version: 0.15.0 +Version: 0.16.0 Release: %autorelease Summary: Colorize paths using the LS_COLORS environment variable @@ -12,11 +12,8 @@ Summary: Colorize paths using the LS_COLORS environment variable License: MIT OR Apache-2.0 URL: https://crates.io/crates/lscolors Source: %{crates_source} -# Manually created patch for downstream crate metadata changes -# * turn off stripping, needed for debug packages -Patch: lscolors-fix-metadata.diff -BuildRequires: rust-packaging >= 23 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Colorize paths using the LS_COLORS environment variable.} @@ -90,6 +87,18 @@ use the "crossterm" feature of the "%{crate}" crate. %files -n %{name}+crossterm-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+gnu_legacy-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+gnu_legacy-devel %{_description} + +This package contains library source intended for building other packages which +use the "gnu_legacy" feature of the "%{crate}" crate. + +%files -n %{name}+gnu_legacy-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+nu-ansi-term-devel Summary: %{summary} BuildArch: noarch @@ -103,23 +112,23 @@ use the "nu-ansi-term" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires -%cargo_generate_buildrequires -f nu-ansi-term +%cargo_generate_buildrequires %build -%cargo_build -f nu-ansi-term -%{cargo_license_summary -f nu-ansi-term} -%{cargo_license -f nu-ansi-term} > LICENSE.dependencies +%cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies %install -%cargo_install -f nu-ansi-term +%cargo_install %if %{with check} %check -%cargo_test -f nu-ansi-term +%cargo_test %endif %changelog diff --git a/sources b/sources index 7deaeae..d2cf53e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lscolors-0.15.0.crate) = 230c2e4e60ec678ba6240849b5b302d862e8f3f25017a9ccee7cd8d57d88ee629b2673f9f5f0c1e27384fd662aee6e132123f043173888470f4e299a4cf64d82 +SHA512 (lscolors-0.16.0.crate) = 3b6f65e5cdad090fb05b278d4f5cc3d3219dcaa5413dcdb20ca4f673842906c09c71fab4dfe23a3669a9a3781af0d08a793e1626900a078e7e776286c676195a