xdg-desktop-portal-vl.spec 6.5 KB

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