File xdg-app.spec of Package xdg-app
#
# spec file for package xdg-app
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: xdg-app
Version: 0.5.2
Release: 0
Summary: Manage OSTree based application bundles
License: LGPL-2.1+
Group: System/Utilities
Url: https://wiki.gnome.org/Projects/SandboxedApps
Source: %{name}-%{version}.tar.xz
BuildRequires: docbook-xsl-stylesheets
BuildRequires: gobject-introspection-devel >= 1.40.0
BuildRequires: libcap-devel
BuildRequires: libdwarf-devel
BuildRequires: libelf-devel >= 0.8.12
BuildRequires: libtool
BuildRequires: xsltproc
BuildRequires: pkgconfig(fuse)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libgsystem) >= 2015.1
BuildRequires: pkgconfig(libseccomp)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(ostree-1) >= 2015.3
BuildRequires: pkgconfig(xau)
Requires: ostree >= 2015.3
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
xdg-app is a system for building, distributing and running sandboxed desktop
applications on Linux. See https://wiki.gnome.org/Projects/SandboxedApps for
more information.
%package -n libxdg-app0
Summary: Manage OSTree based application bundles
Group: System/Libraries
%description -n libxdg-app0
xdg-app is a system for building, distributing and running sandboxed desktop
applications on Linux. See https://wiki.gnome.org/Projects/SandboxedApps for
more information.
%package -n typelib-1_0-XdgApp-1_0
Summary: Manage OSTree based application bundles -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-XdgApp-1_0
xdg-app is a system for building, distributing and running sandboxed desktop
applications on Linux. See https://wiki.gnome.org/Projects/SandboxedApps for
more information.
%package devel
Summary: Manage OSTree based application bundles -- Development files
Group: Development/Languages/C and C++
Requires: libxdg-app0 = %{version}
Requires: typelib-1_0-XdgApp-1_0 = %{version}
%description devel
xdg-app is a system for building, distributing and running sandboxed desktop
applications on Linux. See https://wiki.gnome.org/Projects/SandboxedApps for
more information.
%prep
%setup -q
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
--with-priv-mode=none
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name '*.la' -delete -print
%post -n libxdg-app0 -p /sbin/ldconfig
%postun -n libxdg-app0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/xdg-app
%{_bindir}/xdg-app-builder
%{_bindir}/xdg-app-helper
%{_libexecdir}/xdg-app-session-helper
%{_libexecdir}/xdg-dbus-proxy
%{_libexecdir}/xdg-document-portal
%{_datadir}/bash-completion/completions/xdg-app
# # Own dirs so we don't have to depend on dbus for building.
%dir %{_datadir}/dbus-1
%dir %{_datadir}/dbus-1/interfaces
%dir %{_datadir}/dbus-1/services
%{_datadir}/dbus-1/interfaces/org.freedesktop.XdgApp.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.Documents.xml
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
%{_mandir}/man1/xdg-app*
%{_datadir}/%{name}/
%{_sysconfdir}/profile.d/xdg-app.sh
# Own dirs so we don't have to depend on gdm for building.
%dir %{_datadir}/gdm/
%dir %{_datadir}/gdm/env.d/
%{_datadir}/gdm/env.d/xdg-app.env
%{_datadir}/dbus-1/services/org.freedesktop.XdgApp.service
%{_userunitdir}/xdg-app-session-helper.service
%{_userunitdir}/xdg-document-portal.service
%files -n libxdg-app0
%defattr(-,root,root)
%{_libdir}/libxdg-app.so.*
%files -n typelib-1_0-XdgApp-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/XdgApp-1.0.typelib
%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/xdg-app.pc
%{_includedir}/%{name}/
%{_libdir}/libxdg-app.so
%{_datadir}/gir-1.0/XdgApp-1.0.gir
%changelog