mirror of
https://abf.rosa.ru/djam/libportal.git
synced 2025-02-23 18:22:57 +00:00
81 lines
1.9 KiB
RPMSpec
81 lines
1.9 KiB
RPMSpec
%define major 0
|
|
%define libname %mklibname portal %{major}
|
|
%define devname %mklibname portal -d
|
|
|
|
Name: libportal
|
|
Version: 0.3
|
|
Release: 1
|
|
Summary: Flatpak portal library
|
|
Group: System/Libraries
|
|
License: LGPLv2+
|
|
Url: https://github.com/flatpak/libportal
|
|
Source: https://github.com/flatpak/libportal/releases/download/0.3/libportal-0.3.tar.xz
|
|
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: meson
|
|
BuildRequires: git
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
|
BuildRequires: gtk-doc
|
|
|
|
%description
|
|
libportal provides GIO-style asynchronous APIs for most Flatpak portals.
|
|
|
|
#------------------------------------------------------------------------
|
|
%package -n %{libname}
|
|
Summary: %{summary}
|
|
Group: System/Libraries
|
|
|
|
%description -n %{libname}
|
|
libportal provides GIO-style asynchronous APIs for most Flatpak portals.
|
|
|
|
%files -n %{libname}
|
|
%{_libdir}/libportal.so.%{major}*
|
|
%doc README* COPYING
|
|
|
|
#------------------------------------------------------------------------
|
|
%package -n %{devname}
|
|
Summary: Development files and libraries for %name
|
|
Group: Development/Other
|
|
Requires: %{libname} = %{EVRD}
|
|
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}
|
|
%{_includedir}/libportal
|
|
%{_libdir}/libportal.so
|
|
%{_libdir}/pkgconfig/libportal.pc
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
%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
|
|
%{_datadir}/gtk-doc/html/libportal
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
%prep
|
|
%autosetup -S git
|
|
|
|
%build
|
|
%meson
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
%check
|
|
%meson_test
|