From 291da5d4fcb094a096eb8d11f9923aaebe221f06 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sep 20 2020 11:27:25 +0000 Subject: Try harder to avoid sysprof-devel dependency Instead of filtering rpm requires, drop the dependency from the .pc file. --- diff --git a/libsoup.spec b/libsoup.spec index d4bd167..f6e7968 100644 --- a/libsoup.spec +++ b/libsoup.spec @@ -2,7 +2,7 @@ Name: libsoup Version: 2.72.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Soup, an HTTP library implementation License: LGPLv2 @@ -27,11 +27,6 @@ BuildRequires: /usr/bin/ntlm_auth Requires: glib2%{?_isa} >= %{glib2_version} Requires: glib-networking%{?_isa} >= %{glib2_version} -# Avoid automatic requires on sysprof-devel package as it's a private -# dependency (and libsoup doesn't ship a static library which is when -# this dep would be useful) -%global __requires_exclude ^pkgconfig\\(sysprof-capture-4\\)$ - %description Libsoup is an HTTP library implementation in C. It was originally part of a SOAP (Simple Object Access Protocol) implementation called Soup, but @@ -61,6 +56,11 @@ you to develop applications that use the libsoup library. %install %meson_install +# Avoid automatic requires on sysprof-devel package as it's a private +# dependency (and libsoup doesn't ship a static library which is when +# this dep would be useful) +sed -i -e 's/sysprof-capture-4, //' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc + %find_lang libsoup %files -f libsoup.lang @@ -88,6 +88,9 @@ you to develop applications that use the libsoup library. %{_datadir}/vala/vapi/libsoup-2.4.vapi %changelog +* Sun Sep 20 2020 Kalev Lember - 2.72.0-3 +- Try harder to avoid sysprof-devel dependency + * Sun Sep 20 2020 Kalev Lember - 2.72.0-2 - Tighten soname globs - Avoid automatic requires on sysprof-devel package