Sync from SUSE:ALP:Source:Standard:1.0 cargo-c revision bc8763a912aa1202c4cde36d049d2c50

This commit is contained in:
Adrian Schröter 2023-12-28 01:07:31 +01:00
commit 2ee8eb9ab0
9 changed files with 386 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

25
README.suse-maint Normal file
View File

@ -0,0 +1,25 @@
# How to update the cargo-c package
## Prerequisites:
You need the download_files and cargo_vendor obs services installed:
zypper in obs-service-download_files obs-service-cargo_vendor
## Updating to a new version from upstream
Edit the spec file and update the version variable.
Download the new source file by running:
osc service ra download_files
Uncompress the cargo-c-%{version}.tar.gz file:
tar xvfz cargo-c-%{version}.tar.gz
This will create a cargo-c-%{version} directory
Edit the _service file and set the srcdir param
to the extracted directory.
Run the cargo_vendor service with:
osc service disabledrun
Update the changelog file with the upstream release notes.

8
_constraints Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<constraints>
<hardware>
<disk>
<size unit="G">10</size>
</disk>
</hardware>
</constraints>

26
_service Normal file
View File

@ -0,0 +1,26 @@
<services>
<service mode="manual" name="obs_scm">
<param name="url">https://github.com/lu-zero/cargo-c.git</param>
<param name="versionformat">@PARENT_TAG@~git@TAG_OFFSET@.%h</param>
<param name="scm">git</param>
<param name="revision">v0.9.27</param>
<param name="match-tag">*</param>
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
<param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">enable</param>
</service>
<service mode="manual" name="tar" />
<service mode="manual" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="manual" name="set_version"/>
<service name="cargo_vendor" mode="manual">
<param name="srcdir">cargo-c</param>
<param name="compression">xz</param>
<param name="update">true</param>
</service>
<service name="cargo_audit" mode="manual">
<param name="srcdir">cargo-c</param>
</service>
</services>

BIN
cargo-c-0.9.27~git0.54774e0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

221
cargo-c.changes Normal file
View File

@ -0,0 +1,221 @@
-------------------------------------------------------------------
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 <dmueller@suse.com>
- 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 <william.brown@suse.com>
- 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 <william.brown@suse.com>
- Add README.suse-maint to fix OBS warning.
-------------------------------------------------------------------
Mon Apr 5 07:52:23 UTC 2021 - Antonio Larrosa <alarrosa@suse.com>
- 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 <asn@cryptomilk.org>
- 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 <asn@cryptomilk.org>
- 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 <asn@cryptomilk.org>
- Added 123.patch
* Save the include subdir to a specific field
-------------------------------------------------------------------
Wed Sep 9 10:33:48 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
- 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 <asn@cryptomilk.org>
- 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 <asn@cryptomilk.org>
- 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 <asn@cryptomilk.org>
- 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 <asn@cryptomilk.org>
- 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 <asn@cryptomilk.org>
- 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 <asn@cryptomilk.org>
- Set rust compiler and rust flags
-------------------------------------------------------------------
Wed Nov 20 18:36:44 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>
- Initial package version 0.3.1

72
cargo-c.spec Normal file
View File

@ -0,0 +1,72 @@
#
# spec file for package cargo-c
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2019 Andreas Schneider <asn@cryptomilk.org>.
#
# 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/
#
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2
Name: cargo-c
Version: 0.9.27~git0.54774e0
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
Source2: cargo_config
Source1000: README.suse-maint
BuildRequires: cargo
BuildRequires: pkgconfig(openssl)
%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
install -d -m 0755 .cargo
cp %{SOURCE2} .cargo/config
%build
export RUSTFLAGS="%{rustflags}"
cargo build --offline --release
%install
export RUSTFLAGS="%{rustflags}"
cargo install --offline --root=%{buildroot}%{_prefix} --path .
find %{buildroot} -name .crates2.json -delete
rm -rf %{buildroot}%{_datadir}/cargo/registry
rm %{buildroot}%{_prefix}/.crates.toml
%files
%license LICENSE
%doc README.md
%{_bindir}/cargo-capi
%{_bindir}/cargo-cbuild
%{_bindir}/cargo-cinstall
%{_bindir}/cargo-ctest
%changelog

5
cargo_config Normal file
View File

@ -0,0 +1,5 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

BIN
vendor.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.