Igor Gnatenko 3a76d2b
Name:    xdg-desktop-portal
3eed262
Version: 0.8
313c1ae
Release: 1%{?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
Igor Gnatenko 3a76d2b
BuildRequires: pkgconfig(flatpak)
Igor Gnatenko 3a76d2b
BuildRequires: pkgconfig(gio-unix-2.0)
Igor Gnatenko 3a76d2b
BuildRequires: /usr/bin/xmlto
6568f30
%{?systemd_requires}
6568f30
BuildRequires: systemd
Igor Gnatenko 3a76d2b
Requires:      dbus
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
2a2b28b
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
6568f30
%post
6568f30
%systemd_user_post %{name}.service
6568f30
6568f30
6568f30
%preun
6568f30
%systemd_user_preun %{name}.service
6568f30
6568f30
313c1ae
%files -f %{name}.lang
Igor Gnatenko 3a76d2b
%doc %{_pkgdocdir}
Igor Gnatenko 3a76d2b
%license COPYING
Igor Gnatenko 3a76d2b
%{_libexecdir}/xdg-desktop-portal
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
2a2b28b
%{_datadir}/%{name}
6568f30
%{_userunitdir}/%{name}.service
Igor Gnatenko 3a76d2b
Igor Gnatenko 3a76d2b
%files devel
Igor Gnatenko 3a76d2b
%{_libdir}/pkgconfig/xdg-desktop-portal.pc
Igor Gnatenko 3a76d2b
2a2b28b
Igor Gnatenko 3a76d2b
%changelog
3eed262
* Tue Jun 06 2017 David King <amigadave@amigadave.com> - 0.8-1
3eed262
- Update to 0.8 (#1458969)
3eed262
6568f30
* Fri Mar 31 2017 David King <amigadave@amigadave.com> - 0.6-1
6568f30
- Update to 0.6
6568f30
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