Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37042829
en ru br
ALT Linux repos
S:45.0-alt1.1

Group :: Graphical desktop/GNOME
RPM: gnome-maps

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define ver_major 45
%define beta %nil
%define api_ver 1.0
%define _libexecdir %_prefix/libexec
%define xdg_name org.gnome.Maps

Name: gnome-maps
Version: %ver_major.0
Release: alt1.1%beta

Summary: Maps is a map application for GNOME
License: GPL-2.0 and LGPL-2.0
Group: Graphical desktop/GNOME
Url: https://apps.gnome.org/Maps/

Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version%beta.tar.xz

%set_typelibdir %_libdir/%name/girepository-1.0

%define meson_ver 0.61
%define glib_ver 2.66
%define gjs_ver 1.69.2
%define gtk_api_ver 4.0
%define adwaita_ver 1.4
%define geocode_api_ver 2.0
%define geocode_ver 3.26.0
%define geoclue_ver 2.4.0
%define shumate_ver 1.1
%define gweather_api_ver 4.0
%define soup_api_ver 3.0
%define webkit_api_ver 6.0
%define rest_api_ver 1.0

Requires: geoclue2 >= %geoclue_ver
Requires: libgeocode-glib%geocode_api_ver-gir >= %geocode_ver
Requires: libshumate-gir >= %shumate_ver

# find ./ -name "*.js" |/usr/lib/rpm/gir-js.req |sort|uniq|sed -e 's/^/Requires: /'

Requires: typelib(Gdk)
Requires: typelib(GdkPixbuf)
Requires: typelib(Geoclue)
Requires: typelib(GeocodeGlib) = %geocode_api_ver
Requires: typelib(Graphene)
Requires: typelib(Gio)
Requires: typelib(GLib)
Requires: typelib(GnomeMaps)
Requires: typelib(Goa)
Requires: typelib(GObject)
Requires: typelib(Gtk) = %gtk_api_ver
Requires: typelib(GWeather) = %gweather_api_ver
Requires: typelib(Adw) = 1
Requires: typelib(Pango)
Requires: typelib(PangoCairo)
Requires: typelib(Rest) = %rest_api_ver
Requires: typelib(Secret)
Requires: typelib(Shumate)
Requires: typelib(Soup) = %soup_api_ver
Requires: typelib(Xdp) = 1.0
#Requires: typelib(WebKit) = %webkit_api_ver

BuildRequires(pre): rpm-macros-meson rpm-build-gir
BuildRequires: meson >= %meson_ver yelp-tools %_bindir/appstream-util desktop-file-utils
BuildRequires: libgio-devel >= %glib_ver
BuildRequires: pkgconfig(libadwaita-1) >= %adwaita_ver
BuildRequires: libgjs-devel >= %gjs_ver gobject-introspection-devel
BuildRequires: pkgconfig(geoclue-2.0) >= %geoclue_ver
BuildRequires: libgee0.8-devel libgeocode-glib%geocode_api_ver-devel
BuildRequires: libshumate-devel libxml2-devel
BuildRequires: libportal-devel
BuildRequires: libgeocode-glib%geocode_api_ver-gir-devel libgweather%gweather_api_ver-devel
BuildRequires: libshumate-gir-devel librest%rest_api_ver-gir-devel

%description
Maps is a map application for GNOME.

%prep
%setup -n %name-%version%beta
sed -i 's/\(1.0.0\).beta/\1/' meson.build

%build
%meson
%meson_build

%install
%meson_install
%find_lang --with-gnome %name

%files -f %name.lang
%_bindir/*
%_libdir/%name/
%_desktopdir/%xdg_name.desktop
%_datadir/%name/
%_iconsdir/hicolor/scalable/apps/*.svg
%_iconsdir/hicolor/symbolic/apps/%{xdg_name}*.svg
%_datadir/dbus-1/services/%xdg_name.service
%config %_datadir/glib-2.0/schemas/%xdg_name.gschema.xml
%_datadir/metainfo/%xdg_name.appdata.xml
%doc README NEWS

%exclude %_libdir/%name/*.so
%exclude %_datadir/%name/gir-1.0/GnomeMaps-%api_ver.gir

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin