Skip to content

Commit

Permalink
Dep: Add Packages that need packaging
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 de8b134 commit 2e37cb1
Show file tree
Hide file tree
Showing 32 changed files with 2,505 additions and 0 deletions.
184 changes: 184 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,190 @@ packages:
- sh -c 'echo v${PACKIT_PROJECT_VERSION}.tar.gz'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm atuin/atuin.spec
# Other dependencies to package:
rust-axum-server:
# https://github.com/programatik29/axum-server
specfile_path: rust-axum-server/rust-axum-server.spec
files_to_sync:
- rust-axum-server/rust-axum-server.spec
- rust-axum-server/rust2rpm.toml
upstream_package_name: axum-server
downstream_package_name: rust-axum-server
actions:
create-archive:
- spectool -g -s0 rust-axum-server/rust-axum-server.spec
- sh -c 'echo axum-server-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-axum-server/rust-axum-server.spec
rust-cli-clipboard:
# https://github.com/actuallyallie/cli-clipboard
specfile_path: rust-cli-clipboard/rust-cli-clipboard.spec
files_to_sync:
- rust-cli-clipboard/rust-cli-clipboard.spec
- rust-cli-clipboard/rust2rpm.toml
upstream_package_name: cli-clipboard
downstream_package_name: rust-cli-clipboard
actions:
create-archive:
- spectool -g -s0 rust-cli-clipboard/rust-cli-clipboard.spec
- sh -c 'echo cli-clipboard-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-cli-clipboard/rust-cli-clipboard.spec
rust-interim:
# https://github.com/conradludgate/interim
specfile_path: rust-interim/rust-interim.spec
files_to_sync:
- rust-interim/rust-interim.spec
- rust-interim/rust2rpm.toml
upstream_package_name: interim
downstream_package_name: rust-interim
actions:
create-archive:
- spectool -g -s0 rust-interim/rust-interim.spec
- sh -c 'echo interim-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-interim/rust-interim.spec
rust-metrics-exporter-prometheus:
# https://github.com/metrics-rs/metrics
specfile_path: rust-metrics-exporter-prometheus/rust-metrics-exporter-prometheus.spec
files_to_sync:
- rust-metrics-exporter-prometheus/rust-metrics-exporter-prometheus.spec
- rust-metrics-exporter-prometheus/rust2rpm.toml
upstream_package_name: metrics-exporter-prometheus
downstream_package_name: rust-metrics-exporter-prometheus
actions:
create-archive:
- spectool -g -s0 rust-metrics-exporter-prometheus/rust-metrics-exporter-prometheus.spec
- sh -c 'echo metrics-exporter-prometheus-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-metrics-exporter-prometheus/rust-metrics-exporter-prometheus.spec
rust-metrics:
# https://github.com/metrics-rs/metrics
specfile_path: rust-metrics/rust-metrics.spec
files_to_sync:
- rust-metrics/rust-metrics.spec
- rust-metrics/rust2rpm.toml
upstream_package_name: metrics
downstream_package_name: rust-metrics
actions:
create-archive:
- spectool -g -s0 rust-metrics/rust-metrics.spec
- sh -c 'echo metrics-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-metrics/rust-metrics.spec
rust-minspan:
# ???
# Note: Badly packaged: No license file
specfile_path: rust-minspan/rust-minspan.spec
files_to_sync:
- rust-minspan/rust-minspan.spec
- rust-minspan/rust2rpm.toml
upstream_package_name: minspan
downstream_package_name: rust-minspan
actions:
create-archive:
- spectool -g -s0 rust-minspan/rust-minspan.spec
- sh -c 'echo minspan-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-minspan/rust-minspan.spec
rust-parse_duration:
# https://github.com/zeta12ti/parse_duration/
specfile_path: rust-parse_duration/rust-parse_duration.spec
files_to_sync:
- rust-parse_duration/rust-parse_duration.spec
- rust-parse_duration/rust2rpm.toml
upstream_package_name: parse_duration
downstream_package_name: rust-parse_duration
actions:
create-archive:
- spectool -g -s0 rust-parse_duration/rust-parse_duration.spec
- sh -c 'echo parse_duration-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-parse_duration/rust-parse_duration.spec
rust-rusty_paserk:
# https://github.com/conradludgate/rusty-paserk
specfile_path: rust-rusty_paserk/rust-rusty_paserk.spec
files_to_sync:
- rust-rusty_paserk/rust-rusty_paserk.spec
- rust-rusty_paserk/rust2rpm.toml
upstream_package_name: rusty_paserk
downstream_package_name: rust-rusty_paserk
actions:
create-archive:
- spectool -g -s0 rust-rusty_paserk/rust-rusty_paserk.spec
- sh -c 'echo rusty_paserk-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-rusty_paserk/rust-rusty_paserk.spec
rust-rusty_paseto:
# https://github.com/rrrodzilla/rusty_paseto
specfile_path: rust-rusty_paseto/rust-rusty_paseto.spec
files_to_sync:
- rust-rusty_paseto/rust-rusty_paseto.spec
- rust-rusty_paseto/rust2rpm.toml
upstream_package_name: rusty_paseto
downstream_package_name: rust-rusty_paseto
actions:
create-archive:
- spectool -g -s0 rust-rusty_paseto/rust-rusty_paseto.spec
- sh -c 'echo rusty_paseto-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-rusty_paseto/rust-rusty_paseto.spec
rust-sql-builder:
# https://github.com/perdumonocle/sql-builder.git
specfile_path: rust-sql-builder/rust-sql-builder.spec
files_to_sync:
- rust-sql-builder/rust-sql-builder.spec
- rust-sql-builder/rust2rpm.toml
upstream_package_name: sql-builder
downstream_package_name: rust-sql-builder
actions:
create-archive:
- spectool -g -s0 rust-sql-builder/rust-sql-builder.spec
- sh -c 'echo sql-builder-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-sql-builder/rust-sql-builder.spec
rust-sqlx:
# https://github.com/launchbadge/sqlx
specfile_path: rust-sqlx/rust-sqlx.spec
files_to_sync:
- rust-sqlx/rust-sqlx.spec
- rust-sqlx/rust2rpm.toml
upstream_package_name: sqlx
downstream_package_name: rust-sqlx
actions:
create-archive:
- spectool -g -s0 rust-sqlx/rust-sqlx.spec
- sh -c 'echo sqlx-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-sqlx/rust-sqlx.spec
rust-tiny-bip39:
# https://github.com/maciejhirsz/tiny-bip39/
specfile_path: rust-tiny-bip39/rust-tiny-bip39.spec
files_to_sync:
- rust-tiny-bip39/rust-tiny-bip39.spec
- rust-tiny-bip39/rust2rpm.toml
upstream_package_name: tiny-bip39
downstream_package_name: rust-tiny-bip39
actions:
create-archive:
- spectool -g -s0 rust-tiny-bip39/rust-tiny-bip39.spec
- sh -c 'echo tiny-bip39-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-tiny-bip39/rust-tiny-bip39.spec
rust-tracing-tree:
# https://github.com/davidbarsky/tracing-tree
specfile_path: rust-tracing-tree/rust-tracing-tree.spec
files_to_sync:
- rust-tracing-tree/rust-tracing-tree.spec
- rust-tracing-tree/rust2rpm.toml
upstream_package_name: tracing-tree
downstream_package_name: rust-tracing-tree
actions:
create-archive:
- spectool -g -s0 rust-tracing-tree/rust-tracing-tree.spec
- sh -c 'echo tracing-tree-${PACKIT_PROJECT_VERSION}.crate'
get-current-version:
- rpmspec -q --qf "%{Version}" --srpm rust-tracing-tree/rust-tracing-tree.spec
# Upstream is working on it:
rust-argon2:
# https://bugzilla.redhat.com/show_bug.cgi?id=2258880
Expand Down
165 changes: 165 additions & 0 deletions rust-axum-server/rust-axum-server.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}

