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

165 lines
4.5 KiB

# Generated by rust2rpm 18
# * resolve circular dependency with object and addr2line
%bcond_with check
%global debug_package %{nil}
%global crate gimli
Name: rust-%{crate}
Version: 0.25.0
Release: %autorelease
Summary: Library for reading and writing the DWARF debugging format
# Upstream license specification: Apache-2.0/MIT
License: ASL 2.0 or MIT
URL: https://crates.io/crates/gimli
Source: %{crates_source}
# Initial patched metadata
# * drop dependencies on compiler internals
Patch0: gimli-fix-metadata.diff
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Library for reading and writing the DWARF debugging format.}
%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-APACHE LICENSE-MIT
%doc CHANGELOG.md CONTRIBUTING.md README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%exclude %{cargo_registry}/%{crate}-%{version_no_tilde}/{fixtures/,rustfmt.toml}
%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
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+endian-reader-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+endian-reader-devel %{_description}
This package contains library source intended for building other packages
which use "endian-reader" feature of "%{crate}" crate.
%files -n %{name}+endian-reader-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+fallible-iterator-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+fallible-iterator-devel %{_description}
This package contains library source intended for building other packages
which use "fallible-iterator" feature of "%{crate}" crate.
%files -n %{name}+fallible-iterator-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 "indexmap" feature of "%{crate}" crate.
%files -n %{name}+indexmap-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 "read" feature of "%{crate}" crate.
%files -n %{name}+read-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+stable_deref_trait-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+stable_deref_trait-devel %{_description}
This package contains library source intended for building other packages
which use "stable_deref_trait" feature of "%{crate}" crate.
%files -n %{name}+stable_deref_trait-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 "std" feature of "%{crate}" crate.
%files -n %{name}+std-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 "write" feature of "%{crate}" crate.
%files -n %{name}+write-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
find -type f -name '*.rs' -exec chmod -c -x '{}' '+'
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog