From cc3993efcfe5b0141fc848e8c6c0820e0009b75c Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Fri, 4 Dec 2020 10:32:35 +0800 Subject: [PATCH] spec: Add git as build requirement git command is used in setup section %autosetup -n librsvg-%{version} -p1 -S git build will hit 'no such file' error if git was not installed Signed-off-by: Liwei Ge Signed-off-by: weitao zhou --- librsvg2.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/librsvg2.spec b/librsvg2.spec index 12283fd..da227c4 100644 --- a/librsvg2.spec +++ b/librsvg2.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 # https://github.com/rust-lang/rust/issues/47714 %undefine _strict_symbol_defs_build @@ -11,7 +12,7 @@ Name: librsvg2 Summary: An SVG library based on cairo Version: 2.42.7 -Release: 4%{?dist} +Release: 4%{anolis_release}%{?dist} License: LGPLv2+ URL: https://wiki.gnome.org/Projects/LibRsvg @@ -25,6 +26,8 @@ Patch1: fix-cssparser-build.patch BuildRequires: chrpath BuildRequires: gcc +# autosetup need git +BuildRequires: git BuildRequires: gobject-introspection-devel BuildRequires: pkgconfig(cairo) BuildRequires: pkgconfig(cairo-png) @@ -139,6 +142,9 @@ rm -vrf %{buildroot}%{_datadir}/doc %{_mandir}/man1/rsvg-convert.1* %changelog +* Fri Dec 10 2021 Weitao Zhou 2.42.7-4.0.1 +- Add git as build requirement for autosetup + * Wed May 13 2020 Michael Catanzaro - 2.42.7-4 - Resolves: rhbz#1804519 Add patch for CVE-2019-20446 -- Gitee