remove debbuild macros to comply with Fedora guidelines
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
cb7fe4a84f
commit
4bc88b6914
@ -1,28 +1,18 @@
|
||||
%global built_tag_strip 1.2.0
|
||||
%global built_tag v1.2.0
|
||||
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
|
||||
%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
|
||||
|
||||
Name: slirp4netns
|
||||
Version: 1.2.0
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
Packager: Podman Debbuild Maintainers <https://github.com/orgs/containers/teams/podman-debbuild-maintainers>
|
||||
License: GPL-2.0+
|
||||
Release: 0%{?dist}
|
||||
%else
|
||||
Version: %{gen_version}
|
||||
Release: %autorelease
|
||||
License: GPLv2
|
||||
%endif
|
||||
Summary: slirp for network namespaces
|
||||
URL: https://github.com/rootless-containers/%{name}
|
||||
Source0: %{url}/archive/v%{built_tag_strip}.tar.gz
|
||||
# Tarball fetched from upstream
|
||||
Source0: %{url}/archive/%{built_tag}.tar.gz
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: go-md2man
|
||||
%if "%{_vendor}" == "debbuild"
|
||||
BuildRequires: git
|
||||
BuildRequires: libglib2.0-dev
|
||||
BuildRequires: libcap-dev
|
||||
BuildRequires: libseccomp-dev
|
||||
BuildRequires: libslirp-dev
|
||||
%else
|
||||
BuildRequires: gcc
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: git-core
|
||||
@ -30,7 +20,6 @@ BuildRequires: libcap-devel
|
||||
BuildRequires: libseccomp-devel
|
||||
BuildRequires: libslirp-devel
|
||||
BuildRequires: make
|
||||
%endif
|
||||
|
||||
%description
|
||||
slirp for network namespaces, without copying buffers across the namespaces.
|
||||
@ -69,6 +58,4 @@ make DESTDIR=%{buildroot} install install-man
|
||||
%{_mandir}/man1/%{name}.1.gz
|
||||
|
||||
%changelog
|
||||
%if "%{_vendor}" != "debbuild"
|
||||
%autochangelog
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user