diff --git a/geocode-glib.spec b/geocode-glib.spec index 6262f93..bfd7329 100644 --- a/geocode-glib.spec +++ b/geocode-glib.spec @@ -1,6 +1,6 @@ Name: geocode-glib Version: 3.26.4 -Release: 1mamba +Release: 2mamba Summary: A convenience library for the geocoding and reverse geocoding Group: System/Libraries Vendor: openmamba @@ -14,6 +14,7 @@ License: LGPL BuildRequires: glibc-devel BuildRequires: libglib-devel BuildRequires: libjson-glib-devel +BuildRequires: libsoup-devel BuildRequires: libsoup2-devel ## AUTOBUILDREQ-END Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} @@ -38,20 +39,64 @@ Requires: pkg-config %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. +%package -n lib%{name}-2 +Group: System/Libraries +Summary: Shared libraries for %{name}-2 +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-2 +This package contains shared libraries for %{name}. + +%package -n lib%{name}-2-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name}-2 = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-2-devel +This package contains libraries and header files for developing applications that use %{name}. + %debug_package %prep %setup -q %build -%meson +%meson \ + -Dsoup2=true \ + -Denable-installed-tests=false + +%{__meson} \ + --buildtype=plain \ + --prefix=%{_prefix} \ + --libdir=%{_libdir} \ + --libexecdir=%{_libexecdir} \ + --bindir=%{_bindir} \ + --sbindir=%{_sbindir} \ + --includedir=%{_includedir} \ + --datadir=%{_datadir} \ + --mandir=%{_mandir} \ + --infodir=%{_infodir} \ + --localedir=%{_datadir}/locale \ + --sysconfdir=%{_sysconfdir} \ + --localstatedir=%{_localstatedir} \ + --sharedstatedir=%{_sharedstatedir} \ + --wrap-mode=%{__meson_wrap_mode} \ + -Dsoup2=false \ + -Denable-installed-tests=false \ + . build3 %meson_build +ninja -C build3 + %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %meson_install +export DESTDIR=%{buildroot} +ninja install -C build3 + %find_lang %{name} || touch %{name}.lang %clean @@ -63,15 +108,11 @@ This package contains libraries and header files for developing applications tha %files %defattr(-,root,root) %{_datadir}/icons/hicolor/scalable/places/*.svg -%dir %{_datadir}/installed-tests/geocode-glib -%{_datadir}/installed-tests/geocode-glib/* %files -n lib%{name} %defattr(-,root,root) %{_libdir}/girepository-1.0/GeocodeGlib-1.0.typelib %{_libdir}/libgeocode-glib.so.* -%dir %{_libexecdir}/geocode-glib -%{_libexecdir}/geocode-glib/* %doc AUTHORS COPYING.LIB %files -n lib%{name}-devel @@ -86,7 +127,28 @@ This package contains libraries and header files for developing applications tha %{_datadir}/gtk-doc/html/geocode-glib/* #%doc NEWS README TODO +%files -n lib%{name}-2 +%defattr(-,root,root) +%{_libdir}/girepository-1.0/GeocodeGlib-2.0.typelib +%{_libdir}/libgeocode-glib-2.so.* +%doc AUTHORS COPYING.LIB + +%files -n lib%{name}-2-devel +%defattr(-,root,root) +%dir %{_includedir}/geocode-glib-2.0 +%dir %{_includedir}/geocode-glib-2.0/geocode-glib +%{_includedir}/geocode-glib-2.0/geocode-glib/*.h +%{_libdir}/libgeocode-glib-2.so +%{_libdir}/pkgconfig/geocode-glib-2.0.pc +%{_datadir}/gir-1.0/GeocodeGlib-2.0.gir +%dir %{_datadir}/gtk-doc/html/geocode-glib-2 +%{_datadir}/gtk-doc/html/geocode-glib-2/* +#%doc NEWS README TODO + %changelog +* Tue Nov 08 2022 Silvan Calarco 3.26.4-2mamba +- rebuilt with api 2.0 subpackages (using soup 3) + * Wed Aug 10 2022 Automatic Build System 3.26.4-1mamba - automatic version update by autodist