From bd4b37d42365f640b7e0e3926efc386863774820 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Fri, 20 Dec 2024 15:06:04 +0300 Subject: [PATCH] import rust-clang-sys-1.8.1-2.el10 --- .gitignore | 1 + .rust-clang-sys.metadata | 1 + SOURCES/clang-sys-fix-metadata.diff | 11 + SOURCES/rust2rpm.toml | 32 ++ SPECS/rust-clang-sys.spec | 527 ++++++++++++++++++++++++++++ 5 files changed, 572 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-clang-sys.metadata create mode 100644 SOURCES/clang-sys-fix-metadata.diff create mode 100644 SOURCES/rust2rpm.toml create mode 100644 SPECS/rust-clang-sys.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5651b49 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/clang-sys-1.8.1.crate diff --git a/.rust-clang-sys.metadata b/.rust-clang-sys.metadata new file mode 100644 index 0000000..d201e65 --- /dev/null +++ b/.rust-clang-sys.metadata @@ -0,0 +1 @@ +cc9beedc847bdb8dcfa58ae28fab4e1fa8f26fa6 SOURCES/clang-sys-1.8.1.crate diff --git a/SOURCES/clang-sys-fix-metadata.diff b/SOURCES/clang-sys-fix-metadata.diff new file mode 100644 index 0000000..533ec49 --- /dev/null +++ b/SOURCES/clang-sys-fix-metadata.diff @@ -0,0 +1,11 @@ +--- clang-sys-1.8.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ clang-sys-1.8.1/Cargo.toml 2024-06-10T17:21:16.762166+00:00 +@@ -46,7 +46,7 @@ + version = "1" + + [dev-dependencies.tempfile] +-version = ">=3.0.0, <3.7.0" ++version = "3" + + [build-dependencies.glob] + version = "0.3" diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..2f24410 --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,32 @@ +[package] +cargo-toml-patch-comments = [ + "relax tempfile dev-dependency to allow building with 3.7+", +] + +[requires] +build = ["clang-devel >= 3.5"] + +[requires.features] +default = ["clang-devel >= 3.5"] +runtime = ["clang-libs"] +clang_3_5 = ["clang-devel >= 3.5"] +clang_3_6 = ["clang-devel >= 3.6"] +clang_3_7 = ["clang-devel >= 3.7"] +clang_3_8 = ["clang-devel >= 3.8"] +clang_3_9 = ["clang-devel >= 3.9"] +clang_4_0 = ["clang-devel >= 4.0"] +clang_5_0 = ["clang-devel >= 5.0"] +clang_6_0 = ["clang-devel >= 6.0"] +clang_7_0 = ["clang-devel >= 7.0"] +clang_8_0 = ["clang-devel >= 8.0"] +clang_9_0 = ["clang-devel >= 9.0"] +clang_10_0 = ["clang-devel >= 10.0"] +clang_11_0 = ["clang-devel >= 11.0"] +clang_12_0 = ["clang-devel >= 12.0"] +clang_13_0 = ["clang-devel >= 13.0"] +clang_14_0 = ["clang-devel >= 14.0"] +clang_15_0 = ["clang-devel >= 15.0"] +clang_16_0 = ["clang-devel >= 16.0"] +clang_17_0 = ["clang-devel >= 17.0"] +clang_18_0 = ["clang-devel >= 18.0"] + diff --git a/SPECS/rust-clang-sys.spec b/SPECS/rust-clang-sys.spec new file mode 100644 index 0000000..66ecb43 --- /dev/null +++ b/SPECS/rust-clang-sys.spec @@ -0,0 +1,527 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate clang-sys + +Name: rust-clang-sys +Version: 1.8.1 +Release: %autorelease +Summary: Rust bindings for libclang + +License: Apache-2.0 +URL: https://crates.io/crates/clang-sys +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * relax tempfile dev-dependency to allow building with 3.7+ +Patch: clang-sys-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: clang-devel >= 3.5 + +%global _description %{expand: +Rust bindings for libclang.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE.txt +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 3.5 + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_10_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 10.0 + +%description -n %{name}+clang_10_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_10_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_10_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_11_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 11.0 + +%description -n %{name}+clang_11_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_11_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_11_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_12_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 12.0 + +%description -n %{name}+clang_12_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_12_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_12_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_13_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 13.0 + +%description -n %{name}+clang_13_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_13_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_13_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_14_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 14.0 + +%description -n %{name}+clang_14_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_14_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_14_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_15_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 15.0 + +%description -n %{name}+clang_15_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_15_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_15_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_16_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 16.0 + +%description -n %{name}+clang_16_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_16_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_16_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_17_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 17.0 + +%description -n %{name}+clang_17_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_17_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_17_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_18_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 18.0 + +%description -n %{name}+clang_18_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_18_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_18_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_3_5-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 3.5 + +%description -n %{name}+clang_3_5-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_3_5" feature of the "%{crate}" crate. + +%files -n %{name}+clang_3_5-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_3_6-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 3.6 + +%description -n %{name}+clang_3_6-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_3_6" feature of the "%{crate}" crate. + +%files -n %{name}+clang_3_6-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_3_7-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 3.7 + +%description -n %{name}+clang_3_7-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_3_7" feature of the "%{crate}" crate. + +%files -n %{name}+clang_3_7-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_3_8-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 3.8 + +%description -n %{name}+clang_3_8-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_3_8" feature of the "%{crate}" crate. + +%files -n %{name}+clang_3_8-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_3_9-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 3.9 + +%description -n %{name}+clang_3_9-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_3_9" feature of the "%{crate}" crate. + +%files -n %{name}+clang_3_9-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_4_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 4.0 + +%description -n %{name}+clang_4_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_4_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_4_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_5_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 5.0 + +%description -n %{name}+clang_5_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_5_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_5_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_6_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 6.0 + +%description -n %{name}+clang_6_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_6_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_6_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_7_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 7.0 + +%description -n %{name}+clang_7_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_7_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_7_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_8_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 8.0 + +%description -n %{name}+clang_8_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_8_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_8_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+clang_9_0-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-devel >= 9.0 + +%description -n %{name}+clang_9_0-devel %{_description} + +This package contains library source intended for building other packages which +use the "clang_9_0" feature of the "%{crate}" crate. + +%files -n %{name}+clang_9_0-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+libcpp-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+libcpp-devel %{_description} + +This package contains library source intended for building other packages which +use the "libcpp" feature of the "%{crate}" crate. + +%files -n %{name}+libcpp-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+libloading-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+libloading-devel %{_description} + +This package contains library source intended for building other packages which +use the "libloading" feature of the "%{crate}" crate. + +%files -n %{name}+libloading-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+runtime-devel +Summary: %{summary} +BuildArch: noarch +Requires: clang-libs + +%description -n %{name}+runtime-devel %{_description} + +This package contains library source intended for building other packages which +use the "runtime" feature of the "%{crate}" crate. + +%files -n %{name}+runtime-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+static-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+static-devel %{_description} + +This package contains library source intended for building other packages which +use the "static" feature of the "%{crate}" crate. + +%files -n %{name}+static-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 1.8.1-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 1.8.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 10 2024 Fabio Valentini - 1.8.1-1 +- Update to version 1.8.1; Fixes RHBZ#2283352 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.7.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jan 11 2024 Fabio Valentini - 1.7.0-1 +- Update to version 1.7.0; Fixes RHBZ#2256353 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed May 17 2023 Fabio Valentini - 1.6.1-1 +- Update to version 1.6.1; Fixes RHBZ#2182940 + +* Thu Feb 23 2023 Fabio Valentini - 1.6.0-1 +- Update to version 1.6.0; Fixes RHBZ#2167236 + +* Mon Jan 30 2023 Fabio Valentini - 1.4.0-3 +- Add missing runtime dependency on clang-libs + +* Fri Jan 20 2023 Fedora Release Engineering - 1.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Oct 05 2022 Fabio Valentini - 1.4.0-1 +- Update to version 1.4.0; Fixes RHBZ#2129037 + +* Sat Jul 23 2022 Fedora Release Engineering - 1.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jul 16 2022 Fabio Valentini - 1.3.3-1 +- Update to version 1.3.3; Fixes RHBZ#2091300 + +* Mon May 23 2022 Fabio Valentini - 1.3.2-1 +- Update to version 1.3.2; Fixes RHBZ#2087615 + +* Fri Feb 04 2022 Fabio Valentini - 1.3.1-1 +- Update to version 1.3.1; Fixes RHBZ#2050476 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Nov 09 2021 Fabio Valentini - 1.3.0-1 +- Update to version 1.3.0; Fixes RHBZ#2019166 + +* Sat Sep 04 2021 Fabio Valentini - 1.2.2-1 +- Update to version 1.2.2; Fixes RHBZ#1997316 + +* Fri Jul 23 2021 Fedora Release Engineering - 1.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun May 02 2021 Fabio Valentini - 1.2.0-1 +- Update to version 1.2.0. +- Fixes RHBZ#1947247 + +* Wed Mar 03 2021 Fabio Valentini - 1.1.1-1 +- Update to version 1.1.1. + +* Wed Feb 10 2021 Fabio Valentini - 1.1.0-1 +- Update to version 1.1.0. + +* Wed Jan 27 2021 Fedora Release Engineering - 1.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Nov 27 2020 Fabio Valentini - 1.0.3-1 +- Update to version 1.0.3. + +* Wed Jul 29 2020 Fedora Release Engineering - 0.29.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri May 29 2020 Josh Stone - 0.29.3-2 +- Bump to libloading 0.6 + +* Wed Apr 01 2020 Josh Stone - 0.29.3-1 +- Update to 0.29.3 + +* Wed Mar 11 2020 Josh Stone - 0.29.2-2 +- Rebuild + +* Tue Mar 10 2020 Josh Stone - 0.29.2-1 +- Update to 0.29.2 + +* Fri Mar 06 2020 Josh Stone - 0.29.1-1 +- Update to 0.29.1 + +* Thu Mar 05 2020 Josh Stone - 0.29.0-1 +- Update to 0.29.0 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.28.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Nov 23 2019 Josh Stone - 0.28.1-1 +- Update to 0.28.1 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.28.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue May 07 14:21:57 CEST 2019 Igor Gnatenko - 0.28.0-2 +- Update glob to 0.3 + +* Sat Mar 16 2019 Robert-André Mauchin - 0.28.0-1 +- Update to 0.28.0 (#1678018) + +* Sat Feb 02 2019 Fedora Release Engineering - 0.27.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 22 2019 Josh Stone - 0.27.0-1 +- Update to 0.27.0 + +* Mon Jan 07 2019 Josh Stone - 0.26.4-1 +- Update to 0.26.4 + +* Wed Nov 14 2018 Josh Stone - 0.26.3-1 +- Update to 0.26.3 + +* Sun Nov 04 2018 Igor Gnatenko - 0.26.2-1 +- Update to 0.26.2 + +* Thu Oct 11 2018 Josh Stone - 0.26.1-1 +- Update to 0.26.1 + +* Mon Oct 08 2018 Josh Stone - 0.26.0-1 +- Update to 0.26.0 + +* Thu Oct 04 2018 Igor Gnatenko - 0.24.0-1 +- Initial package + +## END: Generated by rpmautospec