Blame SPECS/flatpak-rpm-macros.spec

641778
Name:           flatpak-rpm-macros
641778
Version:        34
641778
Release:        1%{?dist}
641778
Summary:        Macros for building RPMS for flatpaks
641778
Source0:        macros.flatpak
641778
Source1:        distutils.cfg
641778
Source2:        flatpak.xml
641778
Source3:        fontconfig-flatpak.prov
641778
License:        MIT
641778
641778
# Buildrequire these to satisfy Pyton byte-compilation hooks
641778
BuildRequires:  python3
641778
641778
%description
641778
The macros in this package set up the RPM build environment so built
641778
applications install in /app rather than /usr. This package is meant
641778
only for installation in buildroots for modules that will be packaged
641778
as Flatpaks.
641778
641778
%prep
641778
641778
%build
641778
641778
%install
641778
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
641778
install -t $RPM_BUILD_ROOT%{_sysconfdir}/rpm -p -m 644 %{SOURCE0}
641778
for v in 3.9 ; do
641778
    mkdir -p $RPM_BUILD_ROOT%{_libdir}/python$v/distutils/
641778
    install -t $RPM_BUILD_ROOT%{_libdir}/python$v/distutils/ %{SOURCE1}
641778
done
641778
mkdir -p $RPM_BUILD_ROOT%{_datadir}/xmvn/config.d
641778
install -t $RPM_BUILD_ROOT%{_datadir}/xmvn/config.d -m 644 %{SOURCE2}
641778
mkdir -p $RPM_BUILD_ROOT%{_rpmconfigdir}
641778
install -t $RPM_BUILD_ROOT%{_rpmconfigdir} -m 755 %{SOURCE3}
641778
641778
%files
641778
# The location in sysconfdir contradicts
641778
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_of_Additional_RPM_Macros
641778
# but I believe is necessary to properly override macros that are otherwise set.
641778
%{_sysconfdir}/rpm/
641778
%{_libdir}/python*/distutils/distutils.cfg
641778
%{_datadir}/xmvn/config.d/flatpak.xml
641778
%{_rpmconfigdir}/fontconfig-flatpak.prov
641778
641778
%changelog
641778
* Tue Jun 29 2021 Kalev Lember <klember@redhat.com> - 34-1
641778
- Override RPM's fontconfig auto-provide to handle /app/share/fonts
641778
641778
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 33-3
641778
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
641778
641778
* Sat Sep 19 2020 Kalev Lember <klember@redhat.com> - 33-2
641778
- Redefine __python2 macro to point to /app/bin/python2
641778
641778
* Mon Sep 14 2020 Kalev Lember <klember@redhat.com> - 33-1
641778
- Update %%python_sitearch for python-3.9
641778
641778
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 32-4
641778
- Second attempt - Rebuilt for
641778
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
641778
641778
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 32-3
641778
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
641778
641778
* Wed Mar 18 2020 Kalev Lember <klember@redhat.com> - 32-2
641778
- Remove Python 2 support (#1805232)
641778
641778
* Wed Mar 18 2020 Stephan Bergmann <sbergman@redhat.com> - 32-1
641778
- Let xmvn_install store artifacts under /app
641778
641778
* Thu Feb 06 2020 David King <amigadave@amigadave.com> - 29-12
641778
- Update %%python_sitearch for python-3.8 (#1799346)
641778
641778
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 29-11
641778
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
641778
641778
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 29-10
641778
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
641778
641778
* Thu Jun 20 2019 Kalev Lember <klember@redhat.com> - 29-9
641778
- Use optflags, rather than __global_compiler_flags
641778
641778
* Thu Apr 04 2019 Stephan Bergmann <sbergman@redhat.com> - 29-8
641778
- Add CFLAGS and CXXFLAGS to macros.flatpak, to match LDFLAGS
641778
641778
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 29-7
641778
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
641778
641778
* Thu Sep 27 2018 Owen Taylor <otaylor@redhat.com> - 29-6
641778
- Fix accidentally not installing the macro file
641778
641778
* Thu Sep 27 2018 Owen Taylor <otaylor@redhat.com> - 29-5
641778
- Install a distutils.cfg to redirect installation of Python packages to /app
641778
  this makes the package no longer noarch because the file is in
641778
  /usr/lib or /usr/lib64.
641778
641778
* Tue Sep 25 2018 Owen Taylor <otaylor@redhat.com> - 29-4
641778
- Remove space in -L <libdir>
641778
641778
* Thu Sep 20 2018 Owen Taylor <otaylor@redhat.com> - 29-3
641778
- Extend set of overriden Python macros
641778
641778
* Wed Sep 19 2018 Owen Taylor <otaylor@redhat.com> - 29-2
641778
- Improve LDFLAGS flags handling in macros.flatpak
641778
641778
* Sat Sep  8 2018 Owen Taylor <otaylor@redhat.com> - 29-1
641778
- Instead of defining %%app to true, define %%flatpak to 1
641778
- Update %%python_sitearch for python-3.7
641778
641778
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 27-6
641778
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
641778
641778
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 27-5
641778
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
641778
641778
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 27-4
641778
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
641778
641778
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 27-3
641778
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
641778
641778
* Tue Jun 13 2017 Owen Taylor <otaylor@redhat.com> - 27-2
641778
See https://bugzilla.redhat.com/show_bug.cgi?id=1460076
641778
- Wrap description lines
641778
- Own /etc/rpm, to avoid requiring rpm package
641778
- Preserve timestamp on installation
641778
641778
* Wed May 31 2017 Owen Taylor <otaylor@redhat.com> - 27-1
641778
- Initial version, based on work by Alex Larsson <alexl@redhat.com>