remove debbuild macros to comply with Fedora guidelines
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
b1c6379347
commit
07afe233d1
27
conmon.spec
27
conmon.spec
@ -1,5 +1,4 @@
|
|||||||
%global with_debug 1
|
%global with_debug 1
|
||||||
%global with_check 0
|
|
||||||
|
|
||||||
%if 0%{?with_debug}
|
%if 0%{?with_debug}
|
||||||
%global _find_debuginfo_dwz_opts %{nil}
|
%global _find_debuginfo_dwz_opts %{nil}
|
||||||
@ -8,31 +7,20 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global built_tag_strip 2.1.4
|
%global built_tag v2.1.4
|
||||||
|
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
|
||||||
|
%global gen_version %(b=%{built_tag_strip}; echo ${b/-/"~"})
|
||||||
|
|
||||||
Name: conmon
|
Name: conmon
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Version: 2.1.4
|
Version: %{gen_version}
|
||||||
%if "%{_vendor}" == "debbuild"
|
|
||||||
Packager: Podman Debbuild Maintainers <https://github.com/orgs/containers/teams/podman-debbuild-maintainers>
|
|
||||||
License: ASL-2.0+
|
|
||||||
Release: 0%{?dist}
|
|
||||||
%else
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
%endif
|
|
||||||
Summary: OCI container runtime monitor
|
Summary: OCI container runtime monitor
|
||||||
URL: https://github.com/containers/%{name}
|
URL: https://github.com/containers/%{name}
|
||||||
Source0: %{url}/archive/v%{built_tag_strip}.tar.gz
|
# Tarball fetched from upstream
|
||||||
|
Source0: %{url}/archive/%{built_tag}.tar.gz
|
||||||
BuildRequires: go-md2man
|
BuildRequires: go-md2man
|
||||||
%if "%{_vendor}" == "debbuild"
|
|
||||||
BuildRequires: git
|
|
||||||
BuildRequires: libglib2.0-dev
|
|
||||||
BuildRequires: libseccomp-dev
|
|
||||||
BuildRequires: libsystemd-dev
|
|
||||||
Requires: libglib2.0-0
|
|
||||||
Requires: libseccomp2
|
|
||||||
%else
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
@ -43,7 +31,6 @@ BuildRequires: make
|
|||||||
Requires: glib2
|
Requires: glib2
|
||||||
Requires: systemd-libs
|
Requires: systemd-libs
|
||||||
Requires: libseccomp
|
Requires: libseccomp
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
%{summary}.
|
||||||
@ -73,6 +60,4 @@ sed -i 's/install.crio: bin\/conmon/install.crio:/' Makefile
|
|||||||
%{_mandir}/man8/%{name}.8.gz
|
%{_mandir}/man8/%{name}.8.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
%if "%{_vendor}" != "debbuild"
|
|
||||||
%autochangelog
|
%autochangelog
|
||||||
%endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user