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