Initial import (#1927763)

epel10
Jan Staněk 4 years ago
parent 9677ed7e4f
commit 422d96a581
No known key found for this signature in database
GPG Key ID: 2972F2037B243B6D

1
.gitignore vendored

@ -0,0 +1 @@
/link-cplusplus-1.0.5.crate

@ -0,0 +1,142 @@
# 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)

@ -0,0 +1 @@
SHA512 (link-cplusplus-1.0.5.crate) = 0fea25a73010fda595c322d7c811ef3b3f8df875fd0e9bdf4a35f869ff4978ad531baf6036d28f5ddd3fe465c18c97327ab8f3a90721cd29110bfdf473689e99
Loading…
Cancel
Save