Blame xdg-desktop-portal.spec

3172a43
%global pipewire_version 0.2.2
cd55fde
%global geoclue_version 2.5.2
3172a43
Igor Gnatenko 3a76d2b
Name:    xdg-desktop-portal
9c9cae7
Version: 1.2.0
c742441
Release: 2%{?dist}
Igor Gnatenko 3a76d2b
Summary: Portal frontend service to flatpak
Igor Gnatenko 3a76d2b
Igor Gnatenko 3a76d2b
License: LGPLv2+
Igor Gnatenko 3a76d2b
URL:     https://github.com/flatpak/xdg-desktop-portal/
Igor Gnatenko 3a76d2b
Source0: https://github.com/flatpak/xdg-desktop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz
Igor Gnatenko 3a76d2b
614235e
BuildRequires: gcc
Igor Gnatenko 3a76d2b
BuildRequires: pkgconfig(flatpak)
cd55fde
BuildRequires: pkgconfig(fontconfig)
b30f2aa
BuildRequires: pkgconfig(fuse)
Igor Gnatenko 3a76d2b
BuildRequires: pkgconfig(gio-unix-2.0)
cd55fde
BuildRequires: pkgconfig(libgeoclue-2.0) >= %{geoclue_version}
3172a43
BuildRequires: pkgconfig(libpipewire-0.2) >= %{pipewire_version}
Igor Gnatenko 3a76d2b
BuildRequires: /usr/bin/xmlto
6fd5cee
%{?systemd_requires}
6fd5cee
BuildRequires: systemd
Igor Gnatenko 3a76d2b
Requires:      dbus
9c9cae7
# Required version for icon validator.
9c9cae7
Requires:      flatpak >= 1.2.0
cd55fde
Requires:      geoclue2 >= %{geoclue_version}
3172a43
Requires:      pipewire >= %{pipewire_version}
9c9cae7
# Used to validate icons in notifications.
9c9cae7
Requires:      /usr/libexec/flatpak-validate-icon
b30f2aa
# Required for the document portal.
b30f2aa
Requires:      /usr/bin/fusermount
Igor Gnatenko 3a76d2b
Igor Gnatenko 3a76d2b
%description
Igor Gnatenko 3a76d2b
xdg-desktop-portal works by exposing a series of D-Bus interfaces known as
Igor Gnatenko 3a76d2b
portals under a well-known name (org.freedesktop.portal.Desktop) and object
Igor Gnatenko 3a76d2b
path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for
Igor Gnatenko 3a76d2b
file access, opening URIs, printing and others.
Igor Gnatenko 3a76d2b
Igor Gnatenko 3a76d2b
%package  devel
Igor Gnatenko 3a76d2b
Summary:  Development files for %{name}
Igor Gnatenko 3a76d2b
Requires: %{name}%{?_isa} = %{version}-%{release}
Igor Gnatenko 3a76d2b
Igor Gnatenko 3a76d2b
%description devel
Igor Gnatenko 3a76d2b
The pkg-config file for %{name}.
Igor Gnatenko 3a76d2b
2a2b28b
Igor Gnatenko 3a76d2b
%prep
Igor Gnatenko 3a76d2b
%setup -q
Igor Gnatenko 3a76d2b
Igor Gnatenko 3a76d2b
%build
6f8a60d
%configure --enable-docbook-docs
Igor Gnatenko 37466d9
%make_build
Igor Gnatenko 3a76d2b
2a2b28b
Igor Gnatenko 3a76d2b
%install
Igor Gnatenko 3a76d2b
%make_install
2a2b28b
install -dm 755 %{buildroot}/%{_pkgdocdir}
2a2b28b
install -pm 644 README.md %{buildroot}/%{_pkgdocdir}
2a2b28b
# This directory is used by implementations such as xdg-desktop-portal-gtk.
2a2b28b
install -dm 755 %{buildroot}/%{_datadir}/%{name}/portals
2a2b28b
313c1ae
%find_lang %{name}
Igor Gnatenko 3a76d2b
313c1ae
6fd5cee
%post
6fd5cee
%systemd_user_post %{name}.service
b30f2aa
%systemd_user_post xdg-document-portal.service
b30f2aa
%systemd_user_post xdg-permission-store.service
6fd5cee
6fd5cee
6fd5cee
%preun
6fd5cee
%systemd_user_preun %{name}.service
b30f2aa
%systemd_user_preun xdg-document-portal.service
b30f2aa
%systemd_user_preun xdg-permission-store.service
6fd5cee
6fd5cee
313c1ae
%files -f %{name}.lang
Igor Gnatenko 3a76d2b
%doc %{_pkgdocdir}
Igor Gnatenko 3a76d2b
%license COPYING
Igor Gnatenko 3a76d2b
%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.*.xml
Igor Gnatenko 3a76d2b
%{_datadir}/dbus-1/interfaces/org.freedesktop.impl.portal.*.xml
Igor Gnatenko 3a76d2b
%{_datadir}/dbus-1/services/org.freedesktop.portal.Desktop.service
b30f2aa
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
b30f2aa
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
2a2b28b
%{_datadir}/%{name}
b30f2aa
%{_libexecdir}/xdg-desktop-portal
b30f2aa
%{_libexecdir}/xdg-document-portal
b30f2aa
%{_libexecdir}/xdg-permission-store
6fd5cee
%{_userunitdir}/%{name}.service
b30f2aa
%{_userunitdir}/xdg-document-portal.service
b30f2aa
%{_userunitdir}/xdg-permission-store.service
Igor Gnatenko 3a76d2b
Igor Gnatenko 3a76d2b
%files devel
1d9fce0
%{_datadir}/pkgconfig/xdg-desktop-portal.pc
Igor Gnatenko 3a76d2b
2a2b28b
Igor Gnatenko 3a76d2b
%changelog
c742441
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
c742441
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
c742441
9c9cae7
* Sat Jan 26 2019 David King <amigadave@amigadave.com> - 1.2.0-1
9c9cae7
- Update to 1.2.0 (#1669552)
9c9cae7
cd55fde
* Wed Jan 16 2019 Kalev Lember <klember@redhat.com> - 1.1.1-1
cd55fde
- Update to 1.1.1
cd55fde
c432880
* Tue Oct 09 2018 David King <amigadave@amigadave.com> - 1.0.3-1
c432880
- Update to 1.0.3
c432880
8173f6c
* Mon Sep 03 2018 David King <amigadave@amigadave.com> - 1.0.2-1
8173f6c
- Update to 1.0.2
8173f6c
3172a43
* Mon Aug 20 2018 David King <amigadave@amigadave.com> - 1.0-1
3172a43
- Update to 1.0
3172a43
a46f4b0
* Wed Aug 01 2018 Jan Grulich <jgrulich@redhat.com> - 0.99-2
a46f4b0
- Rebuild PipeWire 0.2.2
a46f4b0
614235e
* Tue Jul 24 2018 David King <amigadave@amigadave.com> - 0.99-1
614235e
- Update to 0.99
614235e
bf620ae
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2
bf620ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bf620ae
1b1ecb3
* Wed Apr 25 2018 David King <amigadave@amigadave.com> - 0.11-1
1b1ecb3
- Update to 0.11 (#1545225)
1b1ecb3
b30f2aa
* Wed Feb 14 2018 David King <amigadave@amigadave.com> - 0.10-1
b30f2aa
- Update to 0.10 (#1545225)
b30f2aa
2bd1415
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-2
2bd1415
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2bd1415
1d9fce0
* Sun Nov 19 2017 David King <amigadave@amigadave.com> - 0.9-1
1d9fce0
- Update to 0.9 (#1514774)
1d9fce0
368cc48
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-3
368cc48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
368cc48
eea1ece
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2
eea1ece
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
eea1ece
e8d47d3
* Tue Jun 06 2017 David King <amigadave@amigadave.com> - 0.8-1
e8d47d3
- Update to 0.8 (#1458969)
e8d47d3
6fd5cee
* Fri Mar 31 2017 David King <amigadave@amigadave.com> - 0.6-1
6fd5cee
- Update to 0.6
6fd5cee
9ba09df
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-2
9ba09df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9ba09df
f835a62
* Wed Jan 18 2017 David King <amigadave@amigadave.com> - 0.5-1
f835a62
- Update to 0.5
f835a62
a9f0ed7
* Thu Dec 01 2016 David King <amigadave@amigadave.com> - 0.4-1
a9f0ed7
- Update to 0.4
a9f0ed7
6f8a60d
* Fri Sep 02 2016 David King <amigadave@amigadave.com> - 0.3-1
6f8a60d
- Update to 0.3
6f8a60d
313c1ae
* Fri Jul 29 2016 David King <amigadave@amigadave.com> - 0.2-1
313c1ae
- Update to 0.2 (#1361575)
313c1ae
2a2b28b
* Tue Jul 12 2016 David King <amigadave@amigadave.com> - 0.1-2
2a2b28b
- Own the portals directory
2a2b28b
Igor Gnatenko 3a76d2b
* Mon Jul 11 2016 David King <amigadave@amigadave.com> - 0.1-1
Igor Gnatenko 3a76d2b
- Initial Fedora packaging