commit 9148284f408c11327b919ecbcbb2736054810e50e21606397f1cdb217e54fc03 Author: Andreas Schneider Date: Sun Sep 15 14:14:34 2024 +0000 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-c?expand=0&rev=37 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/README.suse-maint b/README.suse-maint new file mode 100644 index 0000000..25bcd46 --- /dev/null +++ b/README.suse-maint @@ -0,0 +1,17 @@ +# How to update the cargo-c package + +## Prerequisites: +You need the download_files and cargo_vendor obs services installed: + zypper in obs-service-obs_scm obs-service-cargo_vendor + +## Updating to a new version from upstream + +Edit the _service file and update the revision parameter. + +Download the new source file by running: + osc service mr obs_scm + +Run the cargo_vendor service with: + osc service mr cargo_vendor + +Update the changelog file with the upstream release notes. diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..a275540 --- /dev/null +++ b/_constraints @@ -0,0 +1,8 @@ + + + + + 10 + + + diff --git a/_service b/_service new file mode 100644 index 0000000..0f89285 --- /dev/null +++ b/_service @@ -0,0 +1,23 @@ + + + https://github.com/lu-zero/cargo-c.git + @PARENT_TAG@~git@TAG_OFFSET@.%h + git + v0.10.3 + * + v(\d+\.\d+\.\d+) + \1 + enable + + + + *.tar + xz + + + + cargo-c + xz + true + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..7f2e7f4 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/lu-zero/cargo-c.git + ee7d7ef74b9c1fa00c6780da41a838752c76b3eb \ No newline at end of file diff --git a/cargo-c-0.10.3~git0.ee7d7ef.obscpio b/cargo-c-0.10.3~git0.ee7d7ef.obscpio new file mode 100644 index 0000000..6797fec --- /dev/null +++ b/cargo-c-0.10.3~git0.ee7d7ef.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e0d02b79b50a1f8ca5b46607a7b630b584602281a3959d34f536a0f82de4f19 +size 135691 diff --git a/cargo-c-0.9.32~git0.56dfe34.tar.xz b/cargo-c-0.9.32~git0.56dfe34.tar.xz new file mode 100644 index 0000000..87ee115 --- /dev/null +++ b/cargo-c-0.9.32~git0.56dfe34.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:573fb69567f880a5be20235094a52c2716e7077e253d69bd0852ce7ea39fcac9 +size 27164 diff --git a/cargo-c.changes b/cargo-c.changes new file mode 100644 index 0000000..4ccb04e --- /dev/null +++ b/cargo-c.changes @@ -0,0 +1,251 @@ +------------------------------------------------------------------- +Tue Aug 27 09:20:15 UTC 2024 - Enrico Belleri + +- Update to version 0.10.3~git0.ee7d7ef: + * Wire in the heuristics + * Implement heuristics for target-specific install paths + * Fix the generated header fingerprinting logic + * Make notice about missing windows debug files verbose-only + * Update dependencies + * Require cargo 0.80.0 +- Use macros from cargo-packaging +- Remove cargo_config: contained in vendor.tar +- Remove cargo_audit service: now part of cargo_vendor +- Remove custom rustflags and let the macros set them instead + +------------------------------------------------------------------- +Tue Jun 04 19:59:22 UTC 2024 - david.mulder@suse.com + +- Update to version 0.9.32~git0.56dfe34: + * Prepare for release + * Bump cargo version + * Use clone_from/clone_into + * Do not install the versioned links and lib on Android + * docs: add rustls-ffi to README users list + * Bump the msrv again + * Bump msrv + * Bump cargo version + * Match the beaviour of meson regarding relative paths in the install directories + * Bump cargo version + +------------------------------------------------------------------- +Tue Oct 17 10:43:31 UTC 2023 - bjorn.lie@gmail.com + +- Update to version 0.9.27~git0.54774e0: + * Complete the soversion granularity + * Bump cbindgen + * Make sure the version variables are consistent + * Fix sover detection for 0-based versioning + * Bump cargo version + * Bump cbindgen + * Do not pass the token to clippy-check +- Switch _service to manual. + +------------------------------------------------------------------- +Tue Mar 14 09:29:01 UTC 2023 - Dirk Müller + +- add constraints to avoid out of disk space errors + +------------------------------------------------------------------- +Mon Jan 02 15:45:48 UTC 2023 - asn@cryptomilk.org + +- Update to version 0.9.15~git0.2d3044b: + * Prepare for release + * Update to cargo-0.67 and clap-4 + * macos: Allow larger install_name entries + * Fix the new clippy lints + * Don't include version in soname ELF header if versioning is disabled + * Use get_many instead of values_of_lossy + * Use macos-12 for the macos runner + * Add job deps + * Generate paths relative to ${prefix} in the pkg-config file even if --libdir or --includedir are given + * Compact the main CI + * Fix more warnings in the main CI + * Use a custom release profile to strip binaries + * ci(deploy): Use musl abi for aarch64 linux binary, add i686 linux + * Remove msys2 test + * Update the example-project CI + * Make sure the supported rustc version is evident + * Use the default compiler to build a static binary for musl + * Save all the linux binaries + * Prepare for release + * Add pre-built ppc64le and aarch64 linux binaries + * Simplify the deploy script + * Fix new clippy lints + * Update to cargo-0.66 + * Use dtolnay/rust-toolchain + * Remove actions-rs/cargo + * Prepare for release + * add support for illumos + * Bump cargo version + * Prepare for release + * Bump cargo to 0.64 + * Install the windows DLL in the libdir if it is custom + * Fix typo on readme + * Bump the codecov action + * Add sonames on musl + +------------------------------------------------------------------- +Mon Jul 04 07:41:55 UTC 2022 - asn@cryptomilk.org + +- Update to version 0.9.11~git0.41f5562: + * Prepare for release + * Fix clippy warnings + * Versions bump + * Add back the deps.rs badge + * Increase the regex requirement + * Prepare for release + * Bump cargo + * Add support for Haiku Operating System + * Add udbserver to users + * Extend the coverage further + * Fix the code coverage script + * Fix subcommand fallback support + * Print the issued commands + * Fix testing cross compilation + * Bump cargo-metadata + * Bump cbindgen + * Support rustc-1.60 and following + * Update to clap-3.1 and cargo-0.61 + * Prepare for release + * Do not use the patch version in macOS -install_name + * Add Android to the build targets supported by LibType + * Make nightly clippy happy + * Simplify a writln + * Prepare for release + * Bump cargo version + * Remove newlines from the description + * Make the default destdir None + * CI: use MSYS2 cargo package for example project + * Print the PKG_CONFIG_PATH in verbose mode + +------------------------------------------------------------------- +Wed Mar 2 04:12:51 UTC 2022 - William Brown + +- Update vendored libraries to resolve security issues. + +------------------------------------------------------------------- +Mon Jan 10 10:12:10 UTC 2022 - asn@cryptomilk.org + +- Update to version 0.9.6~git0.68e65ad: + * Prepare for release + * Bump cargo + * Support custom paths for data files as it is available for includes + * Fix the datadir description + * Change the configuration paths for datadir + * Add datadir destination path customization + * Suppress warning about dead code for Common + * Add datadir support + * Make sure the right rust is used on deploy + * Bump the edition in the examples + +------------------------------------------------------------------- +Thu Jan 06 06:58:06 UTC 2022 - william.brown@suse.com + +- resolve bsc#1194113 (CVE-2018-25023) +- resolve bsc#1194119 (CVE-2021-45710) + +------------------------------------------------------------------- +Wed Jun 02 05:40:32 UTC 2021 - william.brown@suse.com + +- Update to version 0.8.1~git0.cce1b08: + * Prepare for release + * Set the capi.library.rustflags + * Add a simple way to set the RUSTFLAGS from Cargo.toml + * CI: test example project in Windows/MSYS2 (#191) + * Update cargo requirement from 0.52 to 0.53 + * Upgrade to GitHub-native Dependabot + * Default to nightly + * Use codecov + * Move the code coverage in a stand-alone script + * Enable colored help + +------------------------------------------------------------------- +Tue Apr 6 02:21:28 UTC 2021 - William Brown + +- Add README.suse-maint to fix OBS warning. + +------------------------------------------------------------------- +Mon Apr 5 07:52:23 UTC 2021 - Antonio Larrosa + +- Update to version 0.8.0 + * cbindgen 0.18 + * provide a cli option to have fully static builds. + * cargo cinstall and cargo capi install now imply --release + to match the behavior of cargo install. + +------------------------------------------------------------------- +Wed Jan 13 16:32:44 UTC 2021 - Andreas Schneider + +- Update to version 0.7.0 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.7.0 + +------------------------------------------------------------------- +Sun Oct 18 13:21:10 UTC 2020 - Andreas Schneider + +- Update to version 0.6.15 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.15 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.14 +- Removed 123.patch + +------------------------------------------------------------------- +Tue Oct 13 11:53:19 UTC 2020 - Andreas Schneider + +- Added 123.patch + * Save the include subdir to a specific field + +------------------------------------------------------------------- +Wed Sep 9 10:33:48 UTC 2020 - Andreas Schneider + +- Update to version 0.6.13 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.13 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.12 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.11 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.10 + +------------------------------------------------------------------- +Mon Jul 13 15:32:40 UTC 2020 - Andreas Schneider + +- Update to version 0.6.9 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.9 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.8 + +------------------------------------------------------------------- +Mon Jun 8 06:56:21 UTC 2020 - Andreas Schneider + +- Update to version 0.6.7 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.7 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.6 + +------------------------------------------------------------------- +Tue Jun 2 10:45:00 UTC 2020 - Andreas Schneider + +- Update to version 0.6.5 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.5 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.4 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.3 + +------------------------------------------------------------------- +Thu Apr 2 13:57:21 UTC 2020 - Andreas Schneider + +- Update to version 0.6.2 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.2 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.1 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.6.0 + +------------------------------------------------------------------- +Sun Dec 15 13:13:58 UTC 2019 - Andreas Schneider + +- Update to version 0.5.0 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.5.0 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.4.0 + +------------------------------------------------------------------- +Mon Dec 9 16:03:39 UTC 2019 - Andreas Schneider + +- Set rust compiler and rust flags + +------------------------------------------------------------------- +Wed Nov 20 18:36:44 UTC 2019 - Andreas Schneider + +- Initial package version 0.3.1 diff --git a/cargo-c.obsinfo b/cargo-c.obsinfo new file mode 100644 index 0000000..9f9c828 --- /dev/null +++ b/cargo-c.obsinfo @@ -0,0 +1,4 @@ +name: cargo-c +version: 0.10.3~git0.ee7d7ef +mtime: 1722315713 +commit: ee7d7ef74b9c1fa00c6780da41a838752c76b3eb diff --git a/cargo-c.spec b/cargo-c.spec new file mode 100644 index 0000000..758eb40 --- /dev/null +++ b/cargo-c.spec @@ -0,0 +1,63 @@ +# +# spec file for package cargo-c +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2019 Andreas Schneider . +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: cargo-c +Version: 0.10.3~git0.ee7d7ef +Release: 0 +Summary: Helper to build and install c-like libraries from Rust +License: MIT +Group: Development/Languages/Rust + +URL: https://crates.io/crates/cargo-c +Source0: %{name}-%{version}.tar.xz +Source1: vendor.tar.xz +Source1000: README.suse-maint +BuildRequires: cargo >= 0.80.0 +BuildRequires: pkgconfig(openssl) +BuildRequires: cargo-packaging + +%description +The is a cargo applet to build and install C-ABI compatibile dynamic and static +libraries from Rust. + +It produces and installs a correct pkg-config file, a static library and a +dynamic library, and a C header to be used by any C (and C-compatible) +software. + +%prep +%autosetup -a1 -p1 + +%build +%{cargo_build} + +%install +%{cargo_install} + +find %{buildroot} -name .crates2.json -delete +rm -rf %{buildroot}%{_datadir}/cargo/registry + +%files +%license LICENSE +%doc README.md +%{_bindir}/cargo-capi +%{_bindir}/cargo-cbuild +%{_bindir}/cargo-cinstall +%{_bindir}/cargo-ctest + +%changelog diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..6fb4ff4 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..0f34038 --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08eec4a945e29ad9b1210fe3b34ce4e1a58862a0e913371c436eccd3e3aa82db +size 45553020