2022-07-05 07:51:05 +03:00
|
|
|
%define major 1
|
|
|
|
%define gir_major 1.0
|
2020-10-04 16:01:48 +09:00
|
|
|
%define libname %mklibname portal %{major}
|
2022-07-05 07:51:05 +03:00
|
|
|
%define libgtk3 %mklibname portal-gtk3 %{major}
|
|
|
|
%define libgtk4 %mklibname portal-gtk4 %{major}
|
|
|
|
%define libqt5 %mklibname portal-qt5 %{major}
|
|
|
|
%define girgtk3 %mklibname portal-gir-gtk3 %{major}
|
|
|
|
%define girgtk4 %mklibname portal-gir-gtk4 %{major}
|
|
|
|
%define girqt5 %mklibname portal-gir-qt5 %{major}
|
2020-10-04 16:01:48 +09:00
|
|
|
%define devname %mklibname portal -d
|
2020-10-04 15:40:35 +09:00
|
|
|
|
|
|
|
Name: libportal
|
2024-03-07 10:37:34 +09:00
|
|
|
Version: 0.7.1
|
|
|
|
Release: 1
|
2020-10-04 15:40:35 +09:00
|
|
|
Summary: Flatpak portal library
|
|
|
|
Group: System/Libraries
|
|
|
|
License: LGPLv2+
|
|
|
|
Url: https://github.com/flatpak/libportal
|
2020-10-04 20:28:15 +09:00
|
|
|
Source: https://github.com/flatpak/libportal/releases/download/%{version}/libportal-%{version}.tar.xz
|
|
|
|
BuildRequires: git-core
|
2022-07-05 07:51:05 +03:00
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: qt5-linguist-tools
|
|
|
|
BuildRequires: vala
|
|
|
|
BuildRequires: pkgconfig(gi-docgen)
|
2020-10-04 15:40:35 +09:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
2022-07-05 07:51:05 +03:00
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
BuildRequires: pkgconfig(gtk4)
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(Qt5X11Extras)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
2020-10-04 15:40:35 +09:00
|
|
|
|
|
|
|
%description
|
|
|
|
libportal provides GIO-style asynchronous APIs for most Flatpak portals.
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
2022-07-05 07:51:05 +03:00
|
|
|
|
2020-10-04 15:40:35 +09:00
|
|
|
%package -n %{libname}
|
2022-07-05 07:51:05 +03:00
|
|
|
Summary: Flatpak portal library
|
2020-10-04 15:40:35 +09:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
libportal provides GIO-style asynchronous APIs for most Flatpak portals.
|
|
|
|
|
|
|
|
%files -n %{libname}
|
2022-07-05 07:51:05 +03:00
|
|
|
%doc README*
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/%{name}.so.%{major}*
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package -n %{libgtk3}
|
|
|
|
Summary: Flatpak portal gtk3 library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libgtk3}
|
|
|
|
libportal provides GIO-style asynchronous APIs for most Flatpak portals.
|
|
|
|
|
|
|
|
%files -n %{libgtk3}
|
|
|
|
%doc README*
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/%{name}-gtk3.so.%{major}*
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package -n %{libgtk4}
|
|
|
|
Summary: Flatpak portal gtk4 library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libgtk4}
|
|
|
|
libportal provides GIO-style asynchronous APIs for most Flatpak portals.
|
|
|
|
|
|
|
|
%files -n %{libgtk4}
|
|
|
|
%doc README*
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/%{name}-gtk4.so.%{major}*
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package -n %{libqt5}
|
|
|
|
Summary: Flatpak portal qt5 library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libqt5}
|
|
|
|
libportal provides GIO-style asynchronous APIs for most Flatpak portals.
|
|
|
|
|
|
|
|
%files -n %{libqt5}
|
|
|
|
%doc README*
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/%{name}-qt5.so.%{major}*
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package -n %{girgtk3}
|
|
|
|
Summary: GObject Introspection interface description for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{girgtk3}
|
|
|
|
GObject Introspection interface description for %{name}.
|
|
|
|
|
|
|
|
%files -n %{girgtk3}
|
|
|
|
%{_libdir}/girepository-1.0/XdpGtk3-%{gir_major}.typelib
|
2020-10-04 15:40:35 +09:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
2022-07-05 07:51:05 +03:00
|
|
|
|
|
|
|
%package -n %{girgtk4}
|
|
|
|
Summary: GObject Introspection interface description for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{girgtk4}
|
|
|
|
GObject Introspection interface description for %{name}.
|
|
|
|
|
|
|
|
%files -n %{girgtk4}
|
|
|
|
%{_libdir}/girepository-1.0/XdpGtk4-%{gir_major}.typelib
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package -n %{girqt5}
|
|
|
|
Summary: GObject Introspection interface description for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{girqt5}
|
|
|
|
GObject Introspection interface description for %{name}.
|
|
|
|
|
|
|
|
%files -n %{girqt5}
|
|
|
|
%{_libdir}/girepository-1.0/Xdp-%{gir_major}.typelib
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2020-10-04 15:40:35 +09:00
|
|
|
%package -n %{devname}
|
|
|
|
Summary: Development files and libraries for %name
|
|
|
|
Group: Development/Other
|
2022-07-05 07:51:05 +03:00
|
|
|
Requires: %{girgtk3} = %{EVRD}
|
|
|
|
Requires: %{girgtk4} = %{EVRD}
|
|
|
|
Requires: %{girqt5} = %{EVRD}
|
|
|
|
Requires: %{libgtk3} = %{EVRD}
|
|
|
|
Requires: %{libgtk4} = %{EVRD}
|
|
|
|
Requires: %{libqt5} = %{EVRD}
|
2020-10-04 15:40:35 +09:00
|
|
|
Provides: %{name}-devel = %{EVRD}
|
|
|
|
|
|
|
|
%description -n %{devname}
|
|
|
|
%name provides GIO-style asynchronous APIs for most Flatpak portals.
|
|
|
|
|
|
|
|
This package provides files for development with %name.
|
|
|
|
|
|
|
|
%files -n %{devname}
|
2022-07-05 07:51:05 +03:00
|
|
|
%{_datadir}/gir-1.0/Xdp*-%{gir_major}.gir
|
|
|
|
%{_datadir}/vala/vapi/%{name}*
|
|
|
|
%{_includedir}/%{name}*
|
|
|
|
%{_libdir}/pkgconfig/%{name}*.pc
|
|
|
|
%{_libdir}/%{name}*.so
|
2020-10-04 15:40:35 +09:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%package devel-doc
|
|
|
|
Summary: Development documentation for libportal
|
|
|
|
Group: Development/C
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
libportal provides GIO-style asynchronous APIs for most Flatpak portals.
|
|
|
|
|
|
|
|
This package provides development documentations for libportal.
|
|
|
|
|
|
|
|
%files devel-doc
|
2022-07-05 07:51:05 +03:00
|
|
|
%{_defaultdocdir}/%{name}-%{major}
|
2020-10-04 15:40:35 +09:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -S git
|
|
|
|
|
|
|
|
%build
|
2022-07-05 07:51:05 +03:00
|
|
|
%meson -Dtests=false
|
2020-10-04 15:40:35 +09:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
|
|
|
|
%check
|
|
|
|
%meson_test
|