Initial Fedora package

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
epel9
Michel Alexandre Salim 2 years ago
parent c4159a5946
commit f4cb7e6cff
No known key found for this signature in database
GPG Key ID: 8B229D2F7CCC04F2

1
.gitignore vendored

@ -0,0 +1 @@
/below-btrfs-0.6.3.crate

@ -0,0 +1,11 @@
--- below-btrfs-0.6.3/Cargo.toml 1970-01-01T00:00:01+00:00
+++ below-btrfs-0.6.3/Cargo.toml 2023-01-18T20:41:26.477310+00:00
@@ -31,7 +31,7 @@
version = "0.2.135"
[dependencies.nix]
-version = "0.25"
+version = "0.26"
[dependencies.openat]
version = "0.1.21"

@ -0,0 +1,76 @@
# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate below-btrfs
Name: rust-below-btrfs
Version: 0.6.3
Release: %autorelease
Summary: Crate for reading btrfs
License: Apache-2.0
URL: https://crates.io/crates/below-btrfs
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * bump nix from 0.25 to 0.26
Patch: below-btrfs-fix-metadata.diff
# bindgen code does not work on i686;
# multiple btrfs_api::open_source::btrfs_sys::bindgen_test_layout_btrfs_ioctl_* test failures
ExcludeArch: %{ix86}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Crate for reading btrfs.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE
%doc %{crate_instdir}/README
%{crate_instdir}/
%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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
# sudotest tests fail on koji
%cargo_test -- -- --skip btrfs_api::sudotest::
%endif
%changelog
%autochangelog

@ -0,0 +1 @@
SHA512 (below-btrfs-0.6.3.crate) = 7bed00328495b1c0937a55f96466c09d5a5ab5a4a7679a8d75cb4a0d8f4fa8b8e75929fcec0f42b0d3411251d4e7d1ec27773bb4ffbb35a1dc2135fb763a19b8
Loading…
Cancel
Save