Blame flatpak.spec

bee992
%global bubblewrap_version 0.1.5
eba9b5
%global ostree_version 2016.14
8d9bbc
e76b95
Name:           flatpak
4f0345
Version:        0.8.3
bee992
Release:        1%{?dist}
e76b95
Summary:        Application deployment framework for desktop apps
e76b95
e76b95
Group:          Development/Tools
e76b95
License:        LGPLv2+
d1e229
URL:            http://flatpak.org/
f29396
Source0:        https://github.com/flatpak/flatpak/releases/download/%{version}/%{name}-%{version}.tar.xz
e76b95
e76b95
BuildRequires:  pkgconfig(fuse)
e76b95
BuildRequires:  pkgconfig(gio-unix-2.0)
2e2d70
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.40.0
e76b95
BuildRequires:  pkgconfig(json-glib-1.0)
e76b95
BuildRequires:  pkgconfig(libarchive) >= 2.8.0
e76b95
BuildRequires:  pkgconfig(libelf) >= 0.8.12
e76b95
BuildRequires:  pkgconfig(libsoup-2.4)
8d9bbc
BuildRequires:  pkgconfig(ostree-1) >= %{ostree_version}
e76b95
BuildRequires:  pkgconfig(polkit-gobject-1)
e76b95
BuildRequires:  pkgconfig(libseccomp)
e76b95
BuildRequires:  pkgconfig(xau)
8d9bbc
BuildRequires:  bubblewrap >= %{bubblewrap_version}
e76b95
BuildRequires:  docbook-dtds
e76b95
BuildRequires:  docbook-style-xsl
e76b95
BuildRequires:  intltool
e76b95
BuildRequires:  libattr-devel
e76b95
BuildRequires:  libcap-devel
e76b95
BuildRequires:  libdwarf-devel
e76b95
BuildRequires:  systemd
bacaa5
BuildRequires:  /usr/bin/xmlto
e76b95
BuildRequires:  /usr/bin/xsltproc
e76b95
e76b95
# Crashes with older kernels (the bug being introduced in 4.0.2), without the
e76b95
# upstream fixes in this version.
e76b95
Requires:       kernel >= 4.0.4-202
e76b95
e76b95
# Needed for the document portal.
e76b95
Requires:       /usr/bin/fusermount
e76b95
8d9bbc
Requires:       bubblewrap >= %{bubblewrap_version}
8d9bbc
Requires:       ostree%{?_isa} >= %{ostree_version}
c93f99
e76b95
# Remove in F27.
e76b95
Provides:       xdg-app = %{version}-%{release}
e76b95
Obsoletes:      xdg-app <= 0.5.2-2
e76b95
e76b95
%description
e76b95
flatpak is a system for building, distributing and running sandboxed desktop
e76b95
applications on Linux. See https://wiki.gnome.org/Projects/SandboxedApps for
e76b95
more information.
e76b95
e76b95
%package builder
e76b95
Summary:        Build helper for %{name}
e76b95
Group:          Development/Tools
e76b95
License:        LGPLv2+
e76b95
Requires:       %{name}%{?_isa} = %{version}-%{release}
e76b95
Requires:       /usr/bin/bzr
e76b95
Requires:       /usr/bin/git
e76b95
Requires:       /usr/bin/patch
e76b95
Requires:       /usr/bin/strip
e76b95
Requires:       /usr/bin/tar
e76b95
Requires:       /usr/bin/unzip
e76b95
# Remove in F27.
e76b95
Provides:       xdg-app-builder = %{version}-%{release}
e76b95
Obsoletes:      xdg-app-builder <= 0.5.2-2
e76b95
e76b95
%description builder
e76b95
flatpak-builder is a tool that makes it easy to build applications and their
e76b95
dependencies by automating the configure && make && make install steps.
e76b95
e76b95
%package devel
e76b95
Summary:        Development files for %{name}
e76b95
Group:          Development/Libraries
e76b95
License:        LGPLv2+
e76b95
Requires:       %{name}%{?_isa} = %{version}-%{release}
e76b95
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
e76b95
# Remove in F27.
e76b95
Provides:       xdg-app-devel%{?_isa} = %{version}-%{release}
e76b95
Obsoletes:      xdg-app-devel <= 0.5.2-2
e76b95
e76b95
%description devel
e76b95
This package contains the pkg-config file and development headers for %{name}.
e76b95
e76b95
%package libs
e76b95
Summary:        Libraries for %{name}
e76b95
Group:          Development/Libraries
e76b95
License:        LGPLv2+
8d9bbc
Requires:       bubblewrap >= %{bubblewrap_version}
8d9bbc
Requires:       ostree%{?_isa} >= %{ostree_version}
e76b95
# Remove in F27.
e76b95
Provides:       xdg-app-libs%{?_isa} = %{version}-%{release}
e76b95
Obsoletes:      xdg-app-libs <= 0.5.2-2
e76b95
e76b95
%description libs
f29396
This package contains libflatpak.
e76b95
e76b95
e76b95
%prep
e76b95
%setup -q
e76b95
e76b95
e76b95
%build
e76b95
# User namespace support is sufficient.
c93f99
%configure --with-dwarf-header=%{_includedir}/libdwarf --with-priv-mode=none \
bacaa5
           --with-system-bubblewrap --enable-docbook-docs
