The package rpms/netavark.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/netavark.git/commit/?id=236951fb4....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 236951fb48106bad87e7cda2cce8eca4bf6f8df2
Author: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
Date: Wed May 18 10:45:14 2022 -0400
build deb packages using debbuild
Signed-off-by: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
(cherry picked from commit e1630011d1e077ae61925f685baa4c0c5c63b4fd)
Signed-off-by: Lokesh Mandvekar <lsm5(a)fedoraproject.org>
diff --git a/netavark.spec b/netavark.spec
index 03747aa..8035af2 100644
--- a/netavark.spec
+++ b/netavark.spec
@@ -5,25 +5,32 @@
%global debug_package %{nil}
%global built_tag v1.0.3
-%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
-%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
Name: netavark
-Version: %{gen_version}
+Version: 1.0.3
+%if "%{_vendor}" == "debbuild"
+Packager: Lokesh Mandvekar <
https://github.com/lsm5>
+License: ASL-2.0+
+Release: 0%{?dist}
+%else
Release: %autorelease
-Summary: OCI network stack
-ExclusiveArch: %{rust_arches}
License: ASL 2.0 and BSD and MIT
+ExclusiveArch: %{rust_arches}
+%endif
+Summary: OCI network stack
URL:
https://github.com/containers/%{name}
Source0: %{url}/archive/%{built_tag}/%{version}.tar.gz
Source1: %{url}/releases/download/%{built_tag}/%{name}-%{built_tag}-vendor.tar.gz
BuildRequires: cargo
+BuildRequires: go-md2man
+Recommends: aardvark-dns >= 1.0.3
+Provides: container-network-stack = 2
+%if "%{_vendor}" == "debbuild"
+BuildRequires: git
+%else
BuildRequires: make
BuildRequires: rust-srpm-macros
BuildRequires: git-core
-BuildRequires: go-md2man
-Recommends: aardvark-dns >= 1.0.3-1
-Provides: container-network-stack = 2
# Generated using:
# cargo tree --prefix none | awk '{print "Provides:
bundled(crate("$1")) = "$2}' | sort | uniq
Provides: bundled(crate(aho-corasick)) = v0.7.18
@@ -167,6 +174,7 @@ Provides: bundled(crate(zbus_macros)) = v2.2.0
Provides: bundled(crate(zbus_names)) = v2.1.0
Provides: bundled(crate(zvariant)) = v3.2.0
Provides: bundled(crate(zvariant_derive)) = v3.2.0
+%endif
%description
%{summary}
@@ -189,7 +197,7 @@ Its features include:
* Support for container DNS resolution via aardvark-dns.
%prep
-%autosetup -Sgit -n %{name}-%{built_tag_strip}
+%autosetup -Sgit
tar fx %{SOURCE1}
mkdir -p .cargo
@@ -204,9 +212,8 @@ EOF
%build
%{__make} build
-pushd docs
+cd docs
go-md2man -in %{name}.1.md -out %{name}.1
-popd
%install
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
@@ -218,4 +225,6 @@ popd
%{_mandir}/man1/%{name}.1*
%changelog
+%if "%{_vendor}" != "debbuild"
%autochangelog
+%endif