You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
279 lines
7.9 KiB
279 lines
7.9 KiB
# Generated by rust2rpm 20
|
|
%bcond_without check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate object
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.27.1
|
|
Release: %autorelease
|
|
Summary: Unified interface for reading and writing object file formats
|
|
|
|
# Upstream license specification: Apache-2.0/MIT
|
|
License: ASL 2.0 or MIT
|
|
URL: https://crates.io/crates/object
|
|
Source: %{crates_source}
|
|
# Initial patched metadata
|
|
# * disable WASM support (wasmparser dependency is very outdated)
|
|
Patch0: object-fix-metadata.diff
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
%global _description %{expand:
|
|
Unified interface for reading and writing object file formats.}
|
|
|
|
%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 LICENSE-APACHE LICENSE-MIT
|
|
%doc CHANGELOG.md 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 the "default" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+default-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+all-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+all-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "all" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+all-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+archive-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+archive-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "archive" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+archive-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+cargo-all-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+cargo-all-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "cargo-all" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+cargo-all-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+coff-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+coff-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "coff" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+coff-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+compression-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+compression-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "compression" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+compression-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+crc32fast-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+crc32fast-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "crc32fast" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+crc32fast-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+elf-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+elf-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "elf" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+elf-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+flate2-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+flate2-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "flate2" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+flate2-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+indexmap-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+indexmap-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "indexmap" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+indexmap-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+macho-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+macho-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "macho" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+macho-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+pe-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+pe-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "pe" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+pe-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+read-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+read-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "read" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+read-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+read_core-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+read_core-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "read_core" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+read_core-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+std-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+std-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "std" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+std-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+unaligned-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+unaligned-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "unaligned" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+unaligned-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+write-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+write-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "write" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+write-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+write_core-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+write_core-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages which
|
|
use the "write_core" feature of the "%{crate}" crate.
|
|
|
|
%files -n %{name}+write_core-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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
|
|
%cargo_test
|
|
%endif
|
|
|
|
%changelog
|
|
%autochangelog
|