f29396
%make_build V=1
e76b95
e76b95
e76b95
%install
e76b95
%make_install
bacaa5
install -pm 644 NEWS README.md %{buildroot}/%{_pkgdocdir}
e76b95
# The system repo is not installed by the flatpak build system.
e76b95
install -d %{buildroot}%{_localstatedir}/lib/flatpak
320710
install -d %{buildroot}%{_sysconfdir}/flatpak/remotes.d
e76b95
rm -f %{buildroot}%{_libdir}/libflatpak.la
bacaa5
%find_lang %{name}
e76b95
e76b95
e76b95
%post
e76b95
# Create an (empty) system-wide repo.
ca0d04
flatpak remote-list --system &> /dev/null || :
e76b95
e76b95
%post libs -p /sbin/ldconfig
e76b95
e76b95
e76b95
%postun libs -p /sbin/ldconfig
e76b95
e76b95
bacaa5
%files -f %{name}.lang
e76b95
%license COPYING
bacaa5
# Comply with the packaging guidelines about not mixing relative and absolute
bacaa5
# paths in doc.
bacaa5
%doc %{_pkgdocdir}
e76b95
%{_bindir}/flatpak
e76b95
%{_datadir}/bash-completion
e76b95
%{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.xml
e76b95
%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.Documents.xml
e76b95
%{_datadir}/dbus-1/interfaces/org.freedesktop.impl.portal.PermissionStore.xml
e76b95
%{_datadir}/dbus-1/services/org.freedesktop.Flatpak.service
e76b95
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
e76b95
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
e76b95
%{_datadir}/dbus-1/system-services/org.freedesktop.Flatpak.SystemHelper.service
f29396
# Co-own directory.
e76b95
%{_datadir}/gdm/env.d
e76b95
%{_datadir}/%{name}
e76b95
%{_datadir}/polkit-1/actions/org.freedesktop.Flatpak.policy
e76b95
%{_datadir}/polkit-1/rules.d/org.freedesktop.Flatpak.rules
e76b95
%{_libexecdir}/flatpak-dbus-proxy
e76b95
%{_libexecdir}/flatpak-session-helper
e76b95
%{_libexecdir}/flatpak-system-helper
e76b95
%{_libexecdir}/xdg-document-portal
e76b95
%{_libexecdir}/xdg-permission-store
e76b95
%dir %{_localstatedir}/lib/flatpak
e76b95
%{_mandir}/man1/%{name}*.1*
404ca0
%{_mandir}/man5/%{name}-metadata.5*
1d9b99
%{_mandir}/man5/flatpak-flatpakref.5*
1d9b99
%{_mandir}/man5/flatpak-flatpakrepo.5*
e76b95
%exclude %{_mandir}/man1/flatpak-builder.1*
e76b95
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf
320710
%{_sysconfdir}/flatpak/remotes.d
e76b95
%{_sysconfdir}/profile.d/flatpak.sh
e76b95
%{_unitdir}/flatpak-system-helper.service
e76b95
%{_userunitdir}/flatpak-session-helper.service
e76b95
%{_userunitdir}/xdg-document-portal.service
e76b95
%{_userunitdir}/xdg-permission-store.service
bacaa5
# Co-own directory.
bacaa5
%{_userunitdir}/dbus.service.d
e76b95
e76b95
%files builder
e76b95
%{_bindir}/flatpak-builder
e76b95
%{_mandir}/man1/flatpak-builder.1*
e76b95
e76b95
%files devel
e76b95
%{_datadir}/gir-1.0/Flatpak-1.0.gir
e76b95
%{_datadir}/gtk-doc/
e76b95
%{_includedir}/%{name}/
e76b95
%{_libdir}/libflatpak.so
e76b95
%{_libdir}/pkgconfig/%{name}.pc
e76b95
e76b95
%files libs
e76b95
%license COPYING
e76b95
%{_libdir}/girepository-1.0/Flatpak-1.0.typelib
e76b95
%{_libdir}/libflatpak.so.*
e76b95
e76b95
e76b95
%changelog
4f0345
* Tue Feb 14 2017 Kalev Lember <klember@redhat.com> - 0.8.3-1
4f0345
- Update to 0.8.3
4f0345
e9ce08
* Fri Jan 27 2017 Kalev Lember <klember@redhat.com> - 0.8.2-1
e9ce08
- Update to 0.8.2
e9ce08
e3e5d0
* Wed Jan 18 2017 David King <amigadave@amigadave.com> - 0.8.1-1
e3e5d0
- Update to 0.8.1
e3e5d0
bee992
* Tue Dec 20 2016 Kalev Lember <klember@redhat.com> - 0.8.0-1
bee992
- Update to 0.8.0
bee992
ca0d04
* Tue Nov 29 2016 David King <amigadave@amigadave.com> - 0.6.14-2
ca0d04
- Add a patch to fix a GNOME Software crash
ca0d04
- Silence repository listing during post
ca0d04
eba9b5
* Tue Nov 29 2016 Kalev Lember <klember@redhat.com> - 0.6.14-1
eba9b5
- Update to 0.6.14
eba9b5
320710
* Wed Oct 26 2016 David King <amigadave@amigadave.com> - 0.6.13-2
320710
- Add empty /etc/flatpak/remotes.d
320710
f7fe43
* Tue Oct 25 2016 David King <amigadave@amigadave.com> - 0.6.13-1
f7fe43
- Update to 0.6.13
f7fe43
f80302
* Thu Oct 06 2016 David King <amigadave@amigadave.com> - 0.6.12-1
f80302
- Update to 0.6.12
f80302
1d9b99
* Tue Sep 20 2016 Kalev Lember <klember@redhat.com> - 0.6.11-1
1d9b99
- Update to 0.6.11
8d9bbc
- Set minimum ostree and bubblewrap versions
1d9b99
0adb8d
* Mon Sep 12 2016 David King <amigadave@amigadave.com> - 0.6.10-1
0adb8d
- Update to 0.6.10
0adb8d
8de75a
* Tue Sep 06 2016 David King <amigadave@amigadave.com> - 0.6.9-2
8de75a
- Look for bwrap in PATH
8de75a
2e2d70
* Thu Aug 25 2016 David King <amigadave@amigadave.com> - 0.6.9-1
2e2d70
- Update to 0.6.9
2e2d70
bacaa5
* Mon Aug 01 2016 David King <amigadave@amigadave.com> - 0.6.8-1
bacaa5
- Update to 0.6.8 (#1361823)
bacaa5
c93f99
* Thu Jul 21 2016 David King <amigadave@amigadave.com> - 0.6.7-2
c93f99
- Use system bubblewrap
c93f99
404ca0
* Fri Jul 01 2016 David King <amigadave@amigadave.com> - 0.6.7-1
404ca0
- Update to 0.6.7
404ca0
d1e229
* Thu Jun 23 2016 David King <amigadave@amigadave.com> - 0.6.6-1
d1e229
- Update to 0.6.6
d1e229
ece4e8
* Fri Jun 10 2016 David King <amigadave@amigadave.com> - 0.6.5-1
ece4e8
- Update to 0.6.5
ece4e8
a1c0d1
* Wed Jun 01 2016 David King <amigadave@amigadave.com> - 0.6.4-1
a1c0d1
- Update to 0.6.4
a1c0d1
f29396
* Tue May 31 2016 David King <amigadave@amigadave.com> - 0.6.3-1
f29396
- Update to 0.6.3
f29396
- Move bwrap to main package
f29396
e76b95
* Tue May 24 2016 David King <amigadave@amigadave.com> - 0.6.2-1
e76b95
- Rename from xdg-app to flatpak (#1337434)