%global crate axum-server

Name: rust-axum-server
Version: 0.6.0
Release: %autorelease
Summary: High level server designed to be used with axum framework

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

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
High level server designed to be used with axum framework.}

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

%description -n %{name}+arc-swap-devel %{_description}

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

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

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

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

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

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

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

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

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

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

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

%description -n %{name}+rustls-pemfile-devel %{_description}

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

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

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

%description -n %{name}+tls-openssl-devel %{_description}

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

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

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

%description -n %{name}+tls-rustls-devel %{_description}

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

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

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

%description -n %{name}+tokio-openssl-devel %{_description}

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

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

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

%description -n %{name}+tokio-rustls-devel %{_description}

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

%files -n %{name}+tokio-rustls-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-server/rust2rpm.toml
Empty file.
18 changes: 18 additions & 0 deletions rust-cli-clipboard/cli-clipboard-fix-metadata-auto.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- cli-clipboard-0.4.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ cli-clipboard-0.4.0/Cargo.toml 2024-03-28T12:16:15.459776+00:00
@@ -26,15 +26,3 @@
[target."cfg(all(unix, not(any(target_os=\"macos\", target_os=\"android\", target_os=\"emscripten\"))))".dependencies.x11-clipboard]
version = "0.7"

-[target."cfg(target_os = \"macos\")".dependencies.objc]
-version = "0.2"
-
-[target."cfg(target_os = \"macos\")".dependencies.objc-foundation]
-version = "0.1"
-
-[target."cfg(target_os = \"macos\")".dependencies.objc_id]
-version = "0.1"
-
-[target."cfg(windows)".dependencies.clipboard-win]
-version = "4.4"
-features = ["std"]
Loading

0 comments on commit 2e37cb1

Please sign in to comment.