Group :: System/Libraries
RPM: libgeocode-glib2.0
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _libexecdir %_prefix/libexec
%define _name geocode-glib
%define ver_major 3.26
%define api_ver_major 2
%define api_ver 2.0
%def_disable soup2
%def_enable gtk_doc
%def_enable introspection
%def_disable installed_tests
%def_disable check
Name: lib%{_name}%api_ver
Version: %ver_major.4
Release: alt1
Summary: Helper library for geocoding services (2.0 API)
License: LGPL-2.0-or-later
Group: System/Libraries
Url: http://www.gnome.org/
Source: ftp://ftp.gnome.org/pub/gnome/sources/%_name/%ver_major/%_name-%version.tar.xz
%define glib_ver 2.44
%define soup3_ver 2.99.2
%define json_glib_ver 1.0
BuildRequires(pre): rpm-macros-meson
BuildRequires: meson libgio-devel >= %glib_ver
BuildRequires: libjson-glib-devel >= %json_glib_ver pkgconfig(libsoup-3.0) >= %soup3_ver
%{?_enable_gtk_doc:BuildRequires: gtk-doc}
%{?_enable_introspection:
BuildRequires(pre): rpm-build-gir
BuildRequires: gir(Soup) = 3.0 libjson-glib-gir-devel}
%description
%_name is a helper library for geocoding and reverse-geocoding
services offered by OpenStreetMap and Nominatim.
This version supports libsoup-3.x
%package devel
Summary: Development files for %_name library
Group: Development/C
Requires: %name = %EVR
%description devel
%_name is a helper library for geocoding and reverse-geocoding
services offered by OpenStreetMap and Nominatim.
This package contains files needed to develop with %_name.
%package devel-doc
Summary: Development documentation for %_name
Group: Development/C
Conflicts: %name < %version-%release
BuildArch: noarch
%description devel-doc
This package contains development documentation for %_name library.
%package gir
Summary: GObject introspection data for the %name
Group: System/Libraries
Requires: %name = %EVR
%description gir
GObject introspection data for the %_name library
%package gir-devel
Summary: GObject introspection devel data for the %name
Group: Development/Other
BuildArch: noarch
Requires: %name-gir = %EVR
Requires: %name-devel = %EVR
%description gir-devel
GObject introspection devel data for the %_name library
%package tests
Summary: Tests for the %_name
Group: Development/Other
Requires: %name = %EVR
%description tests
This package provides tests programs that can be used to verify
the functionality of the installed %_name library.
%prep
%setup -n %_name-%version
%build
%meson \
-Dsoup2=false \
%{?_disable_gtk_doc:-Denable-gtk-doc=false} \
%{?_disable_introspection:-Denable-introspection=false} \
%{?_disable_installed_tests:-Denable-installed-tests=false}
%nil
%meson_build
%install
%meson_install
%find_lang %_name
%check
%__meson_test
%files -f %_name.lang
%_libdir/lib%_name-%api_ver_major.so.*
%_iconsdir/hicolor/scalable/places/*.svg
%doc AUTHORS NEWS README
%files devel
%_includedir/%_name-%api_ver/
%_libdir/lib%_name-%api_ver_major.so
%_pkgconfigdir/%_name-%api_ver.pc
%files devel-doc
%_datadir/gtk-doc/html/%_name-%api_ver_major/
%if_enabled introspection
%files gir
%_typelibdir/GeocodeGlib-%api_ver.typelib
%files gir-devel
%_girdir/GeocodeGlib-%api_ver.gir
%endif
%if_enabled installed_tests
%files tests
%_libexecdir/installed-tests/%_name/
#%_datadir/installed-tests/%_name-%api_ver/
%endif
%changelog
…
Full changelog you can see here
%define _name geocode-glib
%define ver_major 3.26
%define api_ver_major 2
%define api_ver 2.0
%def_disable soup2
%def_enable gtk_doc
%def_enable introspection
%def_disable installed_tests
%def_disable check
Name: lib%{_name}%api_ver
Version: %ver_major.4
Release: alt1
Summary: Helper library for geocoding services (2.0 API)
License: LGPL-2.0-or-later
Group: System/Libraries
Url: http://www.gnome.org/
Source: ftp://ftp.gnome.org/pub/gnome/sources/%_name/%ver_major/%_name-%version.tar.xz
%define glib_ver 2.44
%define soup3_ver 2.99.2
%define json_glib_ver 1.0
BuildRequires(pre): rpm-macros-meson
BuildRequires: meson libgio-devel >= %glib_ver
BuildRequires: libjson-glib-devel >= %json_glib_ver pkgconfig(libsoup-3.0) >= %soup3_ver
%{?_enable_gtk_doc:BuildRequires: gtk-doc}
%{?_enable_introspection:
BuildRequires(pre): rpm-build-gir
BuildRequires: gir(Soup) = 3.0 libjson-glib-gir-devel}
%description
%_name is a helper library for geocoding and reverse-geocoding
services offered by OpenStreetMap and Nominatim.
This version supports libsoup-3.x
%package devel
Summary: Development files for %_name library
Group: Development/C
Requires: %name = %EVR
%description devel
%_name is a helper library for geocoding and reverse-geocoding
services offered by OpenStreetMap and Nominatim.
This package contains files needed to develop with %_name.
%package devel-doc
Summary: Development documentation for %_name
Group: Development/C
Conflicts: %name < %version-%release
BuildArch: noarch
%description devel-doc
This package contains development documentation for %_name library.
%package gir
Summary: GObject introspection data for the %name
Group: System/Libraries
Requires: %name = %EVR
%description gir
GObject introspection data for the %_name library
%package gir-devel
Summary: GObject introspection devel data for the %name
Group: Development/Other
BuildArch: noarch
Requires: %name-gir = %EVR
Requires: %name-devel = %EVR
%description gir-devel
GObject introspection devel data for the %_name library
%package tests
Summary: Tests for the %_name
Group: Development/Other
Requires: %name = %EVR
%description tests
This package provides tests programs that can be used to verify
the functionality of the installed %_name library.
%prep
%setup -n %_name-%version
%build
%meson \
-Dsoup2=false \
%{?_disable_gtk_doc:-Denable-gtk-doc=false} \
%{?_disable_introspection:-Denable-introspection=false} \
%{?_disable_installed_tests:-Denable-installed-tests=false}
%nil
%meson_build
%install
%meson_install
%find_lang %_name
%check
%__meson_test
%files -f %_name.lang
%_libdir/lib%_name-%api_ver_major.so.*
%_iconsdir/hicolor/scalable/places/*.svg
%doc AUTHORS NEWS README
%files devel
%_includedir/%_name-%api_ver/
%_libdir/lib%_name-%api_ver_major.so
%_pkgconfigdir/%_name-%api_ver.pc
%files devel-doc
%_datadir/gtk-doc/html/%_name-%api_ver_major/
%if_enabled introspection
%files gir
%_typelibdir/GeocodeGlib-%api_ver.typelib
%files gir-devel
%_girdir/GeocodeGlib-%api_ver.gir
%endif
%if_enabled installed_tests
%files tests
%_libexecdir/installed-tests/%_name/
#%_datadir/installed-tests/%_name-%api_ver/
%endif
%changelog
…
Full changelog you can see here