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