2019-12-27 17:21:43 +01:00
|
|
|
#
|
|
|
|
# spec file for package libportal
|
|
|
|
#
|
2022-01-11 21:01:29 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-12-27 17:21:43 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-01-11 21:01:29 +01:00
|
|
|
%define sover 0
|
2019-12-27 17:21:43 +01:00
|
|
|
|
|
|
|
Name: libportal
|
2022-01-11 21:01:29 +01:00
|
|
|
Version: 0.4
|
2019-12-27 17:21:43 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A GIO-style async APIs for most Flatpak portals
|
2022-01-11 21:01:29 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2019-12-27 17:21:43 +01:00
|
|
|
URL: https://github.com/flatpak/libportal
|
|
|
|
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
|
|
|
|
2022-01-11 21:01:29 +01:00
|
|
|
BuildRequires: gtk-doc
|
2019-12-27 17:21:43 +01:00
|
|
|
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.
|
|
|
|
|
2022-01-11 21:01:29 +01:00
|
|
|
%package -n %{name}%{sover}
|
2019-12-27 17:21:43 +01:00
|
|
|
Summary: Shared library for %{name}
|
|
|
|
|
2022-01-11 21:01:29 +01:00
|
|
|
%description -n %{name}%{sover}
|
2019-12-27 17:21:43 +01:00
|
|
|
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
|
2022-01-11 21:01:29 +01:00
|
|
|
Requires: %{name}%{sover} = %{version}
|
2019-12-27 17:21:43 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2022-01-11 21:01:29 +01:00
|
|
|
%post -n %{name}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
2019-12-27 17:21:43 +01:00
|
|
|
|
2022-01-11 21:01:29 +01:00
|
|
|
%files -n %{name}%{sover}
|
2019-12-27 17:21:43 +01:00
|
|
|
%license COPYING
|
2022-01-11 21:01:29 +01:00
|
|
|
%{_libdir}/libportal.so.*
|
2019-12-27 17:21:43 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc NEWS README.md
|
2022-01-11 21:01:29 +01:00
|
|
|
%doc %{_datadir}/gtk-doc/html/libportal
|
2019-12-27 17:21:43 +01:00
|
|
|
%{_includedir}/%{name}
|
2022-01-11 21:01:29 +01:00
|
|
|
%{_libdir}/libportal.so
|
|
|
|
%{_libdir}/pkgconfig/libportal.pc
|
2019-12-27 17:21:43 +01:00
|
|
|
|
|
|
|
%changelog
|