Blame flatpak-rpm-macros.spec

Owen W. Taylor 1442e46
Name:           flatpak-rpm-macros
bb385ba
Version:        39
c2c76c8
Release:        4%{?dist}
Owen W. Taylor 1442e46
Summary:        Macros for building RPMS for flatpaks
8138b45
Source0:        macros.flatpak.in
Owen W. Taylor 4e74f0d
Source1:        distutils.cfg
5b4d675
Source2:        flatpak.xml
Owen W. Taylor dc918fb
Source3:        fontconfig-flatpak.prov
Owen W. Taylor 1442e46
License:        MIT
Owen W. Taylor 1442e46
Owen W. Taylor 2aef994
# Buildrequire these to satisfy Pyton byte-compilation hooks
Owen W. Taylor 2aef994
BuildRequires:  python3
Owen W. Taylor 2aef994
Owen W. Taylor 1442e46
%description
Owen W. Taylor 1442e46
The macros in this package set up the RPM build environment so built
Owen W. Taylor 1442e46
applications install in /app rather than /usr. This package is meant
Owen W. Taylor 23da1c1
only for installation in buildroots when rebuilding RPMS to package
Owen W. Taylor 23da1c1
in Flatpaks.
Owen W. Taylor 1442e46
Owen W. Taylor 1442e46
%prep
Owen W. Taylor 1442e46
Owen W. Taylor 1442e46
%build
8138b45
sed -e 's|__LIB__|%{_lib}|g' \
8138b45
    %{SOURCE0} > macros.flatpak
Owen W. Taylor 1442e46
Owen W. Taylor 1442e46
%install
Owen W. Taylor 1442e46
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
8138b45
install -t $RPM_BUILD_ROOT%{_sysconfdir}/rpm -p -m 644 macros.flatpak
bb385ba
for v in 3.12 ; do
Owen W. Taylor 4e74f0d
    mkdir -p $RPM_BUILD_ROOT%{_libdir}/python$v/distutils/
Owen W. Taylor 4e74f0d
    install -t $RPM_BUILD_ROOT%{_libdir}/python$v/distutils/ %{SOURCE1}
