From 422d96a581aef7ff40946e87a905b1d11cb77b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Stan=C4=9Bk?= Date: Wed, 17 Feb 2021 16:10:10 +0100 Subject: [PATCH] Initial import (#1927763) --- .gitignore | 1 + rust-link-cplusplus.spec | 142 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 144 insertions(+) create mode 100644 .gitignore create mode 100644 rust-link-cplusplus.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a167a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/link-cplusplus-1.0.5.crate diff --git a/rust-link-cplusplus.spec b/rust-link-cplusplus.spec new file mode 100644 index 0000000..08918a1 --- /dev/null +++ b/rust-link-cplusplus.spec @@ -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 - 1.0.5-2 +- Mark license files + +* Mon Feb 01 14:53:29 CET 2021 Jan Staněk - 1.0.5-1 +- Initial package +- Manually specify provides for libc++/libstdc++ (https://pagure.io/fedora-rust/rust2rpm/pull-request/123) diff --git a/sources b/sources new file mode 100644 index 0000000..ac69173 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (link-cplusplus-1.0.5.crate) = 0fea25a73010fda595c322d7c811ef3b3f8df875fd0e9bdf4a35f869ff4978ad531baf6036d28f5ddd3fe465c18c97327ab8f3a90721cd29110bfdf473689e99