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

143 lines
3.8 KiB

# Generated by rust2rpm 16
%bcond_without check
%global debug_package %{nil}
%global crate link-cplusplus
Name: rust-%{crate}
Version: 1.0.5
Release: 2%{?dist}
Summary: Link libstdc++ or libc++ automatically or manually
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/link-cplusplus
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Link libstdc++ or libc++ automatically or manually.}
%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
%doc README.md
%license LICENSE-APACHE
%license LICENSE-MIT
%{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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+libc++-devel
Summary: %{summary}
BuildArch: noarch
Provides: crate(%{crate}/libc++) = %{version_no_tilde}
%description -n %{name}+libc++-devel %{_description}
This package contains library source intended for building other packages
which use "libc++" feature of "%{crate}" crate.
%files -n %{name}+libc++-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+libcxx-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+libcxx-devel %{_description}
This package contains library source intended for building other packages
which use "libcxx" feature of "%{crate}" crate.
%files -n %{name}+libcxx-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+libstdc++-devel
Summary: %{summary}
BuildArch: noarch
Provides: crate(%{crate}/libstdc++) = %{version_no_tilde}
%description -n %{name}+libstdc++-devel %{_description}
This package contains library source intended for building other packages
which use "libstdc++" feature of "%{crate}" crate.
%files -n %{name}+libstdc++-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+libstdcxx-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+libstdcxx-devel %{_description}
This package contains library source intended for building other packages
which use "libstdcxx" feature of "%{crate}" crate.
%files -n %{name}+libstdcxx-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%package -n %{name}+nothing-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+nothing-devel %{_description}
This package contains library source intended for building other packages
which use "nothing" feature of "%{crate}" crate.
%files -n %{name}+nothing-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 -a
%build
%cargo_build -a
%install
%cargo_install -a
%if %{with check}
%check
%cargo_test -a
%endif
%changelog
* Thu Feb 11 2021 Jan Staněk <jstanek@redhat.com> - 1.0.5-2
- Mark license files
* Mon Feb 01 14:53:29 CET 2021 Jan Staněk <jstanek@redhat.com> - 1.0.5-1
- Initial package
- Manually specify provides for libc++/libstdc++ (https://pagure.io/fedora-rust/rust2rpm/pull-request/123)