Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37046881
en ru br
ALT Linux repositórios
S:3.26.4-alt1

Group :: Sistema/Bibliotecas
RPM: libgeocode-glib

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _libexecdir %_prefix/libexec

%define _name geocode-glib
%define ver_major 3.26
%define api_ver 1.0
%def_enable soup2
%def_enable gtk_doc
%def_enable introspection
%def_disable installed_tests
%def_disable check

Name: lib%{_name}
Version: %ver_major.4
Release: alt1

Summary: Helper library for geocoding services
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 soup_ver 2.42
%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-2.4) >= %soup_ver
%{?_enable_gtk_doc:BuildRequires: gtk-doc}
%{?_enable_introspection:
BuildRequires(pre): rpm-build-gir
BuildRequires: gir(Soup) = 2.4 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-2.4

%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=true \
   %{?_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/%name.so.*
%_iconsdir/hicolor/scalable/places/*.svg
%doc AUTHORS NEWS README

%files devel
%_includedir/%_name-%api_ver/
%_libdir/%name.so
%_pkgconfigdir/%_name-%api_ver.pc

%files devel-doc
%_datadir/gtk-doc/html/%_name/

%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

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009