Compare commits
10 Commits
dc8355d25b
...
600b04a12f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
600b04a12f | ||
|
|
52f62a0a0c | ||
|
|
bcf9a1b44a | ||
|
|
5657425b02 | ||
|
|
42650945cb | ||
|
|
bda239f899 | ||
|
|
545c295ab0 | ||
|
|
f078e5aa19 | ||
|
|
a346316f64 | ||
|
|
c5a442b462 |
BIN
xdg-desktop-portal-1.7.2.tar.xz
Normal file
BIN
xdg-desktop-portal-1.7.2.tar.xz
Normal file
Binary file not shown.
113
xdg-desktop-portal.spec
Normal file
113
xdg-desktop-portal.spec
Normal file
@ -0,0 +1,113 @@
|
||||
%global pipewire_version 0.3.0
|
||||
%global geoclue_version 2.5.2
|
||||
%global glib_version 2.63.3
|
||||
%global low_memory_monitor_version 2.0
|
||||
|
||||
Name: xdg-desktop-portal
|
||||
Version: 1.7.2
|
||||
Release: 2
|
||||
Summary: Portal frontend service to flatpak
|
||||
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/flatpak/xdg-desktop-portal/
|
||||
Source0: https://github.com/flatpak/xdg-desktop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkgconfig(flatpak)
|
||||
BuildRequires: pkgconfig(fontconfig)
|
||||
BuildRequires: pkgconfig(fuse)
|
||||
BuildRequires: pkgconfig(gio-unix-2.0) >= %{glib_version}
|
||||
BuildRequires: pkgconfig(json-glib-1.0)
|
||||
BuildRequires: pkgconfig(libgeoclue-2.0) >= %{geoclue_version}
|
||||
BuildRequires: pkgconfig(libpipewire-0.3) >= %{pipewire_version}
|
||||
BuildRequires: /usr/bin/xmlto
|
||||
%{?systemd_requires}
|
||||
BuildRequires: systemd
|
||||
|
||||
Requires: dbus
|
||||
# Required version for icon validator.
|
||||
Recommends: flatpak >= 1.2.0
|
||||
Requires: geoclue2 >= %{geoclue_version}
|
||||
Requires: glib2 >= %{glib_version}
|
||||
Recommends: pipewire >= %{pipewire_version}
|
||||
Requires: pipewire-libs >= %{pipewire_version}
|
||||
# Required for the document portal.
|
||||
Requires: /usr/bin/fusermount
|
||||
# Required for the GMemoryMonitor GIO API
|
||||
Requires: low-memory-monitor >= %{low_memory_monitor_version}
|
||||
|
||||
%description
|
||||
xdg-desktop-portal works by exposing a series of D-Bus interfaces known as
|
||||
portals under a well-known name (org.freedesktop.portal.Desktop) and object
|
||||
path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for
|
||||
file access, opening URIs, printing and others.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
The pkg-config file for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
|
||||
%build
|
||||
##configure --enable-docbook-docs --disable-libportal
|
||||
%configure --disable-libportal
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
install -dm 755 %{buildroot}/%{_pkgdocdir}
|
||||
install -pm 644 README.md %{buildroot}/%{_pkgdocdir}
|
||||
# This directory is used by implementations such as xdg-desktop-portal-gtk.
|
||||
install -dm 755 %{buildroot}/%{_datadir}/%{name}/portals
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
|
||||
%post
|
||||
%systemd_user_post %{name}.service
|
||||
%systemd_user_post xdg-document-portal.service
|
||||
%systemd_user_post xdg-permission-store.service
|
||||
|
||||
|
||||
%preun
|
||||
%systemd_user_preun %{name}.service
|
||||
%systemd_user_preun xdg-document-portal.service
|
||||
%systemd_user_preun xdg-permission-store.service
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc %{_pkgdocdir}
|
||||
%license COPYING
|
||||
%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.*.xml
|
||||
%{_datadir}/dbus-1/interfaces/org.freedesktop.impl.portal.*.xml
|
||||
%{_datadir}/dbus-1/services/org.freedesktop.portal.Desktop.service
|
||||
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
|
||||
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
|
||||
%{_datadir}/%{name}
|
||||
%{_libexecdir}/xdg-desktop-portal
|
||||
%{_libexecdir}/xdg-document-portal
|
||||
%{_libexecdir}/xdg-permission-store
|
||||
%{_userunitdir}/%{name}.service
|
||||
%{_userunitdir}/xdg-document-portal.service
|
||||
%{_userunitdir}/xdg-permission-store.service
|
||||
|
||||
%files devel
|
||||
%{_datadir}/pkgconfig/xdg-desktop-portal.pc
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Mar 24 2022 baizhonggui <baizhonggui@huawei.com> - 1.7.2-2
|
||||
* DESC: delete %{dist}
|
||||
|
||||
* Fri Jun 04 2021 Wenlong Ding <wenlong.ding@turbolinux.com> - 1.7.2-1
|
||||
- Update to 1.7.2
|
||||
|
||||
* Thu Dec 05 2019 zhouyihang <zhouyihang1@huawei.com> - 1.0.2-2
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user