Skip to content

Commit

Permalink
fix: bandwhich ouch oxipng rnote youki
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko committed Oct 30, 2023
1 parent 7a8b007 commit 289c050
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 13 deletions.
8 changes: 4 additions & 4 deletions anda/rust/bandwhich/bandwhich-fix-metadata-auto.diff
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- bandwhich-0.21.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ bandwhich-0.21.0/Cargo.toml 2023-09-21T07:50:16.506970+00:00
@@ -104,17 +104,3 @@
--- bandwhich-0.21.1/Cargo.toml 1970-01-01T00:00:01+00:00
+++ bandwhich-0.21.1/Cargo.toml 2023-10-30T06:12:20.956389+00:00
@@ -119,17 +119,3 @@
[target."cfg(target_os=\"linux\")".dependencies.procfs]
version = "0.15.1"

Expand All @@ -14,7 +14,7 @@
-version = "1.0.75"
-
-[target."cfg(target_os=\"windows\")".build-dependencies.http_req]
-version = "0.9.3"
-version = "0.10.0"
-
-[target."cfg(target_os=\"windows\")".build-dependencies.zip]
-version = "0.6.6"
11 changes: 5 additions & 6 deletions anda/rust/bandwhich/rust-bandwhich.spec
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Generated by rust2rpm 24
# Generated by rust2rpm 25
#bcond_without check

%global crate bandwhich

Name: rust-bandwhich
Version: 0.21.1
Release: 1%{?dist}
Release: %autorelease
Summary: Display current network utilization by process, connection and remote IP/hostname

License: MIT
URL: https://crates.io/crates/bandwhich
Source: %{crates_source}
# Automatically generated patch to strip foreign dependencies
# Automatically generated patch to strip dependencies and normalize metadata
Patch: bandwhich-fix-metadata-auto.diff

BuildRequires: anda-srpm-macros rust-packaging >= 23
BuildRequires: anda-srpm-macros cargo-rpm-macros >= 24

%global _description %{expand:
Display current network utilization by process, connection and remote
Expand All @@ -38,7 +38,7 @@ License: MIT
%{_bindir}/bandwhich

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%autosetup -n %{crate}-%{version} -p1
%cargo_prep_online

%build
Expand All @@ -48,7 +48,6 @@ License: MIT

%install
%cargo_install
rm %{buildroot}/.cargo -rf

%if %{with check}
%check
Expand Down
3 changes: 3 additions & 0 deletions anda/rust/ouch/rust-ouch.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Summary: Command-line utility for easily compressing and decompressing fi
License: MIT
URL: https://crates.io/crates/ouch
Source: %{crates_source}
# Automatically generated patch to strip foreign dependencies
Patch: ouch-fix-metadata-auto.diff

BuildRequires: anda-srpm-macros rust-packaging >= 21

%global _description %{expand:
Expand Down
2 changes: 1 addition & 1 deletion anda/rust/rnote/rnote.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ License: GPL-3.0
URL: https://github.com/flxzt/rnote
Source0: %{url}/archive/refs/tags/v%version.tar.gz
Requires: gtk4
BuildRequires: cargo meson cmake libappstream-glib gcc-c++ pkgconfig(alsa) alsa-lib clang-devel python desktop-file-utils
BuildRequires: cargo meson cmake libappstream-glib gcc-c++ pkgconfig(alsa) alsa-lib clang-devel python
BuildRequires: pkgconfig(glib-2.0) >= 2.66
BuildRequires: pkgconfig(gtk4) >= 4.7
BuildRequires: pkgconfig(libadwaita-1) >= 1.2
Expand Down
2 changes: 1 addition & 1 deletion anda/rust/youki/anda.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project pkg {
rpm {
spec = "youki.spec"
spec = "rust-youki.spec"

// enable_scm = true

Expand Down
58 changes: 58 additions & 0 deletions anda/rust/youki/rust-youki.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Generated by rust2rpm 25
#bcond_without check

%global crate youki

Name: rust-youki
Version: 0.3.0
Release: %autorelease
Summary: Container runtime written in Rust

License: None
URL: https://crates.io/crates/youki
Source: %{crates_source}

BuildRequires: anda-srpm-macros cargo-rpm-macros >= 24
BuildRequires: pkg-config
BuildRequires: systemd-devel
BuildRequires: dbus-devel
BuildRequires: libseccomp-devel
BuildRequires: elfutils-libelf-devel
BuildRequires: binutils

%global _description %{expand:
A container runtime written in Rust.}

%description %{_description}

%package -n %{crate}
Summary: %{summary}
License: Apache-2.0

%description -n %{crate} %{_description}

%files -n %{crate}
%license LICENSE
%license LICENSE.dependencies
%doc README.md
%{_bindir}/youki

%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep_online

%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif

%changelog
%autochangelog
2 changes: 1 addition & 1 deletion anda/rust/youki/update.rhai
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rpm.version(gh("containers/youki"));
rpm.version(crates("youki"));

0 comments on commit 289c050

Please sign in to comment.