Modify for stable releases

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-06-26 19:21:51 +02:00
parent 6c7780adf8
commit 7f4f6331b2
No known key found for this signature in database
GPG Key ID: 115D5AB89C5C1E1E
1 changed files with 2 additions and 31 deletions

View File

@ -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