commit 971f02a5fb69d2d59e2f15d831feb44c0c0ff687 Author: tigro Date: Mon Jan 15 20:38:51 2024 +0300 import rust-btrd-0.5.2-1.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..266ebc3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/btrd-0.5.2-vendor.tar.gz diff --git a/.rust-btrd.metadata b/.rust-btrd.metadata new file mode 100644 index 0000000..9c0c3e6 --- /dev/null +++ b/.rust-btrd.metadata @@ -0,0 +1 @@ +0e13f1c21917730315d52da015e2f71472ec7c8a SOURCES/btrd-0.5.2-vendor.tar.gz diff --git a/SOURCES/btrd-0.5.2.crate b/SOURCES/btrd-0.5.2.crate new file mode 100644 index 0000000..5b22e6d Binary files /dev/null and b/SOURCES/btrd-0.5.2.crate differ diff --git a/SPECS/rust-btrd.spec b/SPECS/rust-btrd.spec new file mode 100644 index 0000000..f5770fc --- /dev/null +++ b/SPECS/rust-btrd.spec @@ -0,0 +1,128 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.2.6) +%define autorelease(e:s:pb:) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} +## END: Set by rpmautospec + +# Generated by rust2rpm 21 +%bcond_without check + +%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} +Version: 0.5.2 +Release: %autorelease +Summary: Btrfs debugger + +# Upstream license specification: GPL-2.0 +License: GPLv2 +URL: https://crates.io/crates/btrd +Source: %{crates_source} +# vendored dependencies for EPEL +# update with ./update-vendor-tarball.sh after bumping the specfile version +Source1: %{crate}-%{version}-vendor.tar.gz + +ExclusiveArch: %{rust_arches} + +%if 0%{?rhel} +BuildRequires: rust-toolset +%else +BuildRequires: rust-packaging >= 21 +%endif + +%global _description %{expand: +btrd is a REPL debugger that helps inspect mounted btrfs filesystems. btrd is +particularly useful in exploring on-disk structures and has full knowledge of +all on-disk types.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%doc scripts README.md +%{_bindir}/btrd + +%if 0%{?fedora} +%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.md +%doc %{crate_instdir}/docs +%{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 +%endif + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%if 0%{?rhel} +%cargo_prep -V 1 +%else +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires +%endif + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 0.5.2-1 +- Rebuilt for MSVSphere 9.3 + +* Thu May 19 2022 Davide Cavalca 0.5.2-1 +- Update to 0.5.2 and build for EPEL + +* Sun Feb 20 2022 Igor Raits 0.5.0-4 +- Update simplelog to 0.11 + +* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek 0.5.0-3 +- Rebuild with package notes + +* Fri Jan 21 2022 Fedora Release Engineering 0.5.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Oct 27 2021 Davide Cavalca 0.5.0-1 +- Initial import; Fixes: RHBZ#1980426