Skip to content

Commit

Permalink
Dependencies Round 2
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Mar 28, 2024
1 parent 2e37cb1 commit f2d0bae
Show file tree
Hide file tree
Showing 39 changed files with 3,390 additions and 0 deletions.
199 changes: 199 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,62 @@ packages:
- sh -c 'echo sqlx-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-sqlx/rust-sqlx.spec
rust-sqlx-core:
# https://github.com/launchbadge/sqlx
specfile_path: rust-sqlx-core/rust-sqlx-core.spec
files_to_sync:
- rust-sqlx-core/rust-sqlx-core.spec
- rust-sqlx-core/rust2rpm.toml
upstream_package_name: sqlx-core
downstream_package_name: rust-sqlx-core
actions:
create-archive:
- spectool -g -s0 rust-sqlx-core/rust-sqlx-core.spec
- sh -c 'echo sqlx-core-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-sqlx-core/rust-sqlx-core.spec
rust-sqlx-macros:
# https://github.com/launchbadge/sqlx
specfile_path: rust-sqlx-macros/rust-sqlx-macros.spec
files_to_sync:
- rust-sqlx-macros/rust-sqlx-macros.spec
- rust-sqlx-macros/rust2rpm.toml
upstream_package_name: sqlx-macros
downstream_package_name: rust-sqlx-macros
actions:
create-archive:
- spectool -g -s0 rust-sqlx-macros/rust-sqlx-macros.spec
- sh -c 'echo sqlx-macros-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-sqlx-macros/rust-sqlx-macros.spec
rust-sqlx-mysql:
# https://github.com/launchbadge/sqlx
specfile_path: rust-sqlx-mysql/rust-sqlx-mysql.spec
files_to_sync:
- rust-sqlx-mysql/rust-sqlx-mysql.spec
- rust-sqlx-mysql/rust2rpm.toml
upstream_package_name: sqlx-mysql
downstream_package_name: rust-sqlx-mysql
actions:
create-archive:
- spectool -g -s0 rust-sqlx-mysql/rust-sqlx-mysql.spec
- sh -c 'echo sqlx-mysql-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-sqlx-mysql/rust-sqlx-mysql.spec
rust-sqlx-sqlite:
# https://github.com/launchbadge/sqlx
specfile_path: rust-sqlx-sqlite/rust-sqlx-sqlite.spec
files_to_sync:
- rust-sqlx-sqlite/rust-sqlx-sqlite.spec
- rust-sqlx-sqlite/rust2rpm.toml
upstream_package_name: sqlx-sqlite
downstream_package_name: rust-sqlx-sqlite
actions:
create-archive:
- spectool -g -s0 rust-sqlx-sqlite/rust-sqlx-sqlite.spec
- sh -c 'echo sqlx-sqlite-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-sqlx-sqlite/rust-sqlx-sqlite.spec
rust-tiny-bip39:
# https://github.com/maciejhirsz/tiny-bip39/
specfile_path: rust-tiny-bip39/rust-tiny-bip39.spec
Expand Down Expand Up @@ -197,6 +253,61 @@ packages:
- sh -c 'echo tracing-tree-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-tracing-tree/rust-tracing-tree.spec
rust-criterion:
# https://github.com/bheisler/criterion.rs
specfile_path: rust-criterion/rust-criterion.spec
files_to_sync:
- rust-criterion/rust-criterion.spec
- rust-criterion/rust2rpm.toml
upstream_package_name: criterion
downstream_package_name: rust-criterion
actions:
create-archive:
- spectool -g -s0 rust-criterion/rust-criterion.spec
- sh -c 'echo criterion-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-criterion/rust-criterion.spec
rust-http-body-util:
# https://github.com/hyperium/http-body
specfile_path: rust-http-body-util/rust-http-body-util.spec
files_to_sync:
- rust-http-body-util/rust-http-body-util.spec
- rust-http-body-util/rust2rpm.toml
upstream_package_name: http-body-util
downstream_package_name: rust-http-body-util
actions:
create-archive:
- spectool -g -s0 rust-http-body-util/rust-http-body-util.spec
- sh -c 'echo http-body-util-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-http-body-util/rust-http-body-util.spec
rust-typed-builder-macro:
specfile_path: rust-typed-builder-macro/rust-typed-builder-macro.spec
files_to_sync:
- rust-typed-builder-macro/rust-typed-builder-macro.spec
- rust-typed-builder-macro/rust2rpm.toml
upstream_package_name: typed-builder-macro
downstream_package_name: rust-typed-builder-macro
actions:
create-archive:
- spectool -g -s0 rust-typed-builder-macro/rust-typed-builder-macro.spec
- sh -c 'echo typed-builder-macro-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-typed-builder-macro/rust-typed-builder-macro.spec
rust-rustls-pki-types:
# https://github.com/rustls/pki-types
specfile_path: rust-rustls-pki-types/rust-rustls-pki-types.spec
files_to_sync:
- rust-rustls-pki-types/rust-rustls-pki-types.spec
- rust-rustls-pki-types/rust2rpm.toml
upstream_package_name: rustls-pki-types
downstream_package_name: rust-rustls-pki-types
actions:
create-archive:
- spectool -g -s0 rust-rustls-pki-types/rust-rustls-pki-types.spec
- sh -c 'echo rustls-pki-types-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-rustls-pki-types/rust-rustls-pki-types.spec
# Upstream is working on it:
rust-argon2:
# https://bugzilla.redhat.com/show_bug.cgi?id=2258880
Expand Down Expand Up @@ -261,6 +372,94 @@ packages:
- sh -c 'echo typed-builder-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-typed-builder/rust-typed-builder.spec
rust-num:
specfile_path: rust-num/rust-num.spec
files_to_sync:
- rust-num/rust-num.spec
- rust-num/rust2rpm.toml
actions:
create-archive:
- spectool -g -s0 rust-num/rust-num.spec
- sh -c 'echo num-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-num/rust-num.spec
rust-tokio-tungstenite:
specfile_path: rust-tokio-tungstenite/rust-tokio-tungstenite.spec
files_to_sync:
- rust-tokio-tungstenite/rust-tokio-tungstenite.spec
- rust-tokio-tungstenite/rust2rpm.toml
actions:
create-archive:
- spectool -g -s0 rust-tokio-tungstenite/rust-tokio-tungstenite.spec
- sh -c 'echo tokio-tungstenite-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-tokio-tungstenite/rust-tokio-tungstenite.spec
rust-sync_wrapper:
specfile_path: rust-sync_wrapper/rust-sync_wrapper.spec
files_to_sync:
- rust-sync_wrapper/rust-sync_wrapper.spec
- rust-sync_wrapper/rust2rpm.toml
actions:
create-archive:
- spectool -g -s0 rust-sync_wrapper/rust-sync_wrapper.spec
- sh -c 'echo sync_wrapper-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-sync_wrapper/rust-sync_wrapper.spec
rust-multer:
specfile_path: rust-multer/rust-multer.spec
files_to_sync:
- rust-multer/rust-multer.spec
- rust-multer/rust2rpm.toml
actions:
create-archive:
- spectool -g -s0 rust-multer/rust-multer.spec
- sh -c 'echo multer-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-multer/rust-multer.spec
rust-hyper:
specfile_path: rust-hyper/rust-hyper.spec
files_to_sync:
- rust-hyper/rust-hyper.spec
- rust-hyper/rust2rpm.toml
actions:
create-archive:
- spectool -g -s0 rust-hyper/rust-hyper.spec
- sh -c 'echo hyper-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-hyper/rust-hyper.spec
rust-axum-macros:
specfile_path: rust-axum-macros/rust-axum-macros.spec
files_to_sync:
- rust-axum-macros/rust-axum-macros.spec
- rust-axum-macros/rust2rpm.toml
actions:
create-archive:
- spectool -g -s0 rust-axum-macros/rust-axum-macros.spec
- sh -c 'echo axum-macros-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-axum-macros/rust-axum-macros.spec
rust-axum-core:
specfile_path: rust-axum-core/rust-axum-core.spec
files_to_sync:
- rust-axum-core/rust-axum-core.spec
- rust-axum-core/rust2rpm.toml
actions:
create-archive:
- spectool -g -s0 rust-axum-core/rust-axum-core.spec
- sh -c 'echo axum-core-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-axum-core/rust-axum-core.spec
rust-http-body:
specfile_path: rust-http-body/rust-http-body.spec
files_to_sync:
- rust-http-body/rust-http-body.spec
- rust-http-body/rust2rpm.toml
actions:
create-archive:
- spectool -g -s0 rust-http-body/rust-http-body.spec
- sh -c 'echo http-body-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-http-body/rust-http-body.spec

