|
|
@ -1,10 +1,17 @@
|
|
|
|
# Generated by rust2rpm 20
|
|
|
|
# Generated by rust2rpm 21
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
|
|
%global crate btrd
|
|
|
|
%global crate btrd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?el8}
|
|
|
|
|
|
|
|
# el8 doesn't have these macros
|
|
|
|
|
|
|
|
%global __crates_url https://crates.io/api/v1/crates/
|
|
|
|
|
|
|
|
%global crates_source %{__crates_url}%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
|
|
|
|
|
|
|
%global version_no_tilde %{version}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.5.0
|
|
|
|
Version: 0.5.2
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Btrfs debugger
|
|
|
|
Summary: Btrfs debugger
|
|
|
|
|
|
|
|
|
|
|
@ -12,15 +19,17 @@ Summary: Btrfs debugger
|
|
|
|
License: GPLv2
|
|
|
|
License: GPLv2
|
|
|
|
URL: https://crates.io/crates/btrd
|
|
|
|
URL: https://crates.io/crates/btrd
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Initial patched metadata
|
|
|
|
# vendored dependencies for EPEL
|
|
|
|
# * Update simplelog to 0.11, https://github.com/danobi/btrd/pull/15
|
|
|
|
# update with ./update-vendor-tarball.sh after bumping the specfile version
|
|
|
|
Patch0: btrd-fix-metadata.diff
|
|
|
|
Source1: %{crate}-%{version}-vendor.tar.gz
|
|
|
|
# Backport of PR#13: Bump nix to 0.22
|
|
|
|
|
|
|
|
Patch1: btrd-bump-nix.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
|
|
|
BuildRequires: rust-toolset
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
btrd is a REPL debugger that helps inspect mounted btrfs filesystems. btrd is
|
|
|
|
btrd is a REPL debugger that helps inspect mounted btrfs filesystems. btrd is
|
|
|
@ -39,6 +48,7 @@ Summary: %{summary}
|
|
|
|
%doc scripts README.md
|
|
|
|
%doc scripts README.md
|
|
|
|
%{_bindir}/btrd
|
|
|
|
%{_bindir}/btrd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
@ -49,9 +59,10 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "%{crate}" crate.
|
|
|
|
use the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%license %{crate_instdir}/LICENSE
|
|
|
|
%doc docs README.md
|
|
|
|
%doc %{crate_instdir}/README.md
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
%doc %{crate_instdir}/docs
|
|
|
|
|
|
|
|
%{crate_instdir}/
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -63,14 +74,19 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "default" feature of the "%{crate}" crate.
|
|
|
|
use the "default" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%files -n %{name}+default-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
|
|
|
%cargo_prep -V 1
|
|
|
|
|
|
|
|
%else
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|