flatpak/flatpak.spec

254 lines
8.4 KiB
RPMSpec

Name: flatpak
Version: 1.12.5
Release: 1mamba
Summary: Linux application sandboxing and distribution framework
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://flatpak.org
Source: https://github.com/flatpak/flatpak.git/%{version}/flatpak-%{version}.tar.bz2
Source1: https://dl.flathub.org/repo/flathub.flatpakrepo
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libXau-devel
BuildRequires: libacl-devel
BuildRequires: libappstream-glib-devel
BuildRequires: libarchive-devel
BuildRequires: libassuan-devel
BuildRequires: libattr-devel
BuildRequires: libavahi-devel
BuildRequires: libavahi-glib-devel
BuildRequires: libb2-devel
BuildRequires: libblkid-devel
BuildRequires: libbzip2-devel
BuildRequires: libcap-devel
BuildRequires: libdbus-devel
BuildRequires: libdconf-devel
BuildRequires: libexpat-devel
BuildRequires: libfuse-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgomp-devel
BuildRequires: libgpg-error-devel
BuildRequires: libgpgme-devel
BuildRequires: libjson-glib-devel
BuildRequires: liblz4-devel
BuildRequires: liblzma-devel
BuildRequires: liblzo-devel
BuildRequires: libmount-devel
BuildRequires: libnettle-devel
BuildRequires: libopenssl-devel
BuildRequires: libostree-devel
BuildRequires: libpolkit-devel
BuildRequires: libseccomp-devel
BuildRequires: libselinux-devel
BuildRequires: libsoup2-devel
BuildRequires: libssp-devel
BuildRequires: libsystemd-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
BuildRequires: libzstd-devel
## AUTOBUILDREQ-END
BuildRequires: librpm-devel >= 4.16.1.2
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: xdg-desktop-portal
%description
Linux application sandboxing and distribution framework.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
--with-dbus-config-dir=%{_datadir}/dbus-1/system.d \
--with-systemdsystemunitdir=%{_unitdir}
# TODO:
# --with-system-bubblewrap \
# --with-system-dbus-proxy \
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/flatpak/remotes.d/flathub.flatpakrepo
install -d -m0755 %{buildroot}%{_sysconfdir}/profile.d
cat > %{buildroot}%{_sysconfdir}/profile.d/flatpak-bindir.sh << _EOF
export PATH=\$PATH:/var/lib/flatpak/exports/bin
_EOF
%find_lang %{name} || touch %{name}.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/profile.d/flatpak-bindir.sh
%dir %{_sysconfdir}/flatpak
%dir %{_sysconfdir}/flatpak/remotes.d
%{_sysconfdir}/flatpak/remotes.d/flathub.flatpakrepo
%{_sysconfdir}/profile.d/flatpak.sh
%{_bindir}/flatpak
%{_bindir}/flatpak-bisect
%{_bindir}/flatpak-coredumpctl
%{_unitdir}/flatpak-system-helper.service
%{_systemd_user_env_generator_dir}/60-flatpak
%{_systemd_system_env_generator_dir}/60-flatpak-system-only
%{_userunitdir}/flatpak-portal.service
%{_userunitdir}/flatpak-session-helper.service
%{_userunitdir}/flatpak-oci-authenticator.service
%{_sysusersdir}/flatpak.conf
%{_datadir}/bash-completion/completions/flatpak
%{_datadir}/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf
%{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.Flatpak.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.Authenticator.xml
%{_datadir}/dbus-1/services/org.freedesktop.Flatpak.service
%{_datadir}/dbus-1/services/org.freedesktop.portal.Flatpak.service
%{_datadir}/dbus-1/services/org.flatpak.Authenticator.Oci.service
%{_datadir}/dbus-1/system-services/org.freedesktop.Flatpak.SystemHelper.service
%{_datadir}/fish/vendor_completions.d/flatpak.fish
%dir %{_datadir}/doc/flatpak
%{_datadir}/doc/flatpak/*
%dir %{_datadir}/flatpak
%dir %{_datadir}/flatpak/triggers
%{_datadir}/flatpak/triggers/*.trigger
%{_mandir}/man1/flatpak*.1*
%{_mandir}/man5/flatpak-*.5*
%{_datadir}/polkit-1/actions/org.freedesktop.Flatpak.policy
%{_datadir}/polkit-1/rules.d/org.freedesktop.Flatpak.rules
%{_datadir}/zsh/site-functions/_flatpak
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libflatpak.so.*
%{_libdir}/girepository-1.0/Flatpak-1.0.typelib
%{_libexecdir}/flatpak-*
%{_libexecdir}/revokefs-fuse
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/flatpak
%{_includedir}/flatpak/flatpak*.h
%{_libdir}/libflatpak.la
%{_libdir}/libflatpak.so
%{_libdir}/pkgconfig/flatpak.pc
%{_datadir}/gir-1.0/Flatpak-1.0.gir
%doc NEWS README.md
%changelog
* Sat Feb 12 2022 Automatic Build System <autodist@mambasoft.it> 1.12.5-1mamba
- automatic version update by autodist
* Mon Jan 24 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.12.4-2mamba
- require xdg-desktop-portal
* Wed Jan 19 2022 Automatic Build System <autodist@mambasoft.it> 1.12.4-1mamba
- automatic version update by autodist
* Thu Jan 13 2022 Automatic Build System <autodist@mambasoft.it> 1.12.3-1mamba
- automatic version update by autodist
* Sun Nov 14 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.12.2-2mamba
- add flatpak export bindir to PATH; add default flathub repo in global configuration
* Thu Oct 14 2021 Automatic Build System <autodist@mambasoft.it> 1.12.2-1mamba
- automatic version update by autodist
* Sun Oct 10 2021 Automatic Build System <autodist@mambasoft.it> 1.12.1-1mamba
- automatic version update by autodist
* Wed Sep 01 2021 Automatic Build System <autodist@mambasoft.it> 1.10.3-1mamba
- automatic version update by autodist
* Wed Mar 10 2021 Automatic Build System <autodist@mambasoft.it> 1.10.2-1mamba
- automatic version update by autodist
* Sun Mar 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.10.1-2mamba
- rebuilt with rpm 4.16.1.2
* Thu Jan 21 2021 Automatic Build System <autodist@mambasoft.it> 1.10.1-1mamba
- automatic version update by autodist
* Fri Jan 15 2021 Automatic Build System <autodist@mambasoft.it> 1.10.0-1mamba
- automatic version update by autodist
* Sat Dec 19 2020 Automatic Build System <autodist@mambasoft.it> 1.9.2-1mamba
- automatic version update by autodist
* Wed Nov 18 2020 Automatic Build System <autodist@mambasoft.it> 1.8.3-1mamba
- automatic version update by autodist
* Fri Aug 21 2020 Automatic Build System <autodist@mambasoft.it> 1.8.2-1mamba
- automatic version update by autodist
* Fri Jul 03 2020 Automatic Build System <autodist@mambasoft.it> 1.8.1-1mamba
- automatic version update by autodist
* Fri Jun 26 2020 Automatic Build System <autodist@mambasoft.it> 1.8.0-1mamba
- automatic version update by autodist
* Fri Jun 12 2020 Automatic Build System <autodist@mambasoft.it> 1.7.3-1mamba
- automatic version update by autodist
* Thu Apr 09 2020 Automatic Build System <autodist@mambasoft.it> 1.7.2-1mamba
- automatic version update by autodist
* Tue Mar 31 2020 Automatic Build System <autodist@mambasoft.it> 1.6.3-1mamba
- automatic version update by autodist
* Thu Feb 13 2020 Automatic Build System <autodist@mambasoft.it> 1.6.2-1mamba
- automatic version update by autodist
* Thu Jan 23 2020 Automatic Build System <autodist@mambasoft.it> 1.6.1-1mamba
- automatic version update by autodist
* Mon Dec 23 2019 Automatic Build System <autodist@mambasoft.it> 1.6.0-1mamba
- automatic version update by autodist
* Sun Dec 01 2019 Automatic Build System <autodist@mambasoft.it> 1.5.1-1mamba
- automatic version update by autodist
* Thu Oct 03 2019 Automatic Build System <autodist@mambasoft.it> 1.5.0-1mamba
- automatic version update by autodist
* Thu Sep 19 2019 Automatic Build System <autodist@mambasoft.it> 1.4.3-1mamba
- automatic version update by autodist
* Sat Jul 27 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-1mamba
- package created using the webbuild interface