!1 添加源代码

Merge pull request !1 from sherlock2010/master
This commit is contained in:
openeuler-ci-bot 2019-12-06 17:11:11 +08:00 committed by Gitee
commit a346316f64
2 changed files with 79 additions and 0 deletions

Binary file not shown.

79
xdg-desktop-portal.spec Normal file
View File

@ -0,0 +1,79 @@
Name: xdg-desktop-portal
Version: 1.0.2
Release: 2
Summary: A portal frontend service for Flatpak and possibly other desktop containment frameworks
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 systemd xmlto pkgconfig(flatpak) pkgconfig(fuse)
BuildRequires: pkgconfig(gio-unix-2.0) pkgconfig(libpipewire-0.2) >= 0.2.2
Requires: dbus fuse flatpak >= 0.11.1 pipewire >= 0.2.2
%{?systemd_requires}
%description
Xdg-desktop-portal is a portal frontend service for Flatpak and possibly other desktop containment frameworks.
It 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} = %{version}-%{release}
%description devel
Pkgconfig file for %{name}.
%package help
Summary: Documents for %{name}
Buildarch: noarch
%description help
Introduction and other related files for %{name}.
%prep
%autosetup -p1
%build
%configure --enable-docbook-docs
%make_build
sed -i 's/idm[0-9]\{5,32\}\"/idm123456789123456\"/g' $(find -name portal-docs.html)
%install
%make_install
install -d -m 0755 %{buildroot}/%{_pkgdocdir}
install -p -m 0644 README.md %{buildroot}/%{_pkgdocdir}
install -d -m 0755 %{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
%license COPYING
%{_datadir}/dbus-1/interfaces/*
%{_datadir}/dbus-1/services/*
%{_datadir}/%{name}
%{_libexecdir}/*
%{_userunitdir}/*
%files devel
%{_datadir}/pkgconfig/xdg-desktop-portal.pc
%files help
%doc %{_pkgdocdir}
%changelog
* Thu Dec 05 2019 zhouyihang <zhouyihang1@huawei.com> - 1.0.2-2
- Package init