Репозиторий Sisyphus
Последнее обновление: 11 апреля 2021 | Пакетов: 17836 | Посещений: 20692139
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: libportal

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_enable snapshot

%define ver_major 0.4
%define soname 0
%define xdg_name org.gnome.Portal

%def_enable gtk_doc
%def_enable test
%def_enable  check

Name: libportal
Version: %ver_major
Release: alt1
Epoch: 1

Summary: Flatpak portal library
Group: System/Libraries
License: LGPLv2
Url: https://github.com/flatpak/libportal

%if_disabled snapshot
Source: %url/archive/%version/%name-%version.tar
%else
Source: %name-%version.tar
%endif

%define glib_ver 2.58

BuildRequires(pre): meson
BuildRequires: libgio-devel >= %glib_ver gtk-doc
%{?_enable_test:BuildRequires: libgtk+3-devel pkgconfig(gstreamer-audio-1.0)}

%description
%name provides GIO-style async APIs for most Flatpak portals.

%package devel
Summary: Development files and libraries for %name
Group: Development/C
Requires: %name = %EVR

%description devel
%name provides GIO-style async APIs for most Flatpak portals.

This package provides files for development with %name.

%package devel-doc
Summary: Development documentaion for %name
Group: Development/C
BuildArch: noarch
Conflicts: %name < %EVR

%description devel-doc
%name provides GIO-style async APIs for most Flatpak portals.

This package provides development documentations for %name.

%package tests
Summary: Tests for %name
Group: Development/Other
Requires: %name = %EVR
Requires: gst-plugins-base1.0

%description tests
This package provides portal-test application for checking functionality
of the installed %name.


%prep
%setup

%build
%meson %{?_enable_test:-Dbuild-portal-test=true}
%meson_build

%install
%meson_install
%find_lang %name

%check
%meson_test

%files -f %name.lang
%_libdir/%name.so.*
%doc README*

%files devel
%_includedir/%name
%_libdir/%name.so
%_pkgconfigdir/%name.pc

%if_enabled gtk_doc
%files devel-doc
%_datadir/gtk-doc/html/%name
%endif

%if_enabled test
%files tests
%_bindir/portal-test
%_desktopdir/%{xdg_name}Test.desktop
%_datadir/dbus-1/services/org.gnome.PortalTest.service
%_datadir/%{xdg_name}Test/
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin