]> git.pld-linux.org Git - packages/flatpak.git/blame - flatpak.spec
- updated dependencies, added libsoup bcond (package now defaults to curl)
[packages/flatpak.git] / flatpak.spec
CommitLineData
c475cfdc
JB
1#
2# Conditional build:
b5e6e5b8 3%bcond_without apidocs # API documentation
c475cfdc 4%bcond_without static_libs # static library
9b6b7039 5%bcond_with libsoup # libsoup instead of curl
eb0aa6f8 6%bcond_with selinux # selinux module for system-helper
4ed91fd3 7%bcond_without system_bwrap # system bubblewrap
5b7fb02e 8%bcond_without malcontent # parental control support via libmalcontent
c475cfdc
JB
9
10Summary: Application deployment framework for desktop apps
11Summary(pl.UTF-8): Szkielet do wdrażania aplikacji desktopowych
12Name: flatpak
17b9f5b2 13Version: 1.14.0
6368b361 14Release: 1
c475cfdc
JB
15License: LGPL v2+
16Group: Applications
6368b361 17#Source0Download: https://github.com/flatpak/flatpak/releases/
5cb2411f 18Source0: https://github.com/flatpak/flatpak/releases/download/%{version}/%{name}-%{version}.tar.xz
17b9f5b2 19# Source0-md5: 5e67b00ea06a45289718307d03a704a5
b5e6e5b8 20Patch0: %{name}-missing.patch
7cdd4d08 21URL: https://flatpak.org/
17b9f5b2 22BuildRequires: AppStream-devel >= 0.14.0
b5e6e5b8
JB
23BuildRequires: autoconf >= 2.63
24BuildRequires: automake >= 1:1.13.4
9b6b7039
JB
25%{?with_system_bwrap:BuildRequires: bubblewrap >= 0.5.0}
26%{!?with_libsoup:BuildRequires: curl-devel >= 7.29.0}
7cdd4d08 27BuildRequires: dconf-devel >= 0.26
b5e6e5b8 28%if %{with apidocs}
a9843505 29BuildRequires: docbook-dtd45-xml
5b7fb02e 30BuildRequires: docbook-style-xsl-nons
b5e6e5b8 31%endif
c475cfdc
JB
32# or libelf >= 0.8.12
33BuildRequires: elfutils-devel
7cdd4d08 34BuildRequires: gdk-pixbuf2-devel >= 2.0
4ed91fd3 35BuildRequires: gettext-tools >= 0.18.2
7cdd4d08 36BuildRequires: glib2-devel >= 1:2.60
c475cfdc 37BuildRequires: gobject-introspection-devel >= 1.40.0
7cdd4d08 38BuildRequires: gpgme-devel >= 1:1.1.8
c475cfdc
JB
39BuildRequires: gtk-doc >= 1.20
40BuildRequires: intltool >= 0.35.0
41BuildRequires: json-glib-devel >= 1.0
42BuildRequires: libarchive-devel >= 2.8.0
5b7fb02e 43BuildRequires: libcap-devel
9b6b7039 44BuildRequires: libfuse3-devel >= 3.1.1
5b7fb02e 45%{?with_malcontent:BuildRequires: libmalcontent-devel >= 0.4.0}
c475cfdc 46BuildRequires: libseccomp-devel
9b6b7039 47%{?with_libsoup:BuildRequires: libsoup-devel >= 2.4}
b5e6e5b8 48BuildRequires: libtool >= 2:2.2.6
7cdd4d08 49BuildRequires: libxml2-devel >= 2.4
b5e6e5b8 50%{?with_apidocs:BuildRequires: libxslt-progs}
a9843505 51BuildRequires: ostree-devel >= 2020.8
c475cfdc
JB
52BuildRequires: pkgconfig >= 1:0.24
53BuildRequires: polkit-devel >= 0.98
a9843505 54BuildRequires: rpm-build >= 4.6
5b7fb02e
JB
55BuildRequires: rpmbuild(macros) >= 1.720
56BuildRequires: sed >= 4.0
eb0aa6f8
JB
57# /usr/share/selinux/devel/Makefile
58%{?with_selinux:BuildRequires: selinux-policy-devel}
7cdd4d08 59BuildRequires: systemd-devel
c475cfdc 60BuildRequires: tar >= 1:1.22
7cdd4d08 61BuildRequires: xdg-dbus-proxy >= 0.1.0
5b7fb02e 62BuildRequires: xmlto
c475cfdc
JB
63BuildRequires: xorg-lib-libXau-devel
64BuildRequires: xz
eb0aa6f8 65BuildRequires: zstd-devel >= 0.8.1
5b7fb02e
JB
66# no switch to disable
67%{!?with_malcontent:BuildConflicts: libmalcontent-devel}
5b7fb02e 68%{?with_system_bwrap:Requires: bubblewrap >= 0.4.0}
9b6b7039 69Requires: libfuse3 >= 3.1.1
a9843505 70Requires: ostree >= 2020.8
7cdd4d08
JB
71Requires: polkit >= 0.98
72Requires: xdg-dbus-proxy >= 0.1.0
c475cfdc
JB
73Obsoletes: xdg-app < 0.6.0
74BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
75
76%description
77Application deployment framework for desktop apps.
78
79%description -l pl.UTF-8
80Szkielet do wdrażania aplikacji desktopowych.
81
82%package libs
83Summary: Shared flatpak library
84Summary(pl.UTF-8): Biblioteka współdzielona flatpak
85Group: Libraries
9b6b7039 86%{!?with_libsoup:Requires: curl-libs >= 7.29.0}
7cdd4d08
JB
87Requires: dconf >= 0.26
88Requires: glib2 >= 1:2.60
89Requires: gpgme >= 1:1.1.8
5b7fb02e 90%{?with_malcontent:Requires: libmalcontent >= 0.4.0}
7cdd4d08 91Requires: libxml2 >= 2.4
a9843505 92Requires: ostree >= 2020.8
eb0aa6f8 93Requires: zstd >= 0.8.1
c475cfdc
JB
94
95%description libs
96Shared flatpak library.
97
98%description libs -l pl.UTF-8
99Biblioteka współdzielona flatpak.
100
101%package devel
102Summary: Header files for flatpak library
103Summary(pl.UTF-8): Pliki nagłówkowe biblioteki flatpak
104Group: Development/Libraries
105Requires: %{name}-libs = %{version}-%{release}
7cdd4d08 106Requires: glib2-devel >= 1:2.60
a9843505 107Requires: ostree-devel >= 2020.8
c475cfdc
JB
108
109%description devel
110Header files for flatpak library.
111
112%description devel -l pl.UTF-8
113Pliki nagłówkowe biblioteki flatpak.
114
115%package static
116Summary: Static flatpak library
117Summary(pl.UTF-8): Biblioteka statyczna flatpak
118Group: Development/Libraries
119Requires: %{name}-devel = %{version}-%{release}
120
121%description static
122Static flatpak library.
123
124%description static -l pl.UTF-8
125Biblioteka statyczna flatpak.
126
127%package apidocs
128Summary: API documentation for flatpak library
129Summary(pl.UTF-8): Dokumentacja API biblioteki flatpak
130Group: Documentation
c475cfdc 131BuildArch: noarch
c475cfdc
JB
132
133%description apidocs
134API documentation for flatpak library.
135
136%description apidocs -l pl.UTF-8
137Dokumentacja API biblioteki flatpak.
138
139%package -n bash-completion-flatpak
140Summary: Bash completion for flatpak command
141Summary(pl.UTF-8): Bashowe uzupełnianie parametrów polecenia flatpak
142Group: Applications/Shells
143Requires: %{name} = %{version}-%{release}
144Requires: bash-completion >= 2
145Obsoletes: bash-completion-xdg-app < 0.6.0
a9843505 146BuildArch: noarch
c475cfdc
JB
147
148%description -n bash-completion-flatpak
149Bash completion for flatpak command.
150
151%description -n bash-completion-flatpak -l pl.UTF-8
152Bashowe uzupełnianie parametrów polecenia flatpak.
153
5b7fb02e
JB
154%package -n fish-completion-flatpak
155Summary: Fish completion for flatpak commands
156Summary(pl.UTF-8): Dopełnianie składni poleceń flatpak w fish
157Group: Applications/Shells
158Requires: %{name} = %{version}-%{release}
159Requires: fish
a9843505 160BuildArch: noarch
5b7fb02e
JB
161
162%description -n fish-completion-flatpak
163Fish completion for flatpak commands.
164
165%description -n fish-completion-flatpak -l pl.UTF-8
166Dopełnianie składni poleceń flatpak w fish.
167
7cdd4d08
JB
168%package -n zsh-completion-flatpak
169Summary: ZSH completion for flatpak command
170Summary(pl.UTF-8): Uzupełnianie parametrów polecenia flatpak w powłoce ZSH
171Group: Applications/Shells
172Requires: %{name} = %{version}-%{release}
173Requires: zsh
a9843505 174BuildArch: noarch
7cdd4d08
JB
175
176%description -n zsh-completion-flatpak
177ZSH completion for flatpak command.
178
179%description -n zsh-completion-flatpak -l pl.UTF-8
180Uzupełnianie parametrów polecenia flatpak w powłoce ZSH.
181
c475cfdc
JB
182%prep
183%setup -q
b5e6e5b8 184%patch0 -p1
c475cfdc 185
5b7fb02e
JB
186%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' scripts/flatpak-{bisect,coredumpctl}
187
c475cfdc 188%build
b5e6e5b8
JB
189%{__gtkdocize}
190%{__libtoolize}
191%{__aclocal} -I m4 -I subprojects/libglnx
192%{__autoconf}
193%{__autoheader}
194%{__automake}
c475cfdc 195%configure \
b5e6e5b8
JB
196 %{?with_apidocs:--enable-documentation} \
197 %{?with_apidocs:--enable-gtk-doc} \
c475cfdc 198 --disable-silent-rules \
eb0aa6f8 199 %{?with_selinux:--enable-selinux-module} \
c475cfdc
JB
200 %{?with_static_libs:--enable-static} \
201 --with-html-dir=%{_gtkdocdir} \
4ed91fd3 202 %{?with_system_bwrap:--with-system-bubblewrap} \
7cdd4d08 203 --with-system-dbus-proxy \
c475cfdc
JB
204 --with-systemdsystemunitdir=%{systemdunitdir}
205%{__make}
206
207%install
208rm -rf $RPM_BUILD_ROOT
209
210%{__make} install \
211 DESTDIR=$RPM_BUILD_ROOT
212
213# obsoleted by pkg-config
214%{__rm} $RPM_BUILD_ROOT%{_libdir}/libflatpak.la
215
6368b361
JB
216%find_lang %{name}
217
c475cfdc
JB
218%clean
219rm -rf $RPM_BUILD_ROOT
220
221%post libs -p /sbin/ldconfig
222%postun libs -p /sbin/ldconfig
223
6368b361 224%files -f %{name}.lang
c475cfdc 225%defattr(644,root,root,755)
b5e6e5b8 226%doc NEWS README.md
6368b361 227%doc %{_docdir}/flatpak
c475cfdc 228%attr(755,root,root) %{_bindir}/flatpak
cf55bdaf 229%attr(755,root,root) %{_bindir}/flatpak-bisect
7cdd4d08 230%attr(755,root,root) %{_bindir}/flatpak-coredumpctl
4ed91fd3 231%if %{without system_bwrap}
7cdd4d08 232%attr(755,root,root) %{_libexecdir}/flatpak-bwrap
4ed91fd3 233%endif
5b7fb02e 234%attr(755,root,root) %{_libexecdir}/flatpak-oci-authenticator
7cdd4d08
JB
235%attr(755,root,root) %{_libexecdir}/flatpak-portal
236%attr(755,root,root) %{_libexecdir}/flatpak-session-helper
237%attr(755,root,root) %{_libexecdir}/flatpak-system-helper
238%attr(755,root,root) %{_libexecdir}/flatpak-validate-icon
239%attr(755,root,root) %{_libexecdir}/revokefs-fuse
c475cfdc
JB
240%attr(755,root,root) /etc/profile.d/flatpak.sh
241/etc/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf
c475cfdc 242%{_datadir}/dbus-1/services/org.freedesktop.Flatpak.service
c475cfdc 243%{_datadir}/dbus-1/system-services/org.freedesktop.Flatpak.SystemHelper.service
5b7fb02e 244%{_datadir}/dbus-1/services/org.flatpak.Authenticator.Oci.service
7cdd4d08 245%{_datadir}/dbus-1/services/org.freedesktop.portal.Flatpak.service
c475cfdc
JB
246%{_datadir}/polkit-1/actions/org.freedesktop.Flatpak.policy
247%{_datadir}/polkit-1/rules.d/org.freedesktop.Flatpak.rules
248%{systemdunitdir}/flatpak-system-helper.service
5b7fb02e 249%{systemduserunitdir}/flatpak-oci-authenticator.service
7cdd4d08 250%{systemduserunitdir}/flatpak-portal.service
c475cfdc 251%{systemduserunitdir}/flatpak-session-helper.service
a9843505 252%attr(755,root,root) /usr/lib/systemd/system-environment-generators/60-flatpak-system-only
7cdd4d08 253%attr(755,root,root) /usr/lib/systemd/user-environment-generators/60-flatpak
eb0aa6f8
JB
254# what handles this?
255#/usr/lib/sysusers.d/flatpak.conf
c475cfdc
JB
256%dir %{_datadir}/flatpak
257%dir %{_datadir}/flatpak/triggers
258%attr(755,root,root) %{_datadir}/flatpak/triggers/*.trigger
259%{_mandir}/man1/flatpak*.1*
0fc96681
JR
260%{_mandir}/man5/flatpak-flatpakref.5*
261%{_mandir}/man5/flatpak-flatpakrepo.5*
6368b361 262%{_mandir}/man5/flatpak-installation.5*
0fc96681 263%{_mandir}/man5/flatpak-metadata.5*
6368b361 264%{_mandir}/man5/flatpak-remote.5*
c475cfdc
JB
265
266%files libs
267%defattr(644,root,root,755)
268%attr(755,root,root) %{_libdir}/libflatpak.so.*.*.*
269%attr(755,root,root) %ghost %{_libdir}/libflatpak.so.0
270%{_libdir}/girepository-1.0/Flatpak-1.0.typelib
c61e716a 271%{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.xml
5b7fb02e 272%{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.Authenticator.xml
7cdd4d08 273%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.Flatpak.xml
c475cfdc
JB
274
275%files devel
276%defattr(644,root,root,755)
277%attr(755,root,root) %{_libdir}/libflatpak.so
278%{_includedir}/flatpak
279%{_datadir}/gir-1.0/Flatpak-1.0.gir
280%{_pkgconfigdir}/flatpak.pc
281
282%if %{with static_libs}
283%files static
284%defattr(644,root,root,755)
285%{_libdir}/libflatpak.a
286%endif
287
b5e6e5b8 288%if %{with apidocs}
c475cfdc
JB
289%files apidocs
290%defattr(644,root,root,755)
b5e6e5b8
JB
291%{_gtkdocdir}/flatpak
292%endif
c475cfdc
JB
293
294%files -n bash-completion-flatpak
295%defattr(644,root,root,755)
296%{bash_compdir}/flatpak
7cdd4d08 297
5b7fb02e
JB
298%files -n fish-completion-flatpak
299%defattr(644,root,root,755)
300%{fish_compdir}
b5e6e5b8 301%{_datadir}/fish/vendor_conf.d/flatpak.fish
a9843505 302
7cdd4d08
JB
303%files -n zsh-completion-flatpak
304%defattr(644,root,root,755)
305%{zsh_compdir}/_flatpak
This page took 1.848473 seconds and 4 git commands to generate.