Skip to content

Commit

Permalink
Dependencies Round 5
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 2c4154a commit e3d42de
Show file tree
Hide file tree
Showing 5 changed files with 199 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,20 @@ packages:
upstream_package_name: defmac
downstream_package_name: rust-defmac
actions: *Actions-Package-NewOrUpdate
rust-no-std-net:
# https://github.com/dunmatt/no-std-net
paths: [ rust-no-std-net ]
specfile_path: rust-no-std-net.spec
upstream_package_name: no-std-net
downstream_package_name: rust-no-std-net
actions: *Actions-Package-NewOrUpdate
rust-special:
# https://github.com/stainless-steel/special
paths: [ rust-special ]
specfile_path: rust-special.spec
upstream_package_name: special
downstream_package_name: rust-special
actions: *Actions-Package-NewOrUpdate

# Upstream is working on it:
rust-argon2:
Expand Down
116 changes: 116 additions & 0 deletions rust-no-std-net/rust-no-std-net.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}

%global crate no-std-net

Name: rust-no-std-net
Version: 0.6.0
Release: %autorelease
Summary: Rust's std::net... without the 'std'

License: MIT
URL: https://crates.io/crates/no-std-net
Source: %{crates_source}

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
Rust's std::net... without the 'std'.}

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

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

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

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

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

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

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

%files -n %{name}+serde-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

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

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

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

%files -n %{name}+unstable_ip-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-no-std-net/rust2rpm.toml
Empty file.
69 changes: 69 additions & 0 deletions rust-special/rust-special.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}

%global crate special

Name: rust-special
Version: 0.10.3
Release: %autorelease
Summary: Package provides special functions

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

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
The package provides special functions.}

%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.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

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

0 comments on commit e3d42de

Please sign in to comment.