|
|
@ -1,25 +1,24 @@
|
|
|
|
# Generated by rust2rpm 20
|
|
|
|
# Generated by rust2rpm 22
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
%global crate object
|
|
|
|
%global crate object
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Name: rust-object
|
|
|
|
Version: 0.27.1
|
|
|
|
Version: 0.29.0
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Unified interface for reading and writing object file formats
|
|
|
|
Summary: Unified interface for reading and writing object file formats
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream license specification: Apache-2.0/MIT
|
|
|
|
License: Apache-2.0 OR MIT
|
|
|
|
License: ASL 2.0 or MIT
|
|
|
|
|
|
|
|
URL: https://crates.io/crates/object
|
|
|
|
URL: https://crates.io/crates/object
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Initial patched metadata
|
|
|
|
# Manually created patch for downstream crate metadata changes
|
|
|
|
# * disable WASM support (wasmparser dependency is very outdated)
|
|
|
|
# * disable WASM support (wasmparser dependency is very outdated)
|
|
|
|
Patch0: object-fix-metadata.diff
|
|
|
|
Patch: object-fix-metadata.diff
|
|
|
|
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Unified interface for reading and writing object file formats.}
|
|
|
|
Unified interface for reading and writing object file formats.}
|
|
|
@ -36,9 +35,11 @@ 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-APACHE LICENSE-MIT
|
|
|
|
%license %{crate_instdir}/LICENSE-APACHE
|
|
|
|
%doc CHANGELOG.md README.md
|
|
|
|
%license %{crate_instdir}/LICENSE-MIT
|
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
|
|
|
%doc %{crate_instdir}/CHANGELOG.md
|
|
|
|
|
|
|
|
%doc %{crate_instdir}/README.md
|
|
|
|
|
|
|
|
%{crate_instdir}/
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -50,7 +51,7 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+all-devel
|
|
|
|
%package -n %{name}+all-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -62,7 +63,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "all" feature of the "%{crate}" crate.
|
|
|
|
use the "all" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+all-devel
|
|
|
|
%files -n %{name}+all-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+archive-devel
|
|
|
|
%package -n %{name}+archive-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -74,7 +75,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "archive" feature of the "%{crate}" crate.
|
|
|
|
use the "archive" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+archive-devel
|
|
|
|
%files -n %{name}+archive-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+cargo-all-devel
|
|
|
|
%package -n %{name}+cargo-all-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -86,7 +87,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "cargo-all" feature of the "%{crate}" crate.
|
|
|
|
use the "cargo-all" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+cargo-all-devel
|
|
|
|
%files -n %{name}+cargo-all-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+coff-devel
|
|
|
|
%package -n %{name}+coff-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -98,7 +99,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "coff" feature of the "%{crate}" crate.
|
|
|
|
use the "coff" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+coff-devel
|
|
|
|
%files -n %{name}+coff-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+compression-devel
|
|
|
|
%package -n %{name}+compression-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -110,7 +111,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "compression" feature of the "%{crate}" crate.
|
|
|
|
use the "compression" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+compression-devel
|
|
|
|
%files -n %{name}+compression-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+crc32fast-devel
|
|
|
|
%package -n %{name}+crc32fast-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -122,7 +123,19 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "crc32fast" feature of the "%{crate}" crate.
|
|
|
|
use the "crc32fast" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+crc32fast-devel
|
|
|
|
%files -n %{name}+crc32fast-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+doc-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+doc-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
|
|
|
use the "doc" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+doc-devel
|
|
|
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+elf-devel
|
|
|
|
%package -n %{name}+elf-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -134,7 +147,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "elf" feature of the "%{crate}" crate.
|
|
|
|
use the "elf" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+elf-devel
|
|
|
|
%files -n %{name}+elf-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+flate2-devel
|
|
|
|
%package -n %{name}+flate2-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -146,7 +159,19 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "flate2" feature of the "%{crate}" crate.
|
|
|
|
use the "flate2" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+flate2-devel
|
|
|
|
%files -n %{name}+flate2-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+hashbrown-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+hashbrown-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
|
|
|
use the "hashbrown" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+hashbrown-devel
|
|
|
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+indexmap-devel
|
|
|
|
%package -n %{name}+indexmap-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -158,7 +183,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "indexmap" feature of the "%{crate}" crate.
|
|
|
|
use the "indexmap" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+indexmap-devel
|
|
|
|
%files -n %{name}+indexmap-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+macho-devel
|
|
|
|
%package -n %{name}+macho-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -170,7 +195,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "macho" feature of the "%{crate}" crate.
|
|
|
|
use the "macho" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+macho-devel
|
|
|
|
%files -n %{name}+macho-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+pe-devel
|
|
|
|
%package -n %{name}+pe-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -182,7 +207,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "pe" feature of the "%{crate}" crate.
|
|
|
|
use the "pe" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+pe-devel
|
|
|
|
%files -n %{name}+pe-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+read-devel
|
|
|
|
%package -n %{name}+read-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -194,7 +219,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "read" feature of the "%{crate}" crate.
|
|
|
|
use the "read" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+read-devel
|
|
|
|
%files -n %{name}+read-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+read_core-devel
|
|
|
|
%package -n %{name}+read_core-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -206,7 +231,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "read_core" feature of the "%{crate}" crate.
|
|
|
|
use the "read_core" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+read_core-devel
|
|
|
|
%files -n %{name}+read_core-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+std-devel
|
|
|
|
%package -n %{name}+std-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -218,7 +243,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "std" feature of the "%{crate}" crate.
|
|
|
|
use the "std" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+std-devel
|
|
|
|
%files -n %{name}+std-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+unaligned-devel
|
|
|
|
%package -n %{name}+unaligned-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -230,7 +255,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "unaligned" feature of the "%{crate}" crate.
|
|
|
|
use the "unaligned" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+unaligned-devel
|
|
|
|
%files -n %{name}+unaligned-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+write-devel
|
|
|
|
%package -n %{name}+write-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -242,7 +267,7 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "write" feature of the "%{crate}" crate.
|
|
|
|
use the "write" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+write-devel
|
|
|
|
%files -n %{name}+write-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+write_core-devel
|
|
|
|
%package -n %{name}+write_core-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
Summary: %{summary}
|
|
|
@ -254,7 +279,19 @@ This package contains library source intended for building other packages which
|
|
|
|
use the "write_core" feature of the "%{crate}" crate.
|
|
|
|
use the "write_core" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+write_core-devel
|
|
|
|
%files -n %{name}+write_core-devel
|
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{name}+write_std-devel
|
|
|
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{name}+write_std-devel %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
|
|
|
|
use the "write_std" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n %{name}+write_std-devel
|
|
|
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
@ -271,7 +308,8 @@ use the "write_core" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
# * skip tests that require files which are not included in published crates
|
|
|
|
|
|
|
|
%cargo_test -- -- --skip read::coff::coff_extended_relocations
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|