- Create a doc flavor for building developer documentation.
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/xdg-desktop-portal?expand=0&rev=86
This commit is contained in:
parent
817ef7ee02
commit
b17f367f58
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>docs</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 19 16:43:17 UTC 2024 - Frederic Crozat <fcrozat@suse.com>
|
||||||
|
|
||||||
|
- Create a doc flavor for building developer documentation.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 11 13:06:00 UTC 2024 - Frederic Crozat <fcrozat@suse.com>
|
Wed Dec 11 13:06:00 UTC 2024 - Frederic Crozat <fcrozat@suse.com>
|
||||||
|
|
||||||
|
@ -17,22 +17,41 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: xdg-desktop-portal
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "docs"
|
||||||
|
%bcond_without docs
|
||||||
|
%define psuffix -devel-docs
|
||||||
|
%else
|
||||||
|
%bcond_with docs
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%define oname xdg-desktop-portal
|
||||||
|
|
||||||
|
Name: %{oname}%{?psuffix}
|
||||||
Version: 1.19.0
|
Version: 1.19.0
|
||||||
Release: 0
|
Release: 0
|
||||||
|
%if "%{flavor}" == ""
|
||||||
Summary: A portal frontend service for Flatpak
|
Summary: A portal frontend service for Flatpak
|
||||||
License: LGPL-2.1-or-later
|
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
%else
|
||||||
|
Summary: Development documentation for xdg-desktop-portal
|
||||||
|
Group: Documentation/HTML
|
||||||
|
Supplements: (%{oname}-devel and patterns-base-documentation)
|
||||||
|
%endif
|
||||||
|
License: LGPL-2.1-or-later
|
||||||
URL: https://github.com/flatpak/xdg-desktop-portal
|
URL: https://github.com/flatpak/xdg-desktop-portal
|
||||||
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
Source0: %{url}/releases/download/%{version}/%{oname}-%{version}.tar.xz
|
||||||
|
|
||||||
BuildRequires: docutils
|
BuildRequires: docutils
|
||||||
BuildRequires: meson >= 0.58
|
BuildRequires: meson >= 0.58
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
|
||||||
|
%if %{with docs}
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
BuildRequires: python3-furo
|
BuildRequires: python3-furo
|
||||||
BuildRequires: python3-sphinxcontrib-copybutton
|
BuildRequires: python3-sphinxcontrib-copybutton
|
||||||
BuildRequires: python3-sphinxext-opengraph
|
BuildRequires: python3-sphinxext-opengraph
|
||||||
|
%endif
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
BuildRequires: pkgconfig(flatpak)
|
BuildRequires: pkgconfig(flatpak)
|
||||||
@ -52,6 +71,7 @@ BuildRequires: pkgconfig(libsystemd)
|
|||||||
# document-portal/document-portal-fuse.c: char *umount_argv[] = { "fusermount3", "-u", "-z", (char *) path, NULL };
|
# document-portal/document-portal-fuse.c: char *umount_argv[] = { "fusermount3", "-u", "-z", (char *) path, NULL };
|
||||||
Requires: %{_bindir}/fusermount3
|
Requires: %{_bindir}/fusermount3
|
||||||
|
|
||||||
|
%if "%{flavor}" == ""
|
||||||
%description
|
%description
|
||||||
A portal frontend service for Flatpak and possibly other desktop containment frameworks.
|
A portal frontend service for Flatpak and possibly other desktop containment frameworks.
|
||||||
|
|
||||||
@ -73,13 +93,24 @@ a well-known name (org.freedesktop.portal.Desktop) and object path (/org/freedes
|
|||||||
|
|
||||||
This package contains convenience files for developers.
|
This package contains convenience files for developers.
|
||||||
|
|
||||||
|
%else
|
||||||
|
|
||||||
|
%description
|
||||||
|
A portal frontend service for Flatpak and possibly other desktop containment frameworks.
|
||||||
|
|
||||||
|
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).
|
||||||
|
|
||||||
|
This package contains convenience documentation for developers.
|
||||||
|
%endif
|
||||||
|
|
||||||
%lang_package
|
%lang_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1 -n %{oname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%meson \
|
%meson %{!?with_docs:-Ddocumentation=disabled} \
|
||||||
-Dpytest=disabled \
|
-Dpytest=disabled \
|
||||||
%{nil}
|
%{nil}
|
||||||
%meson_build
|
%meson_build
|
||||||
@ -89,9 +120,13 @@ This package contains convenience files for developers.
|
|||||||
|
|
||||||
# own the packaging directories
|
# own the packaging directories
|
||||||
install -d %{buildroot}%{_datadir}/xdg-desktop-portal/portals
|
install -d %{buildroot}%{_datadir}/xdg-desktop-portal/portals
|
||||||
|
%if %{with docs}
|
||||||
|
rm -fr %{buildroot}/%{_datadir}/{dbus-1,%{oname},locale,pkgconfig} %buildroot%{_userunitdir} %{buildroot}%{_mandir} %{buildroot}/%{_libdir} %{buildroot}/%{_libexecdir}
|
||||||
|
%else
|
||||||
|
%find_lang %{oname} %{?no_lang_C}
|
||||||
|
%endif
|
||||||
|
|
||||||
%find_lang %{name} %{?no_lang_C}
|
%if "%{flavor}" == ""
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_user_post %{name}.service xdg-document-portal.service xdg-permission-store.service
|
%systemd_user_post %{name}.service xdg-document-portal.service xdg-permission-store.service
|
||||||
|
|
||||||
@ -122,7 +157,6 @@ install -d %{buildroot}%{_datadir}/xdg-desktop-portal/portals
|
|||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc %{_vpath_builddir}/doc/html
|
|
||||||
%if %{pkg_vcmp meson < 0.62.0 }
|
%if %{pkg_vcmp meson < 0.62.0 }
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
%else
|
%else
|
||||||
@ -132,4 +166,10 @@ install -d %{buildroot}%{_datadir}/xdg-desktop-portal/portals
|
|||||||
%files lang -f %{name}.lang
|
%files lang -f %{name}.lang
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
|
||||||
|
%else
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc %{_vpath_builddir}/doc/html
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user