From ab6334765f1b361183f408f5ee60a697f0c982b199bcf676a1e4078842447740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Fri, 27 Dec 2019 16:21:43 +0000 Subject: [PATCH] Accepting request 758658 from GNOME:Next New package, needed for updated xdg-desktop-portal(-gtk). OBS-URL: https://build.opensuse.org/request/show/758658 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libportal?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + libportal-0.3.tar.xz | 3 ++ libportal.changes | 5 +++ libportal.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 110 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libportal-0.3.tar.xz create mode 100644 libportal.changes create mode 100644 libportal.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libportal-0.3.tar.xz b/libportal-0.3.tar.xz new file mode 100644 index 0000000..9ee406c --- /dev/null +++ b/libportal-0.3.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd35d66357169e63e33ef46c43fdf22ddc07dbd960ec3462b58ca9ef15a65bd7 +size 50016 diff --git a/libportal.changes b/libportal.changes new file mode 100644 index 0000000..35e3651 --- /dev/null +++ b/libportal.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Dec 21 00:09:15 UTC 2019 - Bjørn Lie + +- Inital build for openSUSE, version 0.3. + diff --git a/libportal.spec b/libportal.spec new file mode 100644 index 0000000..bdce5c2 --- /dev/null +++ b/libportal.spec @@ -0,0 +1,78 @@ +# +# spec file for package libportal +# +# Copyright (c) 2019 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define sover 0 + +Name: libportal +Version: 0.3 +Release: 0 +Summary: A GIO-style async APIs for most Flatpak portals +License: LGPL-2.1-or-later +URL: https://github.com/flatpak/libportal +Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz + +BuildRequires: gtk-doc +BuildRequires: meson >= 0.46.0 +BuildRequires: pkgconfig +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(gio-unix-2.0) + +%description +A GIO-style async APIs for most Flatpak portals. + +%package -n %{name}%{sover} +Summary: Shared library for %{name} + +%description -n %{name}%{sover} +A GIO-style async APIs for most Flatpak portals. +This package contains the shared library of %{name}. + +%package devel +Summary: A GIO-style async APIs for most Flatpak portals -- Development files +Requires: %{name}%{sover} = %{version} + +%description devel +The %{name}-devel package contains libraries, build data, and +header files for developing applications that use %{name}. + +%prep +%autosetup -p1 + +%build +%meson \ + %{nil} +%meson_build + +%install +%meson_install + +%post -n %{name}%{sover} -p /sbin/ldconfig +%postun -n %{name}%{sover} -p /sbin/ldconfig + +%files -n %{name}%{sover} +%license COPYING +%{_libdir}/libportal.so.* + +%files devel +%doc NEWS README.md +%doc %{_datadir}/gtk-doc/html/libportal +%{_includedir}/%{name} +%{_libdir}/libportal.so +%{_libdir}/pkgconfig/libportal.pc + +%changelog