Skip to content

Commit

Permalink
Dependencies Round 3
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
  • Loading branch information
LecrisUT committed Mar 28, 2024
1 parent 2fc9851 commit 4066d75
Show file tree
Hide file tree
Showing 22 changed files with 1,787 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ packages:
upstream_package_name: sqlx-sqlite
downstream_package_name: rust-sqlx-sqlite
actions: *Actions-Package-NewOrUpdate
rust-sqlx-macros-core:
# https://github.com/launchbadge/sqlx
specfile_path: rust-sqlx-macros-core/rust-sqlx-macros-core.spec
files_to_sync:
- rust-sqlx-macros-core/rust-sqlx-macros-core.spec
- rust-sqlx-macros-core/rust2rpm.toml
upstream_package_name: sqlx-macros-core
downstream_package_name: rust-sqlx-macros-core
actions: *Actions-Package-NewOrUpdate
rust-tiny-bip39:
# https://github.com/maciejhirsz/tiny-bip39/
specfile_path: rust-tiny-bip39/rust-tiny-bip39.spec
Expand Down Expand Up @@ -262,6 +271,51 @@ packages:
upstream_package_name: quanta
downstream_package_name: rust-quanta
actions: *Actions-Package-NewOrUpdate
rust-futures-intrusive:
# https://github.com/Matthias247/futures-intrusive
specfile_path: rust-futures-intrusive/rust-futures-intrusive.spec
files_to_sync:
- rust-futures-intrusive/rust-futures-intrusive.spec
- rust-futures-intrusive/rust2rpm.toml
upstream_package_name: futures-intrusive
downstream_package_name: rust-futures-intrusive
actions: *Actions-Package-NewOrUpdate
rust-sqlformat:
# https://github.com/shssoichiro/sqlformat-rs
specfile_path: rust-sqlformat/rust-sqlformat.spec
files_to_sync:
- rust-sqlformat/rust-sqlformat.spec
- rust-sqlformat/rust2rpm.toml
upstream_package_name: sqlformat
downstream_package_name: rust-sqlformat
actions: *Actions-Package-NewOrUpdate
rust-stringprep:
# https://github.com/sfackler/rust-stringprep
specfile_path: rust-stringprep/rust-stringprep.spec
files_to_sync:
- rust-stringprep/rust-stringprep.spec
- rust-stringprep/rust2rpm.toml
upstream_package_name: stringprep
downstream_package_name: rust-stringprep
actions: *Actions-Package-NewOrUpdate
rust-ui_test:
# https://github.com/oli-obk/ui_test
specfile_path: rust-ui_test/rust-ui_test.spec
files_to_sync:
- rust-ui_test/rust-ui_test.spec
- rust-ui_test/rust2rpm.toml
upstream_package_name: ui_test
downstream_package_name: rust-ui_test
actions: *Actions-Package-NewOrUpdate
rust-axum-extra:
# https://github.com/tokio-rs/axum
specfile_path: rust-axum-extra/rust-axum-extra.spec
files_to_sync:
- rust-axum-extra/rust-axum-extra.spec
- rust-axum-extra/rust2rpm.toml
upstream_package_name: axum-extra
downstream_package_name: rust-axum-extra
actions: *Actions-Package-NewOrUpdate
# Upstream is working on it:
rust-argon2:
# https://bugzilla.redhat.com/show_bug.cgi?id=2258880
Expand All @@ -278,6 +332,12 @@ packages:
upstream_package_name: crypto_secretbox
downstream_package_name: rust-crypto_secretbox
actions: *Actions-Upstream-Review
rust-atoi:
# https://bugzilla.redhat.com/show_bug.cgi?id=2268045
specfile_path: rust-atoi/rust-atoi.spec
upstream_package_name: atoi
downstream_package_name: rust-atoi
actions: *Actions-Upstream-Review
# Already upstream, needs update
rust-axum:
specfile_path: rust-axum/rust-axum.spec
Expand Down Expand Up @@ -415,6 +475,30 @@ packages:
- rust-hyper-tls/rust-hyper-tls.spec
- rust-hyper-tls/rust2rpm.toml
actions: *Actions-Package-NewOrUpdate
rust-libsqlite3-sys:
specfile_path: rust-libsqlite3-sys/rust-libsqlite3-sys.spec
upstream_package_name: libsqlite3-sys
downstream_package_name: rust-libsqlite3-sys
files_to_sync:
- rust-libsqlite3-sys/rust-libsqlite3-sys.spec
- rust-libsqlite3-sys/rust2rpm.toml
actions: *Actions-Package-NewOrUpdate
rust-tempfile:
specfile_path: rust-tempfile/rust-tempfile.spec
upstream_package_name: tempfile
downstream_package_name: rust-tempfile
files_to_sync:
- rust-tempfile/rust-tempfile.spec
- rust-tempfile/rust2rpm.toml
actions: *Actions-Package-NewOrUpdate
rust-tungstenite:
specfile_path: rust-tungstenite/rust-tungstenite.spec
upstream_package_name: tungstenite
downstream_package_name: rust-tungstenite
files_to_sync:
- rust-tungstenite/rust-tungstenite.spec
- rust-tungstenite/rust2rpm.toml
actions: *Actions-Package-NewOrUpdate

jobs:
- job: copr_build
Expand Down
11 changes: 11 additions & 0 deletions rust-atoi/atoi-fix-metadata.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- atoi-2.0.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ atoi-2.0.0/Cargo.toml 2024-03-05T09:09:15.347992+00:00
@@ -30,8 +30,6 @@
[dependencies.num-traits]
version = "0.2.14"
default-features = false
-[dev-dependencies.criterion]
-version = "0.4.0"

[features]
default = ["std"]
84 changes: 84 additions & 0 deletions rust-atoi/rust-atoi.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Generated by rust2rpm 25
%bcond_without check
%global debug_package %{nil}

%global crate atoi

Name: rust-atoi
Version: 2.0.0
Release: %autorelease
Summary: Parse integers directly from [u8] slices in safe code

License: MIT
URL: https://crates.io/crates/atoi
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
Patch: atoi-fix-metadata.diff

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
Parse integers directly from `[u8]` slices in safe code.}

%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
%doc %{crate_instdir}/CONTRIBUTING.md
%doc %{crate_instdir}/Changelog.md
%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

%package -n %{name}+std-devel
Summary: %{summary}
BuildArch: noarch

%description -n %{name}+std-devel %{_description}

This package contains library source intended for building other packages which
use the "std" feature of the "%{crate}" crate.

%files -n %{name}+std-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
%autochangelog
Loading

0 comments on commit 4066d75

Please sign in to comment.