[12435] | 1 | %bcond_with systemd |
---|
| 2 | |
---|
| 3 | %global pipewire_version 0.2.6 |
---|
| 4 | %global geoclue_version 2.5.2 |
---|
| 5 | |
---|
[12446] | 6 | Summary: Portal frontend service to flatpak |
---|
[12435] | 7 | Name: xdg-desktop-portal |
---|
[12446] | 8 | Version: 1.7.2 |
---|
[12435] | 9 | Release: 1%{?_dist_release}%{?with_systemd:.systemd} |
---|
| 10 | Vendor: Project Vine |
---|
| 11 | Distribution: Vine Linux |
---|
| 12 | |
---|
| 13 | License: LGPLv2+ |
---|
| 14 | URL: https://github.com/flatpak/xdg-desktop-portal/ |
---|
| 15 | Source0: https://github.com/flatpak/xdg-desktop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz |
---|
| 16 | |
---|
| 17 | BuildRequires: gcc |
---|
| 18 | BuildRequires: flatpak-devel |
---|
| 19 | BuildRequires: pkgconfig(fontconfig) |
---|
| 20 | BuildRequires: pkgconfig(fuse) |
---|
| 21 | BuildRequires: pkgconfig(gio-unix-2.0) |
---|
| 22 | BuildRequires: pkgconfig(json-glib-1.0) |
---|
| 23 | BuildRequires: pkgconfig(libgeoclue-2.0) >= %{geoclue_version} |
---|
| 24 | BuildRequires: pipewire-devel >= %{pipewire_version} |
---|
| 25 | BuildRequires: libportal-devel |
---|
| 26 | BuildRequires: /usr/bin/xmlto |
---|
| 27 | %if %{with systemd} |
---|
| 28 | %{?systemd_requires} |
---|
| 29 | BuildRequires: systemd |
---|
| 30 | %endif |
---|
| 31 | Requires: dbus |
---|
| 32 | # Required version for icon validator. |
---|
| 33 | Recommends: flatpak >= 1.2.0 |
---|
| 34 | Requires: geoclue2 >= %{geoclue_version} |
---|
| 35 | Recommends: pipewire >= %{pipewire_version} |
---|
| 36 | Requires: pipewire-libs >= %{pipewire_version} |
---|
| 37 | # Required for the document portal. |
---|
| 38 | Requires: /usr/bin/fusermount |
---|
| 39 | |
---|
| 40 | %description |
---|
| 41 | xdg-desktop-portal works by exposing a series of D-Bus interfaces known as |
---|
| 42 | portals under a well-known name (org.freedesktop.portal.Desktop) and object |
---|
| 43 | path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for |
---|
| 44 | file access, opening URIs, printing and others. |
---|
| 45 | |
---|
| 46 | %package devel |
---|
| 47 | Summary: Development files for %{name} |
---|
| 48 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
| 49 | |
---|
| 50 | %description devel |
---|
| 51 | The pkg-config file for %{name}. |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | %prep |
---|
| 55 | %setup -q |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | %build |
---|
| 59 | export LANG=ja_JP.UTF-8 |
---|
| 60 | %configure \ |
---|
| 61 | --enable-docbook-docs |
---|
| 62 | %make_build |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | %install |
---|
| 66 | %make_install |
---|
| 67 | # This directory is used by implementations such as xdg-desktop-portal-gtk. |
---|
| 68 | install -dm 755 %{buildroot}/%{_datadir}/%{name}/portals |
---|
| 69 | |
---|
| 70 | cp -af %{buildroot}%{_docdir}/xdg-desktop-portal ./html |
---|
| 71 | rm -rf %{buildroot}%{_docdir}/xdg-desktop-portal |
---|
| 72 | |
---|
| 73 | %if %{without systemd} |
---|
| 74 | rm -rf %{buildroot}/usr/lib/systemd |
---|
| 75 | %endif |
---|
| 76 | |
---|
| 77 | %find_lang %{name} |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | %if %{with systemd} |
---|
| 81 | %post |
---|
| 82 | %systemd_user_post %{name}.service |
---|
| 83 | %systemd_user_post xdg-document-portal.service |
---|
| 84 | %systemd_user_post xdg-permission-store.service |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | %preun |
---|
| 88 | %systemd_user_preun %{name}.service |
---|
| 89 | %systemd_user_preun xdg-document-portal.service |
---|
| 90 | %systemd_user_preun xdg-permission-store.service |
---|
| 91 | %endif |
---|
| 92 | |
---|
| 93 | %files -f %{name}.lang |
---|
| 94 | %doc README* html |
---|
| 95 | %license COPYING |
---|
| 96 | %{_datadir}/dbus-1/interfaces/org.freedesktop.portal.*.xml |
---|
| 97 | %{_datadir}/dbus-1/interfaces/org.freedesktop.impl.portal.*.xml |
---|
| 98 | %{_datadir}/dbus-1/services/org.freedesktop.portal.Desktop.service |
---|
| 99 | %{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service |
---|
| 100 | %{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service |
---|
| 101 | %{_datadir}/%{name} |
---|
| 102 | %{_libexecdir}/xdg-desktop-portal |
---|
| 103 | %{_libexecdir}/xdg-document-portal |
---|
| 104 | %{_libexecdir}/xdg-permission-store |
---|
| 105 | %if %{with systemd} |
---|
| 106 | %{_userunitdir}/%{name}.service |
---|
| 107 | %{_userunitdir}/xdg-document-portal.service |
---|
| 108 | %{_userunitdir}/xdg-permission-store.service |
---|
| 109 | %endif |
---|
| 110 | |
---|
| 111 | %files devel |
---|
| 112 | %{_datadir}/pkgconfig/xdg-desktop-portal.pc |
---|
| 113 | |
---|
| 114 | |
---|
| 115 | %changelog |
---|
[12446] | 116 | * Mon Aug 03 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.7.2-1 |
---|
| 117 | - updated to unstable release to build with pipewire-0.3. |
---|
| 118 | |
---|
[12435] | 119 | * Wed Jul 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.6.0-1 |
---|
| 120 | - new upstream release. |
---|
| 121 | |
---|
| 122 | * Mon Sep 23 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.4.2-4 |
---|
| 123 | - initial build for Vine Linux. |
---|
| 124 | |
---|
| 125 | * Mon Sep 16 2019 Kalev Lember <klember@redhat.com> - 1.4.2-3 |
---|
| 126 | - Avoid a hard dep on pipewire daemon |
---|
| 127 | |
---|
| 128 | * Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-2 |
---|
| 129 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
---|
| 130 | |
---|
| 131 | * Tue May 28 2019 Kalev Lember <klember@redhat.com> - 1.4.2-1 |
---|
| 132 | - Update to 1.4.2 |
---|
| 133 | |
---|
| 134 | * Thu Feb 14 2019 David King <amigadave@amigadave.com> - 1.2.0-3 |
---|
| 135 | - Drop icon validator Requires to Recommends |
---|
| 136 | |
---|
| 137 | * Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2 |
---|
| 138 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
---|
| 139 | |
---|
| 140 | * Sat Jan 26 2019 David King <amigadave@amigadave.com> - 1.2.0-1 |
---|
| 141 | - Update to 1.2.0 (#1669552) |
---|
| 142 | |
---|
| 143 | * Wed Jan 16 2019 Kalev Lember <klember@redhat.com> - 1.1.1-1 |
---|
| 144 | - Update to 1.1.1 |
---|
| 145 | |
---|
| 146 | * Tue Oct 09 2018 David King <amigadave@amigadave.com> - 1.0.3-1 |
---|
| 147 | - Update to 1.0.3 |
---|
| 148 | |
---|
| 149 | * Mon Sep 03 2018 David King <amigadave@amigadave.com> - 1.0.2-1 |
---|
| 150 | - Update to 1.0.2 |
---|
| 151 | |
---|
| 152 | * Mon Aug 20 2018 David King <amigadave@amigadave.com> - 1.0-1 |
---|
| 153 | - Update to 1.0 |
---|
| 154 | |
---|
| 155 | * Wed Aug 01 2018 Jan Grulich <jgrulich@redhat.com> - 0.99-2 |
---|
| 156 | - Rebuild PipeWire 0.2.2 |
---|
| 157 | |
---|
| 158 | * Tue Jul 24 2018 David King <amigadave@amigadave.com> - 0.99-1 |
---|
| 159 | - Update to 0.99 |
---|
| 160 | |
---|
| 161 | * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2 |
---|
| 162 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
---|
| 163 | |
---|
| 164 | * Wed Apr 25 2018 David King <amigadave@amigadave.com> - 0.11-1 |
---|
| 165 | - Update to 0.11 (#1545225) |
---|
| 166 | |
---|
| 167 | * Wed Feb 14 2018 David King <amigadave@amigadave.com> - 0.10-1 |
---|
| 168 | - Update to 0.10 (#1545225) |
---|
| 169 | |
---|
| 170 | * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-2 |
---|
| 171 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
---|
| 172 | |
---|
| 173 | * Sun Nov 19 2017 David King <amigadave@amigadave.com> - 0.9-1 |
---|
| 174 | - Update to 0.9 (#1514774) |
---|
| 175 | |
---|
| 176 | * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-3 |
---|
| 177 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild |
---|
| 178 | |
---|
| 179 | * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2 |
---|
| 180 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
| 181 | |
---|
| 182 | * Tue Jun 06 2017 David King <amigadave@amigadave.com> - 0.8-1 |
---|
| 183 | - Update to 0.8 (#1458969) |
---|
| 184 | |
---|
| 185 | * Fri Mar 31 2017 David King <amigadave@amigadave.com> - 0.6-1 |
---|
| 186 | - Update to 0.6 |
---|
| 187 | |
---|
| 188 | * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-2 |
---|
| 189 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
---|
| 190 | |
---|
| 191 | * Wed Jan 18 2017 David King <amigadave@amigadave.com> - 0.5-1 |
---|
| 192 | - Update to 0.5 |
---|
| 193 | |
---|
| 194 | * Thu Dec 01 2016 David King <amigadave@amigadave.com> - 0.4-1 |
---|
| 195 | - Update to 0.4 |
---|
| 196 | |
---|
| 197 | * Fri Sep 02 2016 David King <amigadave@amigadave.com> - 0.3-1 |
---|
| 198 | - Update to 0.3 |
---|
| 199 | |
---|
| 200 | * Fri Jul 29 2016 David King <amigadave@amigadave.com> - 0.2-1 |
---|
| 201 | - Update to 0.2 (#1361575) |
---|
| 202 | |
---|
| 203 | * Tue Jul 12 2016 David King <amigadave@amigadave.com> - 0.1-2 |
---|
| 204 | - Own the portals directory |
---|
| 205 | |
---|
| 206 | * Mon Jul 11 2016 David King <amigadave@amigadave.com> - 0.1-1 |
---|
| 207 | - Initial Fedora packaging |
---|