From 7f4f6331b29be8ef0ec756f74404ceaee648baff Mon Sep 17 00:00:00 2001 From: Igor Raits Date: Fri, 26 Jun 2020 19:21:51 +0200 Subject: [PATCH] Modify for stable releases Signed-off-by: Igor Raits --- rust-skim.spec | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/rust-skim.spec b/rust-skim.spec index 1069076..5447e8f 100644 --- a/rust-skim.spec +++ b/rust-skim.spec @@ -1,5 +1,7 @@ # Generated by rust2rpm 15 %bcond_without check +# No devel stuff in released Fedora +%global __cargo_is_lib() false %global crate skim @@ -14,9 +16,6 @@ URL: https://crates.io/crates/skim Source: %{crates_source} ExclusiveArch: %{rust_arches} -%if %{__cargo_skip_build} -BuildArch: noarch -%endif BuildRequires: rust-packaging @@ -25,7 +24,6 @@ Fuzzy Finder in rust!.} %description %{_description} -%if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} # (MIT or ASL 2.0) and BSD @@ -53,33 +51,6 @@ License: MIT and BSD and MPLv2.0 %dir %{_datadir}/zsh %dir %{_datadir}/zsh/site-functions %{_datadir}/zsh/site-functions/_sk -%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 -%doc CHANGELOG.md 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