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.
rust-goblin/rust-goblin.spec

208 lines
5.6 KiB

5 years ago
# Generated by rust2rpm 13
%bcond_with check
%global debug_package %{nil}
%global crate goblin
Name: rust-%{crate}
5 years ago
Version: 0.2.3
Release: %autorelease
Summary: Impish, cross-platform, ELF, Mach-o, and PE binary parsing and loading crate
5 years ago
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/goblin
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
5 years ago
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
5 years ago
%global _description %{expand:
An impish, cross-platform, ELF, Mach-o, and PE binary parsing and loading crate.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE
%doc CHANGELOG.md README.md
5 years ago
%{cargo_registry}/%{crate}-%{version_no_tilde}/
5 years ago
%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/tests/bins/
%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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+alloc-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+alloc-devel %{_description}
This package contains library source intended for building other packages
which use "alloc" feature of "%{crate}" crate.
%files -n %{name}+alloc-devel
5 years ago
%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 "archive" feature of "%{crate}" crate.
%files -n %{name}+archive-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+elf32-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+elf32-devel %{_description}
This package contains library source intended for building other packages
which use "elf32" feature of "%{crate}" crate.
%files -n %{name}+elf32-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+elf64-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+elf64-devel %{_description}
This package contains library source intended for building other packages
which use "elf64" feature of "%{crate}" crate.
%files -n %{name}+elf64-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+endian_fd-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+endian_fd-devel %{_description}
This package contains library source intended for building other packages
which use "endian_fd" feature of "%{crate}" crate.
%files -n %{name}+endian_fd-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+log-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+log-devel %{_description}
This package contains library source intended for building other packages
which use "log" feature of "%{crate}" crate.
%files -n %{name}+log-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+mach32-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+mach32-devel %{_description}
This package contains library source intended for building other packages
which use "mach32" feature of "%{crate}" crate.
%files -n %{name}+mach32-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+mach64-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+mach64-devel %{_description}
This package contains library source intended for building other packages
which use "mach64" feature of "%{crate}" crate.
%files -n %{name}+mach64-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+pe32-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+pe32-devel %{_description}
This package contains library source intended for building other packages
which use "pe32" feature of "%{crate}" crate.
%files -n %{name}+pe32-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+pe64-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+pe64-devel %{_description}
This package contains library source intended for building other packages
which use "pe64" feature of "%{crate}" crate.
%files -n %{name}+pe64-devel
5 years ago
%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 "std" feature of "%{crate}" crate.
%files -n %{name}+std-devel
5 years ago
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
5 years ago
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog