commit 447d74eacf8c63092c6c46172128b1c8b39ec9e1
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Mon Feb 28 00:20:57 2022 +0000
Switch to compat-ffmpeg4
wxsvg.spec | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/wxsvg.spec b/wxsvg.spec
index 2b6482f..cd79c4d 100644
--- a/wxsvg.spec
+++ b/wxsvg.spec
@@ -1,6 +1,6 @@
Name: wxsvg
Version: 1.5.23
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: C++ library to create, manipulate and render SVG files
Group: System Environment/Libraries
@@ -13,7 +13,11 @@ BuildRequires: libtool
BuildRequires: gettext
BuildRequires: gcc-c++
BuildRequires: expat-devel
+%if 0%{?fedora} && 0%{?fedora} > 35
+BuildRequires: compat-ffmpeg4-devel
+%else
BuildRequires: ffmpeg-devel
+%endif
BuildRequires: freetype-devel
BuildRequires: libart_lgpl-devel
BuildRequires: pango-devel
@@ -35,6 +39,9 @@ provides the files required to develop programs that use wxsvg.
%setup -q
%build
+%if 0%{?fedora} && 0%{?fedora} > 35
+export PKG_CONFIG_PATH="%{_libdir}/compat-ffmpeg4/pkgconfig"
+%endif
#clean autogenerated files before run autoreconf
rm install-sh mkinstalldirs missing depcomp config.sub ltmain.sh config.guess compile
aclocal.m4 Makefile.in configure
rm m4/libtool.m4 m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4
@@ -71,6 +78,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_libdir}/pkgconfig/lib%{name}.pc
%changelog
+* Mon Feb 28 2022 Sérgio Basto <sergio(a)serjux.com> - 1.5.23-4
+- Switch to compat-ffmpeg4
+
* Wed Feb 09 2022 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1.5.23-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild