build deb packages using debbuild
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
c23f3d28c3
commit
e1630011d1
@ -5,25 +5,32 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
%global built_tag v1.0.3
|
%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
|
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
|
Release: %autorelease
|
||||||
Summary: OCI network stack
|
|
||||||
ExclusiveArch: %{rust_arches}
|
|
||||||
License: ASL 2.0 and BSD and MIT
|
License: ASL 2.0 and BSD and MIT
|
||||||
|
ExclusiveArch: %{rust_arches}
|
||||||
|
%endif
|
||||||
|
Summary: OCI network stack
|
||||||
URL: https://github.com/containers/%{name}
|
URL: https://github.com/containers/%{name}
|
||||||
Source0: %{url}/archive/%{built_tag}/%{version}.tar.gz
|
Source0: %{url}/archive/%{built_tag}/%{version}.tar.gz
|
||||||
Source1: %{url}/releases/download/%{built_tag}/%{name}-%{built_tag}-vendor.tar.gz
|
Source1: %{url}/releases/download/%{built_tag}/%{name}-%{built_tag}-vendor.tar.gz
|
||||||
BuildRequires: cargo
|
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: make
|
||||||
BuildRequires: rust-srpm-macros
|
BuildRequires: rust-srpm-macros
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
BuildRequires: go-md2man
|
|
||||||
Recommends: aardvark-dns >= 1.0.3-1
|
|
||||||
Provides: container-network-stack = 2
|
|
||||||
# Generated using:
|
# Generated using:
|
||||||
# cargo tree --prefix none | awk '{print "Provides: bundled(crate("$1")) = "$2}' | sort | uniq
|
# cargo tree --prefix none | awk '{print "Provides: bundled(crate("$1")) = "$2}' | sort | uniq
|
||||||
Provides: bundled(crate(aho-corasick)) = v0.7.18
|
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(zbus_names)) = v2.1.0
|
||||||
Provides: bundled(crate(zvariant)) = v3.2.0
|
Provides: bundled(crate(zvariant)) = v3.2.0
|
||||||
Provides: bundled(crate(zvariant_derive)) = v3.2.0
|
Provides: bundled(crate(zvariant_derive)) = v3.2.0
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}
|
%{summary}
|
||||||
@ -189,7 +197,7 @@ Its features include:
|
|||||||
* Support for container DNS resolution via aardvark-dns.
|
* Support for container DNS resolution via aardvark-dns.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -Sgit -n %{name}-%{built_tag_strip}
|
%autosetup -Sgit
|
||||||
tar fx %{SOURCE1}
|
tar fx %{SOURCE1}
|
||||||
mkdir -p .cargo
|
mkdir -p .cargo
|
||||||
|
|
||||||
@ -204,9 +212,8 @@ EOF
|
|||||||
%build
|
%build
|
||||||
%{__make} build
|
%{__make} build
|
||||||
|
|
||||||
pushd docs
|
cd docs
|
||||||
go-md2man -in %{name}.1.md -out %{name}.1
|
go-md2man -in %{name}.1.md -out %{name}.1
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
||||||
@ -218,4 +225,6 @@ popd
|
|||||||
%{_mandir}/man1/%{name}.1*
|
%{_mandir}/man1/%{name}.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
%if "%{_vendor}" != "debbuild"
|
||||||
%autochangelog
|
%autochangelog
|
||||||
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user