Remove the libsoup 2 build
No Obsoletes or Provides because the new API is not compatible with the old API and does not replace it. The old version is just abandoned. This is only needed by the original libgweather package, which is itself no longer needed by anything.
This commit is contained in:
parent
1a45aef756
commit
bb0eab3abd
@ -1,5 +1,3 @@
|
||||
%bcond soup2 %[%{undefined rhel} || 0%{?rhel} < 10]
|
||||
|
||||
%global json_glib_version 0.99.2
|
||||
|
||||
Name: geocode-glib
|
||||
@ -17,9 +15,6 @@ BuildRequires: meson
|
||||
BuildRequires: pkgconfig(gio-2.0)
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||||
BuildRequires: pkgconfig(json-glib-1.0) >= %{json_glib_version}
|
||||
%if %{with soup2}
|
||||
BuildRequires: pkgconfig(libsoup-2.4)
|
||||
%endif
|
||||
BuildRequires: pkgconfig(libsoup-3.0)
|
||||
|
||||
Requires: json-glib%{?_isa} >= %{json_glib_version}
|
||||
@ -71,43 +66,12 @@ developing applications that use %{name}.
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
||||
%build
|
||||
%if %{with soup2}
|
||||
%define _vpath_builddir %{_vendor}-%{_target_os}-build-soup2
|
||||
%meson -Denable-installed-tests=false
|
||||
%meson_build
|
||||
%endif
|
||||
|
||||
%define _vpath_builddir %{_vendor}-%{_target_os}-build-soup3
|
||||
%meson -Denable-installed-tests=false -Dsoup2=false
|
||||
%meson_build
|
||||
|
||||
|
||||
%install
|
||||
%if %{with soup2}
|
||||
%define _vpath_builddir %{_vendor}-%{_target_os}-build-soup2
|
||||
%meson_install
|
||||
%endif
|
||||
|
||||
%define _vpath_builddir %{_vendor}-%{_target_os}-build-soup3
|
||||
%meson_install
|
||||
|
||||
|
||||
%if %{with soup2}
|
||||
%files
|
||||
%license COPYING.LIB
|
||||
%doc AUTHORS NEWS README
|
||||
%{_libdir}/libgeocode-glib.so.0*
|
||||
%{_libdir}/girepository-1.0/GeocodeGlib-1.0.typelib
|
||||
|
||||
%files devel
|
||||
%{_includedir}/geocode-glib-1.0/
|
||||
%{_libdir}/libgeocode-glib.so
|
||||
%{_libdir}/pkgconfig/geocode-glib-1.0.pc
|
||||
%{_datadir}/gir-1.0/GeocodeGlib-1.0.gir
|
||||
%doc %{_datadir}/gtk-doc/
|
||||
%endif
|
||||
|
||||
%files data
|
||||
%{_datadir}/icons/hicolor/scalable/places/*.svg
|
||||
|
Loading…
Reference in New Issue
Block a user