Owen W. Taylor 4e74f0d
done
5b4d675
mkdir -p $RPM_BUILD_ROOT%{_datadir}/xmvn/config.d
5b4d675
install -t $RPM_BUILD_ROOT%{_datadir}/xmvn/config.d -m 644 %{SOURCE2}
Owen W. Taylor dc918fb
mkdir -p $RPM_BUILD_ROOT%{_rpmconfigdir}
Owen W. Taylor dc918fb
install -t $RPM_BUILD_ROOT%{_rpmconfigdir} -m 755 %{SOURCE3}
Owen W. Taylor 1442e46
Owen W. Taylor 1442e46
%files
Owen W. Taylor 1442e46
# The location in sysconfdir contradicts
Owen W. Taylor 1442e46
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_of_Additional_RPM_Macros
Owen W. Taylor 1442e46
# but I believe is necessary to properly override macros that are otherwise set.
Owen W. Taylor 1442e46
%{_sysconfdir}/rpm/
Owen W. Taylor 4e74f0d
%{_libdir}/python*/distutils/distutils.cfg
5b4d675
%{_datadir}/xmvn/config.d/flatpak.xml
Owen W. Taylor dc918fb
%{_rpmconfigdir}/fontconfig-flatpak.prov
Owen W. Taylor 1442e46
Owen W. Taylor 1442e46
%changelog
c2c76c8
* Mon Aug 28 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 39-4
a8e82d4
- Define %%_localstatedir and %%__git
f2e2810
Owen W. Taylor f1d463a
* Tue Aug 22 2023 Owen Taylor <otaylor@redhat.com> - 39-3
Owen W. Taylor f1d463a
- Fix %%dist tag to be consistent with fedora-release
Owen W. Taylor f1d463a
Owen W. Taylor 5588da7
* Mon Aug 7 2023 Owen Taylor <otaylor@redhat.com> - 39-2
Owen W. Taylor 5588da7
- Bump release for rebuild
Owen W. Taylor 5588da7
Owen W. Taylor 23da1c1
* Mon Aug 7 2023 Owen Taylor <otaylor@redhat.com> - 39-1
Owen W. Taylor 23da1c1
- Set %%dist to f%%{fedora}app - this is for building without modules
Owen W. Taylor 23da1c1
bb385ba
* Fri Aug 04 2023 Kalev Lember <klember@redhat.com> - 39-1
bb385ba
- Update %%python_sitearch for python-3.12 (rhbz#2225806)
237fc13
- Fix brp-compress search path to correctly compress man pages in /app
bb385ba
c2cae9b
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 37-6
c2cae9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
c2cae9b
dfdc254
* Wed Jan 25 2023 Kalev Lember <klember@redhat.com> - 37-5
dfdc254
- Redefine __perl macro as /usr/bin/perl
dfdc254
bdd6789
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 37-4
bdd6789
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
bdd6789
8138b45
* Tue Sep 06 2022 Kalev Lember <klember@redhat.com> - 37-3
8138b45
- Fix host search paths for noarch builds
8138b45
d9e59f4
* Tue Aug 23 2022 Kalev Lember <klember@redhat.com> - 37-2
d9e59f4
- Sync build_ldflags with redhat-rpm-config
3303ae5
- Drop python3_sitelib/sitearch overrides
587c330
- Override _fontbasedir to honor /app prefix
d9e59f4
5eac9c4
* Tue Aug 02 2022 Kalev Lember <klember@redhat.com> - 37-1
5eac9c4
- Update %%python_sitearch for python-3.11 (#2113228)
5eac9c4
59a0ab1
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 35-5
59a0ab1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
59a0ab1
e19466d
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 35-4
e19466d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
e19466d
9a252d9
* Mon Oct 04 2021 Kalev Lember <klember@redhat.com> - 35-3
9a252d9
- Disable rpath checks as they don't work right for non-/usr prefix
9a252d9
c0b3f79
* Fri Oct 01 2021 Kalev Lember <klember@redhat.com> - 35-2
c0b3f79
- Sync ___build_pre section with macros from rpm 4.17.0
c0b3f79
4b1cfbb
* Mon Aug 23 2021 Kalev Lember <klember@redhat.com> - 35-1
4b1cfbb
- Update %%python_sitearch for python-3.10 (#1987478)
4b1cfbb
aa84bc0
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 34-2
aa84bc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
aa84bc0
Owen W. Taylor dc918fb
* Tue Jun 29 2021 Kalev Lember <klember@redhat.com> - 34-1
Owen W. Taylor dc918fb
- Override RPM's fontconfig auto-provide to handle /app/share/fonts
Owen W. Taylor dc918fb
f8ae3f9
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 33-3
f8ae3f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f8ae3f9
1b3893d
* Sat Sep 19 2020 Kalev Lember <klember@redhat.com> - 33-2
1b3893d
- Redefine __python2 macro to point to /app/bin/python2
1b3893d
94ec6b9
* Mon Sep 14 2020 Kalev Lember <klember@redhat.com> - 33-1
94ec6b9
- Update %%python_sitearch for python-3.9
94ec6b9
b4106a3
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 32-4
b4106a3
- Second attempt - Rebuilt for
b4106a3
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b4106a3
23644aa
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 32-3
23644aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
23644aa
49ac38a
* Wed Mar 18 2020 Kalev Lember <klember@redhat.com> - 32-2
49ac38a
- Remove Python 2 support (#1805232)
49ac38a
0b3b30b
* Wed Mar 18 2020 Stephan Bergmann <sbergman@redhat.com> - 32-1
0b3b30b
- Let xmvn_install store artifacts under /app
0b3b30b
57c02e6
* Thu Feb 06 2020 David King <amigadave@amigadave.com> - 29-12
57c02e6
- Update %%python_sitearch for python-3.8 (#1799346)
57c02e6
c56fbfe
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 29-11
c56fbfe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c56fbfe
041eaca
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 29-10
041eaca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
041eaca
82ace8d
* Thu Jun 20 2019 Kalev Lember <klember@redhat.com> - 29-9
82ace8d
- Use optflags, rather than __global_compiler_flags
82ace8d
9547c05
* Thu Apr 04 2019 Stephan Bergmann <sbergman@redhat.com> - 29-8
9547c05
- Add CFLAGS and CXXFLAGS to macros.flatpak, to match LDFLAGS
9547c05
74c08b8
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 29-7
74c08b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
74c08b8
Owen W. Taylor e1add1f
* Thu Sep 27 2018 Owen Taylor <otaylor@redhat.com> - 29-6
Owen W. Taylor e1add1f
- Fix accidentally not installing the macro file
Owen W. Taylor e1add1f
Owen W. Taylor 4e74f0d
* Thu Sep 27 2018 Owen Taylor <otaylor@redhat.com> - 29-5
Owen W. Taylor 4e74f0d
- Install a distutils.cfg to redirect installation of Python packages to /app
Owen W. Taylor 2aef994
  this makes the package no longer noarch because the file is in
Owen W. Taylor 2aef994
  /usr/lib or /usr/lib64.
Owen W. Taylor 4e74f0d
Owen W. Taylor 241e87b
* Tue Sep 25 2018 Owen Taylor <otaylor@redhat.com> - 29-4
Owen W. Taylor 241e87b
- Remove space in -L <libdir>
Owen W. Taylor 241e87b
Owen W. Taylor 97c66fe
* Thu Sep 20 2018 Owen Taylor <otaylor@redhat.com> - 29-3
Owen W. Taylor 97c66fe
- Extend set of overriden Python macros
Owen W. Taylor 97c66fe
Owen W. Taylor e48d00a
* Wed Sep 19 2018 Owen Taylor <otaylor@redhat.com> - 29-2
Owen W. Taylor e48d00a
- Improve LDFLAGS flags handling in macros.flatpak
Owen W. Taylor e48d00a
Owen W. Taylor 34df432
* Sat Sep  8 2018 Owen Taylor <otaylor@redhat.com> - 29-1
Owen W. Taylor 34df432
- Instead of defining %%app to true, define %%flatpak to 1
Owen W. Taylor 34df432
- Update %%python_sitearch for python-3.7
Owen W. Taylor 34df432
e51f66a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 27-6
e51f66a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e51f66a
5d3a950
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 27-5
5d3a950
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5d3a950
dca0bf1
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 27-4
dca0bf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dca0bf1
d28a6f0
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 27-3
d28a6f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d28a6f0
Owen W. Taylor 1442e46
* Tue Jun 13 2017 Owen Taylor <otaylor@redhat.com> - 27-2
Owen W. Taylor 1442e46
See https://bugzilla.redhat.com/show_bug.cgi?id=1460076
Owen W. Taylor 1442e46
- Wrap description lines
Owen W. Taylor 1442e46
- Own /etc/rpm, to avoid requiring rpm package
Owen W. Taylor 1442e46
- Preserve timestamp on installation
Owen W. Taylor 1442e46
Owen W. Taylor 1442e46
* Wed May 31 2017 Owen Taylor <otaylor@redhat.com> - 27-1
Owen W. Taylor 1442e46
- Initial version, based on work by Alex Larsson <alexl@redhat.com>