Skip to content

Commit

Permalink
Dependencies Round 4
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Mar 29, 2024
1 parent 1ed5463 commit 2c4154a
Show file tree
Hide file tree
Showing 19 changed files with 797 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,38 @@ packages:
upstream_package_name: sketches-ddsketch
downstream_package_name: rust-sketches-ddsketch
actions: *Actions-Package-NewOrUpdate
rust-finl_unicode:
# https://github.com/dahosek/finl_unicode
paths: [ rust-finl_unicode ]
specfile_path: rust-finl_unicode.spec
upstream_package_name: finl_unicode
downstream_package_name: rust-finl_unicode
# Patch `criterion` out
actions:
fix-spec-file: []
create-archive: *Create-archive-crate
get-current-version: *Get-Version
rust-core_affinity:
# https://github.com/Elzair/core_affinity_rs
paths: [ rust-core_affinity ]
specfile_path: rust-core_affinity.spec
upstream_package_name: core_affinity
downstream_package_name: rust-core_affinity
actions: *Actions-Package-NewOrUpdate
rust-termimad:
# https://github.com/Canop/termimad
paths: [ rust-termimad ]
specfile_path: rust-termimad.spec
upstream_package_name: termimad
downstream_package_name: rust-termimad
actions: *Actions-Package-NewOrUpdate
rust-defmac:
# https://github.com/bluss/defmac
paths: [ rust-defmac ]
specfile_path: rust-defmac.spec
upstream_package_name: defmac
downstream_package_name: rust-defmac
actions: *Actions-Package-NewOrUpdate

# Upstream is working on it:
rust-argon2:
Expand Down Expand Up @@ -538,6 +570,30 @@ packages:
upstream_package_name: ordered-float
downstream_package_name: rust-ordered-float
actions: *Actions-Package-NewOrUpdate
rust-pnet_base:
paths: [ rust-pnet_base ]
specfile_path: rust-pnet_base.spec
upstream_package_name: pnet_base
downstream_package_name: rust-pnet_base
actions: *Actions-Package-NewOrUpdate
rust-pnet_sys:
paths: [ rust-pnet_sys ]
specfile_path: rust-pnet_sys.spec
upstream_package_name: pnet_sys
downstream_package_name: rust-pnet_sys
actions: *Actions-Package-NewOrUpdate
rust-approx:
paths: [ rust-approx ]
specfile_path: rust-approx.spec
upstream_package_name: approx
downstream_package_name: rust-approx
actions: *Actions-Package-NewOrUpdate
rust-rand_distr:
paths: [ rust-rand_distr ]
specfile_path: rust-rand_distr.spec
upstream_package_name: rand_distr
downstream_package_name: rust-rand_distr
actions: *Actions-Package-NewOrUpdate

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

%global crate approx

Name: rust-approx
Version: 0.5.1
Release: %autorelease
Summary: Approximate floating point equality comparisons and assertions

License: Apache-2.0
URL: https://crates.io/crates/approx
Source: %{crates_source}

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
Approximate floating point equality comparisons and assertions.}

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

%description -n %{name}+num-complex-devel %{_description}

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

%files -n %{name}+num-complex-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
Empty file added rust-approx/rust2rpm.toml
Empty file.
12 changes: 12 additions & 0 deletions rust-core_affinity/core_affinity-fix-metadata-auto.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- core_affinity-0.8.1/Cargo.toml 1970-01-01T00:00:01+00:00
+++ core_affinity-0.8.1/Cargo.toml 2024-03-29T19:34:35.902008+00:00
@@ -33,9 +33,3 @@
[target."cfg(any(target_os = \"android\", target_os = \"linux\", target_os = \"macos\", target_os = \"freebsd\"))".dependencies.libc]
version = "^0.2.30"

-[target."cfg(target_os = \"windows\")".dependencies.winapi]
-version = "^0.3.9"
-features = [
- "processthreadsapi",
- "winbase",
-]
72 changes: 72 additions & 0 deletions rust-core_affinity/rust-core_affinity.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}

%global crate core_affinity

Name: rust-core_affinity
Version: 0.8.1
Release: %autorelease
Summary: Manages CPU affinities

# Upstream license specification: MIT/Apache-2.0
License: MIT OR Apache-2.0
URL: https://crates.io/crates/core_affinity
Source: %{crates_source}
# Automatically generated patch to strip dependencies and normalize metadata
Patch: core_affinity-fix-metadata-auto.diff

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
Manages CPU affinities.}

%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-APACHE
%license %{crate_instdir}/LICENSE-MIT
%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

%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.
70 changes: 70 additions & 0 deletions rust-defmac/rust-defmac.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}

%global crate defmac

Name: rust-defmac
Version: 0.2.1
Release: %autorelease
Summary: Macro to define lambda-like macros inline

# Upstream license specification: Apache-2.0/MIT
License: Apache-2.0 OR MIT
URL: https://crates.io/crates/defmac
Source: %{crates_source}

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
A macro to define lambda-like macros inline.}

%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-APACHE
%license %{crate_instdir}/LICENSE-MIT
%doc %{crate_instdir}/README.rst
%{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

%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-defmac/rust2rpm.toml
Empty file.
Loading

0 comments on commit 2c4154a

Please sign in to comment.