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

Group :: Networking/Chat
RPM: polari

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable snapshot

%define ver_major 45
%define beta %nil
%define xdg_name org.gnome.Polari
%define mozjs_ver 102

Name: polari
Version: %ver_major.0
Release: alt1%beta

Summary: Internet Relay Chat client for GNOME
License: GPL-2.0 and LGPL-2.0
Group: Networking/Chat
Url: https://wiki.gnome.org/Apps/Polari

%if_disabled snapshot
Vcs: https://github.com/GNOME/polari.git
#Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version%beta.tar.xz
Source: https://github.com/GNOME/polari/archive/%version/%name-%version%beta.tar.gz
%else
Source: %name-%version.tar
%endif

%define gtk4_ver 4.10.0
%define gjs_ver 1.73.1

Requires: libgjs >= %gjs_ver
Requires: telepathy-logger
Requires: telepathy-mission-control
Requires: telepathy-idle

%set_typelibdir %_libdir/%name/girepository-1.0

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

Requires: typelib(Adw) = 1
Requires: typelib(Gdk)
Requires: typelib(GdkPixbuf)
Requires: typelib(Gio)
Requires: typelib(GLib)
Requires: typelib(GObject)
Requires: typelib(Graphene)
Requires: typelib(Gspell)
Requires: typelib(Gtk) = 4.0
Requires: typelib(Pango)
Requires: typelib(PangoCairo)
Requires: typelib(Polari)
Requires: typelib(Secret)
Requires: typelib(TelepathyGLib)
Requires: typelib(TelepathyLogger)
Requires: typelib(Soup) = 3.0
Requires: typelib(WebKit2) = 4.1

BuildRequires(pre): rpm-macros-meson rpm-build-gir
BuildRequires: meson gtk-doc yelp-tools
BuildRequires: desktop-file-utils libappstream-glib-devel
BuildRequires: libgjs-devel >= %gjs_ver  %_bindir/js%mozjs_ver
BuildRequires: libgtk4-devel >= %gtk4_ver libtelepathy-glib-devel
BuildRequires: gobject-introspection-devel libgtk+3-gir-devel libsoup-gir-devel
BuildRequires: libsecret-gir-devel
BuildRequires: libtelepathy-glib-gir-devel libtelepathy-logger-gir-devel

%description
Polari is a simple IRC Client that is designed to integrate seamlessly
with GNOME 3 Desktop.

%prep
%setup -n %name-%version%beta

%build
%meson
%meson_build

%install
%meson_install

%find_lang --with-gnome --output=%name.lang %name %xdg_name

%files -f %name.lang
%_bindir/%name
%_libdir/%name/
%_desktopdir/%xdg_name.desktop
%_iconsdir/hicolor/symbolic/apps/%xdg_name-symbolic.svg
%_iconsdir/hicolor/scalable/apps/%{xdg_name}*.svg
%_datadir/%name/
%_datadir/dbus-1/services/%xdg_name.service
%_datadir/dbus-1/services/org.freedesktop.Telepathy.Client.Polari.service
%_datadir/telepathy/clients/Polari.client
%_datadir/glib-2.0/schemas/%xdg_name.gschema.xml
%_datadir/metainfo/%xdg_name.appdata.xml
%doc AUTHORS NEWS


%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