jobs:
- job: copr_build
Expand Down
93 changes: 93 additions & 0 deletions rust-axum-core/rust-axum-core.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}

%global crate axum-core

Name: rust-axum-core
Version: 0.4.3
Release: %autorelease
Summary: Core types and traits for axum

License: MIT
URL: https://crates.io/crates/axum-core
Source: %{crates_source}

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
Core types and traits for axum.}

%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}/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}+__private_docs-devel
Summary: %{summary}
BuildArch: noarch

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

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

%files -n %{name}+__private_docs-devel
%ghost %{crate_instdir}/Cargo.toml

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

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

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

%files -n %{name}+tracing-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
Empty file added rust-axum-core/rust2rpm.toml
Empty file.
81 changes: 81 additions & 0 deletions rust-axum-macros/rust-axum-macros.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}

%global crate axum-macros

Name: rust-axum-macros
Version: 0.4.1
Release: %autorelease
Summary: Macros for axum

License: MIT
URL: https://crates.io/crates/axum-macros
Source: %{crates_source}

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
Macros for axum.}

%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}/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}+__private-devel
Summary: %{summary}
BuildArch: noarch

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

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

%files -n %{name}+__private-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
Empty file added rust-axum-macros/rust2rpm.toml
Empty file.
Loading

0 comments on commit f2d0bae

Please sign in to comment.