commit c9b8de5fe31b136da937a68ee3bc98078fa0f571 Author: tigro Date: Fri Oct 13 11:43:41 2023 +0300 import rust-cargo-c-0.9.12-4.el9 diff --git a/.rust-cargo-c.metadata b/.rust-cargo-c.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/LICENSE.dependencies b/SOURCES/LICENSE.dependencies new file mode 100644 index 0000000..3d583d9 --- /dev/null +++ b/SOURCES/LICENSE.dependencies @@ -0,0 +1,111 @@ +(MIT OR Apache-2.0) AND Unicode-DFS-2016: unicode-ident v1.0.3 +Apache-2.0 OR BSL-1.0: ryu v1.0.11 +Apache-2.0 OR MIT: fastrand v1.8.0 +Apache-2.0 OR MIT: fnv v1.0.7 +Apache-2.0 OR MIT: indexmap v1.9.1 +Apache-2.0 OR MIT: rustfix v0.6.1 +Apache-2.0 OR MIT: strip-ansi-escapes v0.1.1 +Apache-2.0 OR MIT: thread_local v1.1.4 +Apache-2.0 OR MIT: utf8parse v0.2.0 +Apache-2.0 OR MIT: vte v0.10.1 +Apache-2.0: bytesize v1.1.0 +Apache-2.0: openssl v0.10.41 +MIT AND GPL-2.0-only WITH GCC-exception-2.0 AND BSD-3-Clause: libgit2-sys v0.13.4 +MIT OR Apache-2.0 OR Zlib: tinyvec_macros v0.1.0 +MIT OR Apache-2.0: anyhow v1.0.61 +MIT OR Apache-2.0: arrayvec v0.5.2 +MIT OR Apache-2.0: bitflags v1.3.2 +MIT OR Apache-2.0: bstr v0.2.17 +MIT OR Apache-2.0: cargo v0.64.0 +MIT OR Apache-2.0: cargo-platform v0.1.2 +MIT OR Apache-2.0: cargo-util v0.2.1 +MIT OR Apache-2.0: cc v1.0.73 +MIT OR Apache-2.0: cfg-if v1.0.0 +MIT OR Apache-2.0: clap v3.2.17 +MIT OR Apache-2.0: clap_lex v0.2.4 +MIT OR Apache-2.0: crates-io v0.34.0 +MIT OR Apache-2.0: crc32fast v1.3.2 +MIT OR Apache-2.0: crossbeam-utils v0.8.11 +MIT OR Apache-2.0: either v1.8.0 +MIT OR Apache-2.0: env_logger v0.9.0 +MIT OR Apache-2.0: filetime v0.2.17 +MIT OR Apache-2.0: flate2 v1.0.24 +MIT OR Apache-2.0: foreign-types v0.3.2 +MIT OR Apache-2.0: foreign-types-shared v0.1.1 +MIT OR Apache-2.0: form_urlencoded v1.0.1 +MIT OR Apache-2.0: git2 v0.14.4 +MIT OR Apache-2.0: git2-curl v0.15.0 +MIT OR Apache-2.0: glob v0.3.0 +MIT OR Apache-2.0: hashbrown v0.12.3 +MIT OR Apache-2.0: heck v0.4.0 +MIT OR Apache-2.0: hex v0.4.3 +MIT OR Apache-2.0: home v0.5.3 +MIT OR Apache-2.0: humantime v2.1.0 +MIT OR Apache-2.0: idna v0.2.3 +MIT OR Apache-2.0: itertools v0.10.3 +MIT OR Apache-2.0: itoa v1.0.3 +MIT OR Apache-2.0: jobserver v0.1.24 +MIT OR Apache-2.0: kstring v2.0.0 +MIT OR Apache-2.0: lazy_static v1.4.0 +MIT OR Apache-2.0: lazycell v1.3.0 +MIT OR Apache-2.0: libc v0.2.131 +MIT OR Apache-2.0: libssh2-sys v0.2.23 +MIT OR Apache-2.0: libz-sys v1.1.8 +MIT OR Apache-2.0: log v0.4.17 +MIT OR Apache-2.0: num_cpus v1.13.1 +MIT OR Apache-2.0: once_cell v1.13.1 +MIT OR Apache-2.0: opener v0.5.0 +MIT OR Apache-2.0: openssl-probe v0.1.5 +MIT OR Apache-2.0: os_str_bytes v6.3.0 +MIT OR Apache-2.0: pathdiff v0.2.1 +MIT OR Apache-2.0: percent-encoding v2.1.0 +MIT OR Apache-2.0: proc-macro2 v1.0.43 +MIT OR Apache-2.0: quote v1.0.21 +MIT OR Apache-2.0: rand_core v0.6.3 +MIT OR Apache-2.0: rand_xoshiro v0.6.0 +MIT OR Apache-2.0: regex v1.6.0 +MIT OR Apache-2.0: regex-syntax v0.6.27 +MIT OR Apache-2.0: remove_dir_all v0.7.0 +MIT OR Apache-2.0: semver v1.0.13 +MIT OR Apache-2.0: serde v1.0.144 +MIT OR Apache-2.0: serde_ignored v0.1.5 +MIT OR Apache-2.0: serde_json v1.0.85 +MIT OR Apache-2.0: shell-escape v0.1.5 +MIT OR Apache-2.0: socket2 v0.4.4 +MIT OR Apache-2.0: static_assertions v1.1.0 +MIT OR Apache-2.0: syn v1.0.99 +MIT OR Apache-2.0: tar v0.4.38 +MIT OR Apache-2.0: tempfile v3.3.0 +MIT OR Apache-2.0: toml v0.5.9 +MIT OR Apache-2.0: toml_edit v0.14.4 +MIT OR Apache-2.0: typenum v1.15.0 +MIT OR Apache-2.0: unicode-bidi v0.3.8 +MIT OR Apache-2.0: unicode-normalization v0.1.21 +MIT OR Apache-2.0: unicode-width v0.1.9 +MIT OR Apache-2.0: unicode-xid v0.2.3 +MIT OR Apache-2.0: url v2.2.2 +MIT: atty v0.2.14 +MIT: bytes v1.2.1 +MIT: cargo-c v0.9.12 +MIT: combine v4.6.6 +MIT: crypto-hash v0.3.4 +MIT: curl v0.4.44 +MIT: curl-sys v0.4.56 +MIT: matches v0.1.9 +MIT: openssl-sys v0.9.75 +MIT: os_info v3.5.0 +MIT: strsim v0.10.0 +MIT: textwrap v0.15.0 +MPL-2.0+: bitmaps v2.1.0 +MPL-2.0+: im-rc v15.1.0 +MPL-2.0+: sized-chunks v0.6.5 +MPL-2.0: cbindgen v0.24.3 +Unlicense OR MIT: aho-corasick v0.7.18 +Unlicense OR MIT: globset v0.4.9 +Unlicense OR MIT: ignore v0.4.18 +Unlicense OR MIT: memchr v2.5.0 +Unlicense OR MIT: regex-automata v0.1.10 +Unlicense OR MIT: same-file v1.0.6 +Unlicense OR MIT: termcolor v1.1.3 +Unlicense OR MIT: walkdir v2.3.2 +Zlib OR Apache-2.0 OR MIT: tinyvec v1.6.0 diff --git a/SOURCES/cargo-c-0.9.12+cargo-0.64.crate b/SOURCES/cargo-c-0.9.12+cargo-0.64.crate new file mode 100644 index 0000000..6796b9c Binary files /dev/null and b/SOURCES/cargo-c-0.9.12+cargo-0.64.crate differ diff --git a/SOURCES/cargo-c-fix-metadata.diff b/SOURCES/cargo-c-fix-metadata.diff new file mode 100644 index 0000000..1929a39 --- /dev/null +++ b/SOURCES/cargo-c-fix-metadata.diff @@ -0,0 +1,16 @@ +--- cargo-c-0.9.12+cargo-0.64/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ cargo-c-0.9.12+cargo-0.64/Cargo.toml 2022-08-25T10:44:01.925899+00:00 +@@ -12,7 +12,7 @@ + [package] + edition = "2021" + name = "cargo-c" +-version = "0.9.12+cargo-0.64" ++version = "0.9.12" + authors = ["Luca Barbato "] + description = "Helper program to build and install c-like libraries" + readme = "README.md" +@@ -96,4 +96,3 @@ + + [features] + default = [] +-vendored-openssl = ["cargo/vendored-openssl"] diff --git a/SPECS/rust-cargo-c.spec b/SPECS/rust-cargo-c.spec new file mode 100644 index 0000000..ed34040 --- /dev/null +++ b/SPECS/rust-cargo-c.spec @@ -0,0 +1,237 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 4; + 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 22 +%bcond_without check + +# reduce debuginfo verbosity to work around OOM problems on 32-bit arches +%global rustflags_debuginfo 1 + +%global crate cargo-c +%global upstream_version 0.9.12+cargo-0.64 + +Name: rust-cargo-c +Version: 0.9.12 +Release: %autorelease +Summary: Helper program to build and install c-like libraries + +License: MIT +URL: https://crates.io/crates/cargo-c +Source0: %{crates_source %{crate} %{upstream_version}} +Source1: LICENSE.dependencies +# Manually created patch for downstream crate metadata changes +# * drop +cargo version suffix from crate version +# * remove vendored OpenSSL feature +Patch: cargo-c-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Helper program to build and install c-like libraries.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# (MIT OR Apache-2.0) AND Unicode-DFS-2016 +# Apache-2.0 +# Apache-2.0 OR BSL-1.0 +# Apache-2.0 OR MIT +# MIT +# MIT AND GPL-2.0-only WITH GCC-exception-2.0 AND BSD-3-Clause +# MIT OR Apache-2.0 +# MIT OR Apache-2.0 OR Zlib +# MPL-2.0 +# MPL-2.0+ +# Unlicense OR MIT +# Zlib OR Apache-2.0 OR MIT +License: MIT AND Apache-2.0 AND BSD-3-Clause AND GPL-2.0-only WITH GCC-exception-2.0 AND MPL-2.0 AND Unicode-DFS-2016 +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc README.md +%{_bindir}/cargo-capi +%{_bindir}/cargo-cbuild +%{_bindir}/cargo-cinstall +%{_bindir}/cargo-ctest + +%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 +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{upstream_version} -p1 +cp -pav %{SOURCE1} . +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Oct 13 2023 Arkady L. Shane - 0.9.12-4 +- Rebuilt for MSVSphere 9.2 + +* Wed May 03 2023 Fabio Valentini - 0.9.12-4 +- Rebuild for openssl crate >= v0.10.48 (RUSTSEC-2023-{0022,0023,0024}) + +* Sat Jan 28 2023 Fabio Valentini - 0.9.12-3 +- Rebuild for CVE-2022-24765 and CVE-2022-29187 in libgit2 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.9.12-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Aug 25 2022 Fabio Valentini - 0.9.12-1 +- Update to version 0.9.12+cargo-0.64; Fixes RHBZ#2058792 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.9.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Feb 22 2022 Zbigniew Jędrzejewski-Szmek - 0.9.7-4 +- Use the new way to set debuginfo level during build + +* Tue Feb 22 2022 Fabio Valentini - 0.9.7-3 +- More workarounds for rust-packaging 21 issues + +* Tue Feb 22 2022 Fabio Valentini - 0.9.7-2 +- Work around RUSTFLAGS no longer being set in .cargo/config + +* Mon Feb 21 2022 Fabio Valentini - 0.9.7-1 +- Update to version 0.9.7+cargo-0.59; Fixes RHBZ#2005017 + +* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.9.2-8 +- Rebuild with package notes + +* Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 0.9.2-7 +- Rebuild with package notes + +* Tue Jan 25 2022 Fabio Valentini - 0.9.2-6 +- Rebuild with thread_local 1.1.4 for RUSTSEC-2022-0006 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.9.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sun Nov 28 2021 Igor Raits - 0.9.2-4 +- Rebuild for libgit2 1.3.x + +* Tue Sep 14 2021 Sahana Prasad - 0.9.2-3 +- Rebuilt with OpenSSL 3.0.0 + +* Thu Aug 26 2021 Fabio Valentini - 0.9.2-2 +- Drop debuginfo verbosity in an attempt to fix armv7hl OOM problems + +* Thu Aug 26 2021 Fabio Valentini - 0.9.2-1 +- Update to version 0.9.2+cargo-0.55; Fixes RHBZ#1945899 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.7.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Mar 29 2021 Fabio Valentini - 0.7.3-2 +- Update to version 0.7.3+cargo-0.51. + +* Wed Jan 27 2021 Fedora Release Engineering - 0.6.18-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Dec 29 14:21:55 CET 2020 Igor Raits - 0.6.18-2 +- Rebuild against libgit2 1.1.x + +* Sun Nov 29 2020 Fabio Valentini - 0.6.18-1 +- Update to version 0.6.18+cargo-0.49. +- Fixes RHBZ#1887871 + +* Mon Sep 21 2020 Fabio Valentini - 0.6.13-1 +- Update to version 0.6.13. + +* Sun Aug 23 2020 Igor Raits - 0.6.10-2 +- Rebuild + +* Wed Jul 29 2020 Josh Stone - 0.6.10-1 +- Update to 0.6.10 + +* Fri Jul 10 2020 Josh Stone - 0.6.8-1 +- Update to 0.6.8 + +* Wed Jun 10 2020 Josh Stone - 0.6.7-1 +- Update to 0.6.7 + +* Tue May 05 2020 Josh Stone - 0.6.5-1 +- Update to 0.6.5 + +* Fri Apr 24 2020 Josh Stone - 0.6.4-1 +- Update to 0.6.4 + +* Thu Apr 23 2020 Josh Stone - 0.6.3-2 +- Bump to cargo 0.44 + +* Fri Apr 17 2020 Josh Stone - 0.6.3-1 +- Update to 0.6.3 + +* Wed Apr 15 2020 Igor Raits - 0.6.2-2 +- Rebuild for libgit2 1.0.0 + +* Wed Apr 01 2020 Josh Stone - 0.6.2-1 +- Update to 0.6.2 + +* Tue Mar 17 2020 Josh Stone - 0.5.3-1 +- Update to 0.5.3 + +* Wed Feb 26 2020 Josh Stone - 0.5.2-4 +- Update cbindgen to 0.13 + +* Tue Feb 11 13:41:07 CET 2020 Igor Raits - 0.5.2-3 +- Update pretty_env_logger to 0.4 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jan 23 2020 Josh Stone - 0.5.2-1 +- Update to 0.5.2 + +* Thu Dec 19 19:13:31 CET 2019 Igor Gnatenko - 0.5.1-1 +- Initial package +