Compare commits

...

1 Commits
rawhide ... f33

Author SHA1 Message Date
Igor Raits 78f0ee235a
Modify for stable releases
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-08-18 10:42:37 +02:00
1 changed files with 3 additions and 31 deletions

View File

@ -1,5 +1,8 @@
# Generated by rust2rpm 13
%bcond_without check
# No devel stuff in released Fedora
%global __cargo_skip_build 0
%global __cargo_is_lib() false
%global crate rpick
@ -14,9 +17,6 @@ URL: https://crates.io/crates/rpick
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
@ -26,7 +26,6 @@ restaurant you haven't been to in a while, or an album to listen to.}
%description %{_description}
%if ! %{__cargo_skip_build}
%package -n %{crate}
Summary: %{summary}
# Install all deps (without check), grab their licenses and make it simple
@ -43,33 +42,6 @@ License: GPLv3 and MIT and BSD and CC0
%license LICENSE
%doc README.md
%{_bindir}/rpick
%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 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