]> git.pld-linux.org Git - packages/flatpak.git/blame - flatpak.spec
BR: bison
[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
163a25ac
JB
13Version: 1.14.6
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
163a25ac 19# Source0-md5: 9ac68b1521067c400b3be401e533d20e
7cdd4d08 20URL: https://flatpak.org/
2e1a973d 21BuildRequires: AppStream-devel >= 1.0
b5e6e5b8
JB
22BuildRequires: autoconf >= 2.63
23BuildRequires: automake >= 1:1.13.4
b2cd98b2 24BuildRequires: bison
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
65dc537e 38BuildRequires: gpgme-devel >= 1:1.8.0
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}
65dc537e 68%{?with_system_bwrap:Requires: bubblewrap >= 0.5.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
65dc537e 89Requires: gpgme >= 1:1.8.0
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
184
5b7fb02e
JB
185%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' scripts/flatpak-{bisect,coredumpctl}
186
c475cfdc 187%build
b5e6e5b8
JB
188%{__gtkdocize}
189%{__libtoolize}
190%{__aclocal} -I m4 -I subprojects/libglnx
191%{__autoconf}
192%{__autoheader}
193%{__automake}
c475cfdc 194%configure \
b5e6e5b8
JB
195 %{?with_apidocs:--enable-documentation} \
196 %{?with_apidocs:--enable-gtk-doc} \
c475cfdc 197 --disable-silent-rules \
eb0aa6f8 198 %{?with_selinux:--enable-selinux-module} \
c475cfdc
JB
199 %{?with_static_libs:--enable-static} \
200 --with-html-dir=%{_gtkdocdir} \
4ed91fd3 201 %{?with_system_bwrap:--with-system-bubblewrap} \
7cdd4d08 202 --with-system-dbus-proxy \
c475cfdc
JB
203 --with-systemdsystemunitdir=%{systemdunitdir}
204%{__make}
205
206%install
207rm -rf $RPM_BUILD_ROOT
208
209%{__make} install \
210 DESTDIR=$RPM_BUILD_ROOT
211
212# obsoleted by pkg-config
213%{__rm} $RPM_BUILD_ROOT%{_libdir}/libflatpak.la
214
6368b361
JB
215%find_lang %{name}
216
c475cfdc
JB
217%clean
218rm -rf $RPM_BUILD_ROOT
219
220%post libs -p /sbin/ldconfig
221%postun libs -p /sbin/ldconfig
222
6368b361 223%files -f %{name}.lang
c475cfdc 224%defattr(644,root,root,755)
b5e6e5b8 225%doc NEWS README.md
6368b361 226%doc %{_docdir}/flatpak
c475cfdc 227%attr(755,root,root) %{_bindir}/flatpak
cf55bdaf 228%attr(755,root,root) %{_bindir}/flatpak-bisect
7cdd4d08 229%attr(755,root,root) %{_bindir}/flatpak-coredumpctl
4ed91fd3 230%if %{without system_bwrap}
7cdd4d08 231%attr(755,root,root) %{_libexecdir}/flatpak-bwrap
4ed91fd3 232%endif
5b7fb02e 233%attr(755,root,root) %{_libexecdir}/flatpak-oci-authenticator
7cdd4d08
JB
234%attr(755,root,root) %{_libexecdir}/flatpak-portal
235%attr(755,root,root) %{_libexecdir}/flatpak-session-helper
236%attr(755,root,root) %{_libexecdir}/flatpak-system-helper
237%attr(755,root,root) %{_libexecdir}/flatpak-validate-icon
238%attr(755,root,root) %{_libexecdir}/revokefs-fuse
c475cfdc
JB
239%attr(755,root,root) /etc/profile.d/flatpak.sh
240/etc/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf
c475cfdc 241%{_datadir}/dbus-1/services/org.freedesktop.Flatpak.service
c475cfdc 242%{_datadir}/dbus-1/system-services/org.freedesktop.Flatpak.SystemHelper.service
5b7fb02e 243%{_datadir}/dbus-1/services/org.flatpak.Authenticator.Oci.service
7cdd4d08 244%{_datadir}/dbus-1/services/org.freedesktop.portal.Flatpak.service
c475cfdc
JB
245%{_datadir}/polkit-1/actions/org.freedesktop.Flatpak.policy
246%{_datadir}/polkit-1/rules.d/org.freedesktop.Flatpak.rules
247%{systemdunitdir}/flatpak-system-helper.service
5b7fb02e 248%{systemduserunitdir}/flatpak-oci-authenticator.service
7cdd4d08 249%{systemduserunitdir}/flatpak-portal.service
c475cfdc 250%{systemduserunitdir}/flatpak-session-helper.service
163a25ac
JB
251%attr(755,root,root) %{_prefix}/lib/systemd/system-environment-generators/60-flatpak-system-only
252%attr(755,root,root) %{_prefix}/lib/systemd/user-environment-generators/60-flatpak
2e1a973d
WF
253%{_prefix}/lib/sysusers.d/flatpak.conf
254%{systemdtmpfilesdir}/flatpak.conf
c475cfdc
JB
255%dir %{_datadir}/flatpak
256%dir %{_datadir}/flatpak/triggers
257%attr(755,root,root) %{_datadir}/flatpak/triggers/*.trigger
258%{_mandir}/man1/flatpak*.1*
0fc96681
JR
259%{_mandir}/man5/flatpak-flatpakref.5*
260%{_mandir}/man5/flatpak-flatpakrepo.5*
6368b361 261%{_mandir}/man5/flatpak-installation.5*
0fc96681 262%{_mandir}/man5/flatpak-metadata.5*
6368b361 263%{_mandir}/man5/flatpak-remote.5*
c475cfdc
JB
264
265%files libs
266%defattr(644,root,root,755)
267%attr(755,root,root) %{_libdir}/libflatpak.so.*.*.*
268%attr(755,root,root) %ghost %{_libdir}/libflatpak.so.0
269%{_libdir}/girepository-1.0/Flatpak-1.0.typelib
c61e716a 270%{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.xml
5b7fb02e 271%{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.Authenticator.xml
7cdd4d08 272%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.Flatpak.xml
c475cfdc
JB
273
274%files devel
275%defattr(644,root,root,755)
276%attr(755,root,root) %{_libdir}/libflatpak.so
277%{_includedir}/flatpak
278%{_datadir}/gir-1.0/Flatpak-1.0.gir
279%{_pkgconfigdir}/flatpak.pc
280
281%if %{with static_libs}
282%files static
283%defattr(644,root,root,755)
284%{_libdir}/libflatpak.a
285%endif
286
b5e6e5b8 287%if %{with apidocs}
c475cfdc
JB
288%files apidocs
289%defattr(644,root,root,755)
b5e6e5b8
JB
290%{_gtkdocdir}/flatpak
291%endif
c475cfdc
JB
292
293%files -n bash-completion-flatpak
294%defattr(644,root,root,755)
295%{bash_compdir}/flatpak
7cdd4d08 296
5b7fb02e
JB
297%files -n fish-completion-flatpak
298%defattr(644,root,root,755)
299%{fish_compdir}
b5e6e5b8 300%{_datadir}/fish/vendor_conf.d/flatpak.fish
a9843505 301
7cdd4d08
JB
302%files -n zsh-completion-flatpak
303%defattr(644,root,root,755)
304%{zsh_compdir}/_flatpak
This page took 0.332534 seconds and 4 git commands to generate.