From f6b252cd423b040f15c5441250db1214e456616d Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Mon, 23 Mar 2020 07:43:40 +0100 Subject: [PATCH] Modify for stable releases Signed-off-by: Igor Raits --- rust-bat.spec | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/rust-bat.spec b/rust-bat.spec index 707b205..d8aae05 100644 --- a/rust-bat.spec +++ b/rust-bat.spec @@ -1,6 +1,8 @@ # Generated by rust2rpm 13 # * assert_cmd is not packaged %bcond_with check +# No devel stuff in released Fedora +%global __cargo_is_lib() false %global crate bat @@ -19,9 +21,6 @@ Patch0: bat-fix-metadata.diff Patch0001: 0001-chore-Update-liquid-to-0.20.patch ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -30,7 +29,6 @@ Cat(1) clone with wings.} %description %{_description} -%if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} # Install all deps (without check), grab their licenses and make it simple @@ -57,33 +55,6 @@ License: ASL 2.0 and BSD and CC0 and ISC and LGPLv3+ and MIT and zlib %dir %{_datadir}/fish %dir %{_datadir}/fish/vendor_completions.d %{_datadir}/fish/vendor_completions.d/bat.fish -%endif - -%package devel -Summary: %{summary} -BuildArch: noarch - -%description devel %{_description} - -This package contains library source intended for building other packages -which use "%{crate}" crate. - -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version_no_tilde}/ - -%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 "default" feature of "%{crate}" crate. - -%files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1