Initial import (#1782122).

This commit is contained in:
Bastien Nocera 2019-12-17 15:33:11 +01:00
parent 4128645748
commit 3a1ed17af2
3 changed files with 73 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/libportal-7355b1e.zip

71
libportal.spec Normal file
View File

@ -0,0 +1,71 @@
%global commit 7355b1e2e98b7c0f8f3d0601ef4d78369b91aad3
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: libportal
Version: 0.1
Release: 0.1.20191211git%{shortcommit}%{?dist}
Summary: Flatpak portal library
License: LGPLv2+
Url: https://github.com/flatpak/libportal
Source: https://github.com/flatpak/libportal/archive/%{commit}/%{name}-%{shortcommit}.zip
BuildRequires: glibc-devel gcc
BuildRequires: meson
BuildRequires: git
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: gtk-doc
# For doc links
BuildRequires: pipewire-doc
%description
libportal provides GIO-style asynchronous APIs for most Flatpak portals.
%package devel
Summary: Development files and libraries for %name
Group: Development/C
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
%name provides GIO-style asynchronous APIs for most Flatpak portals.
This package provides files for development with %name.
%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.
%prep
%autosetup -S git -n %{name}-%{commit}
%build
%meson
%meson_build
%install
%meson_install
%check
%meson_test
%files
%{_libdir}/libportal.so.0*
%doc README*
%files devel
%{_includedir}/libportal
%{_libdir}/libportal.so
%{_libdir}/pkgconfig/libportal.pc
%files devel-doc
%{_datadir}/gtk-doc/html/libportal
%changelog
* Wed Dec 11 2019 Bastien Nocera <bnocera@redhat.com> - 0.1-0.1.20191211git7355b1e
+ libportal-0.1-0.20191211git7355b1e

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (libportal-7355b1e.zip) = ae69586604ad2a27c752f58b65b5a94c96b6199e04b695cfb58095852d041b5d568323da1aecbe051c367ad0e779853f77cf73fc0a4b46d8403e96ea0b9a8eb7