Modify for stable releases

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-03-23 07:43:40 +01:00
parent 9020f8aa1c
commit f6b252cd42
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
1 changed files with 2 additions and 31 deletions

View File

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