Owen W. Taylor 4025a0e
%global srcname flatpak-module-tools
Owen W. Taylor c3288a9
%global project_version 1.0a9
Owen W. Taylor 4025a0e
Owen W. Taylor 27cd89b
Name:		%{srcname}
Owen W. Taylor c3288a9
Version:	1.0~a9
03f0a3d
Release:	4%{?dist}
Owen W. Taylor cfd5db1
Summary:	Tools for maintaining Flatpak applications and runtimes as Fedora modules
Owen W. Taylor cfd5db1
Owen W. Taylor cfd5db1
License:	MIT
Owen W. Taylor cfd5db1
URL:		https://pagure.io/flatpak-module-tools
Owen W. Taylor 9c1ed8b
Source0:	https://releases.pagure.org/flatpak-module-tools/flatpak-module-tools-%{project_version}.tar.gz
Owen W. Taylor cfd5db1
Owen W. Taylor cfd5db1
BuildArch:	noarch
Owen W. Taylor d5d3e4e
# i386 is not supported by flatpak_module_tools.utils.Arch
Owen W. Taylor d5d3e4e
ExcludeArch:    i386 i686
Owen W. Taylor cfd5db1
Owen W. Taylor 9c1ed8b
BuildRequires: python3-build
Owen W. Taylor 9c1ed8b
BuildRequires: python3-devel
Owen W. Taylor 9c1ed8b
BuildRequires: python3-pip
Owen W. Taylor 9c1ed8b
BuildRequires: python3-setuptools
Owen W. Taylor 9c1ed8b
BuildRequires: python3-setuptools_scm+toml
Owen W. Taylor 9c1ed8b
BuildRequires: python3-wheel
Owen W. Taylor 2a620df
Owen W. Taylor 2a620df
# For tests
Owen W. Taylor 4af5161
BuildRequires: createrepo_c
Owen W. Taylor 2a620df
BuildRequires: flatpak
Owen W. Taylor c3288a9
BuildRequires: git-core
Owen W. Taylor 2a620df
BuildRequires: libappstream-glib
Owen W. Taylor 4af5161
BuildRequires: libmodulemd
Owen W. Taylor 2a620df
BuildRequires: librsvg2
Owen W. Taylor 2a620df
BuildRequires: ostree
Owen W. Taylor 9c1ed8b
BuildRequires: python3-click
Owen W. Taylor 4af5161
BuildRequires: python3-gobject-base
Owen W. Taylor 9c1ed8b
BuildRequires: python3-pytest-cov
Owen W. Taylor 2a620df
BuildRequires: python3-jinja2
Owen W. Taylor 9c1ed8b
BuildRequires: python3-koji
Owen W. Taylor 97017a6
BuildRequires: python3-networkx
Owen W. Taylor 2a620df
BuildRequires: python3-pytest
Owen W. Taylor 4af5161
BuildRequires: python3-requests
Owen W. Taylor 4af5161
BuildRequires: python3-responses
Owen W. Taylor 9c1ed8b
BuildRequires: python3-rpm
Owen W. Taylor 2a620df
BuildRequires: python3-yaml
Owen W. Taylor 048a20c
BuildRequires: zstd
Owen W. Taylor cfd5db1
Owen W. Taylor 4025a0e
Requires: python3-%{srcname} = %{version}-%{release}
Owen W. Taylor 4af5161
Requires: python3-jinja2
Owen W. Taylor cfd5db1
Requires: python3-koji
Owen W. Taylor 9c1ed8b
Requires: python3-networkx
Owen W. Taylor fdb87e6
Requires: python3-requests-toolbelt
Owen W. Taylor 9c1ed8b
# for pkg_resources
Owen W. Taylor 9c1ed8b
Requires: python3-setuptools
Owen W. Taylor fdb87e6
Requires: python3-solv
Owen W. Taylor cfd5db1
Owen W. Taylor cfd5db1
%description
Owen W. Taylor cfd5db1
flatpak-module-tools is a set of command line tools (all accessed via a single
Owen W. Taylor cfd5db1
'flatpak-module' executable) for operations related to maintaining Flatpak
Owen W. Taylor cfd5db1
applications and runtimes as Fedora modules.
Owen W. Taylor cfd5db1
Owen W. Taylor 4025a0e
%package -n python3-%{srcname}
Owen W. Taylor 4025a0e
Summary: Shared code for building Flatpak applications and runtimes from Fedora modules
Owen W. Taylor 4025a0e
Owen W. Taylor 4025a0e
# Note - pythonN-flatpak-modules-tools subpackage contains all the Python files from
Owen W. Taylor 4025a0e
# the upstream distribution, but some of them are only useful for the CLI, not
Owen W. Taylor 4025a0e
# for using this as a library for atomic-reactor. The dependencies here are those
Owen W. Taylor 4025a0e
# needed for library usage, the main package has the remainder.
Owen W. Taylor 4025a0e
Owen W. Taylor 4af5161
Requires: createrepo_c
Owen W. Taylor 463772a
Requires: flatpak
Owen W. Taylor 463772a
# For appstream-compose
Owen W. Taylor 463772a
Requires: libappstream-glib
Owen W. Taylor 463772a
# for SVG gdk-pixbuf loader
Owen W. Taylor 463772a
Requires: librsvg2
Owen W. Taylor 463772a
Requires: ostree
Owen W. Taylor 4af5161
Requires: python3-click
Owen W. Taylor 4af5161
Requires: python3-requests
Owen W. Taylor 4af5161
Requires: python3-rpm
Owen W. Taylor 4025a0e
Requires: python3-yaml
Owen W. Taylor 048a20c
Requires: zstd
Owen W. Taylor 4025a0e
Owen W. Taylor 97017a6
# Output changed from <nvr>.oci.tar.gz to <nvr>.oci.tar
Owen W. Taylor 97017a6
Conflicts: koji-flatpak <= 0.2
Owen W. Taylor 97017a6
Owen W. Taylor 4025a0e
%description -n python3-%{srcname}
Owen W. Taylor 4025a0e
Python3 library for Flatpak handling
Owen W. Taylor 4025a0e
Owen W. Taylor cfd5db1
%prep
Owen W. Taylor 9c1ed8b
%autosetup -p1 -n %{srcname}-%{project_version}
Owen W. Taylor cfd5db1
Owen W. Taylor cfd5db1
Owen W. Taylor cfd5db1
%build
Owen W. Taylor 9c1ed8b
export SETUPTOOLS_SCM_PRETEND_VERSION=%{project_version}
Owen W. Taylor 9c1ed8b
%pyproject_wheel
Owen W. Taylor cfd5db1
Owen W. Taylor cfd5db1
Owen W. Taylor 03f1a87
%check
Owen W. Taylor 9c1ed8b
# Tests using RPM don't work well inside %%check
Owen W. Taylor 9c1ed8b
%pytest -k "not test_create_rpm_manifest"
Owen W. Taylor 03f1a87
Owen W. Taylor 03f1a87
Owen W. Taylor cfd5db1
%install
Owen W. Taylor 9c1ed8b
%pyproject_install
Owen W. Taylor cfd5db1
Owen W. Taylor cfd5db1
Owen W. Taylor cfd5db1
%files
Owen W. Taylor cfd5db1
%license LICENSE
Owen W. Taylor cfd5db1
%doc README.md
Owen W. Taylor cfd5db1
%{_bindir}/flatpak-module
Owen W. Taylor 9c1ed8b
%{_bindir}/flatpak-module-depchase
Owen W. Taylor cfd5db1
Owen W. Taylor 4025a0e
Owen W. Taylor 4025a0e
%files -n python3-%{srcname}
Owen W. Taylor 4025a0e
%license LICENSE
Owen W. Taylor 4025a0e
%{python3_sitelib}/*
Owen W. Taylor 4025a0e
Owen W. Taylor cfd5db1
%changelog
03f0a3d
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0~a9-4
03f0a3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
03f0a3d
b0acad9
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0~a9-3
b0acad9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
b0acad9
Owen W. Taylor b69c3b4
* Thu Sep 28 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a9-2
Owen W. Taylor 048a20c
- Add a dependency on zstd tool (used to compress intermediate tarball)
Owen W. Taylor 048a20c
Owen W. Taylor c3288a9
* Mon Sep 25 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a9-1
Owen W. Taylor c3288a9
- Fix tests in environments without git config set up
Owen W. Taylor c3288a9
Owen W. Taylor c3288a9
* Mon Sep 25 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a8-1
Owen W. Taylor 97017a6
- Add flatpak-module build-container
Owen W. Taylor 97017a6
- Use f<N>-updates-testing-pending as the source tag
Owen W. Taylor 97017a6
- Speed up build process for large Flatpaks by reducing zlib time
Owen W. Taylor 97017a6
  (output name changes from .oci.tar.gz to .oci.tar)
Owen W. Taylor c3288a9
- Properly handle 'platforms: only' and 'platforms: not' in container.yaml
Owen W. Taylor 97017a6
Owen W. Taylor 84f3362
* Thu Aug 24 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a7-1
Owen W. Taylor 84f3362
- Fixes cleanup-commands not working at all
Owen W. Taylor 84f3362
- Run script create from cleanup-commands under 'sh -ex'
Owen W. Taylor 84f3362
Owen W. Taylor fb48a08
* Thu Aug 24 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a6-1
Owen W. Taylor fb48a08
- Version 1.0~a6
Owen W. Taylor fb48a08
- Fixes bugs with local builds in fresh directories
Owen W. Taylor fb48a08
- Other bug fixes for local builds
Owen W. Taylor fb48a08
Owen W. Taylor d5d3e4e
* Tue Aug 22 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a5-1
Owen W. Taylor d5d3e4e
- Version 1.0~a5
Owen W. Taylor d5d3e4e
- Fix operation when the main package is a subpackage
Owen W. Taylor d5d3e4e
- Add --local-repo option to CLI
Owen W. Taylor 4af5161
- Fix up Requires:
Owen W. Taylor d5d3e4e
Owen W. Taylor d5d3e4e
* Tue Aug 15 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a3-1
Owen W. Taylor 7c8825c
- New version
Owen W. Taylor 7c8825c
- Fixes problem with triggers from flatpak-runtime-config not running for apps
Owen W. Taylor 7c8825c
- Fixes local RPMs not working for 'flatpak-module build-container-local'
Owen W. Taylor 7c8825c
- Makes bwrap invocation check more exact
Owen W. Taylor 7c8825c
Owen W. Taylor d5d3e4e
* Tue Aug 15 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a2-4
Owen W. Taylor fdb87e6
- Add a patch to debug why the test for working bwrap isn't working on the
Owen W. Taylor fdb87e6
  Koji builders.
Owen W. Taylor fdb87e6
- Add some missing requires for flatpak-module-depchase
Owen W. Taylor fdb87e6
Owen W. Taylor a66a00d
* Thu Aug 10 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a2-3
Owen W. Taylor a66a00d
- Build on x86_64 to avoid test failures
Owen W. Taylor a66a00d
Owen W. Taylor cb0f72a
* Thu Aug 10 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a2-2
Owen W. Taylor cb0f72a
- Avoid building on i386 to avoid test failures
Owen W. Taylor cb0f72a
Owen W. Taylor 6e2a6ed
* Thu Aug 10 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a2-1
Owen W. Taylor 6e2a6ed
- Update to 1.0a2 - fixes Python-3.12 compatibility
Owen W. Taylor 6e2a6ed
Owen W. Taylor 9c1ed8b
* Thu Aug 10 2023 Owen Taylor <otaylor@redhat.com> - 1.0~a1-1
Owen W. Taylor 9c1ed8b
- Update to 1.0a1 - this is a major change that removes support for buiding
Owen W. Taylor 9c1ed8b
  Flatpaks with modules from the command line (the parts used by OSBS are
Owen W. Taylor 9c1ed8b
  still present in the Python API.)
Owen W. Taylor 9c1ed8b
cfa51ab
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-9
cfa51ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
cfa51ab
11f76e1
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 0.13-8
11f76e1
- Rebuilt for Python 3.12
11f76e1
1abf75f
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-7
1abf75f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
1abf75f
0be8d68
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-6
0be8d68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
0be8d68
12c4c75
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.13-5
12c4c75
- Rebuilt for Python 3.11
12c4c75
9cb8042
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-4
9cb8042
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
9cb8042
ae6eec8
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-3
ae6eec8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
ae6eec8
b0acaf8
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.13-2
b0acaf8
- Rebuilt for Python 3.10
b0acaf8
Owen W. Taylor e8792d0
* Tue Feb 23 2021 Owen Taylor <otaylor@redhat.com> - 0.13-1
Owen W. Taylor e8792d0
- Version 0.13
Owen W. Taylor e8792d0
affeb88
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-2
affeb88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
affeb88
Owen W. Taylor 03f1a87
* Fri Dec 18 2020 Owen Taylor <otaylor@redhat.com> - 0.12.1-1
Owen W. Taylor 03f1a87
- Version 0.12.1 - fixes bug with long filenames
Owen W. Taylor 03f1a87
- Remove outdated patch
Owen W. Taylor 03f1a87
- Run tests in %check
Owen W. Taylor 03f1a87
5d8074d
* Mon Oct 05 2020 Kalev Lember <klember@redhat.com> - 0.12-3
5d8074d
- Fix argument passing for app end-of-life/end-of-life-rebase
5d8074d
7bed174
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-2
7bed174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7bed174
Owen W. Taylor 8426da2
* Thu Jul 16 2020 Fedora <otaylor@redhat.com> - 0.12-1
Owen W. Taylor 8426da2
- Version 0.12 - fix installing Flatpaks created by flatpak-1.6
Owen W. Taylor 8426da2
Owen W. Taylor dd649ab
* Tue Jul 14 2020 Owen Taylor <otaylor@redhat.com> - 0.11.5-1
Owen W. Taylor dd649ab
- Version 0.11.5 - compatibility fixes for recent dnf and mock
Owen W. Taylor dd649ab
2a7a16e
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.11.3-4
2a7a16e
- Rebuilt for Python 3.9
2a7a16e
b2c3aab
* Mon May 11 2020 Kalev Lember <klember@redhat.com> - 0.11.3-3
b2c3aab
- Add xa.metadata as ostree commit metadata for runtimes
b2c3aab
- Add support for end-of-life and end-of-life-rebase
b2c3aab
af0e508
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.3-2
af0e508
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
af0e508
Owen W. Taylor eb39196
* Fri Dec  6 2019 Owen Taylor <otaylor@redhat.com> - 0.11.3-1
Owen W. Taylor eb39196
- Version 0.11.3 - 0.11.2 had a stray file
Owen W. Taylor eb39196
Owen W. Taylor bc634ff
* Fri Dec  6 2019 Owen Taylor <otaylor@redhat.com> - 0.11.2-1
Owen W. Taylor bc634ff
- Version 0.11.2 - fix finish-args for runtimes
Owen W. Taylor bc634ff
Owen W. Taylor bc634ff
* Wed Oct 23 2019 Owen Taylor <otaylor@redhat.com> - 0.11.1-1
Owen W. Taylor 4f71c68
- Version 0.11.1 - compatibility with future versions of Flatpak that
Owen W. Taylor 4f71c68
  may generate label-only images
Owen W. Taylor 4f71c68
Owen W. Taylor c6238d6
* Thu Oct 17 2019 Fedora <otaylor@redhat.com> - 0.11-1
Owen W. Taylor c6238d6
- Version 0.11 - add standard labels, and allow using labels
Owen W. Taylor c6238d6
  instead of annotations for Flatpak metadata.
Owen W. Taylor c6238d6
fae2604
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10.4-4
fae2604
- Rebuilt for Python 3.8.0rc1 (#1748018)
fae2604
3a720dd
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10.4-3
3a720dd
- Rebuilt for Python 3.8
3a720dd
Owen W. Taylor 4394050
* Wed Jul 24 2019 Owen Taylor <otaylor@redhat.com> - 0.10.4-2
Owen W. Taylor 4394050
- Fix requirements
Owen W. Taylor 4394050
Owen W. Taylor 169fd59
* Wed Jul 24 2019 Owen Taylor <otaylor@redhat.com> - 0.10.4-1
Owen W. Taylor 169fd59
- Version 0.10.4 - fix bugs with libmodulemd v2 api conversion
Owen W. Taylor 169fd59
Owen W. Taylor a427116
* Fri Jul 12 2019 Owen Taylor <otaylor@redhat.com> - 0.10.1-1
Owen W. Taylor a427116
- Version 0.10.1 - fix compatibility with newer module-build-service
Owen W. Taylor a427116
  and avoid flatpak-repair issues.
Owen W. Taylor a427116
Owen W. Taylor 0ffd83d
* Mon Apr  1 2019 fedora-toolbox <otaylor@redhat.com> - 0.9.3-1
Owen W. Taylor 0ffd83d
- Version 0.9.3 - fix module-build-service and Flatpak compat issues
Owen W. Taylor 0ffd83d
Owen W. Taylor 971f93f
* Tue Feb  5 2019 fedora-toolbox <otaylor@redhat.com> - 0.9.2-1
Owen W. Taylor 971f93f
- Version 0.9.2 - fix icon validation for Flatpak 1.2
Owen W. Taylor 971f93f
1f4b471
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
1f4b471
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1f4b471
Owen W. Taylor f15e477
* Tue Jan 22 2019 fedora-toolbox <otaylor@redhat.com> - 0.9.1-1
Owen W. Taylor f15e477
- Version 0.9.1 - bug fixes including systemd-nspawn compatibility
Owen W. Taylor f15e477
Owen W. Taylor 97bc08a
* Tue Jan 22 2019 Owen Taylor <otaylor@redhat.com> - 0.9-1
Owen W. Taylor 97bc08a
- Version 0.9 - configurability, fixes for F29 dnf compatibility
Owen W. Taylor 97bc08a
e87cd5f
* Fri Nov 30 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.4-2
e87cd5f
- Drop python2 subpackage (#1634652)
e87cd5f
Owen W. Taylor 856bd88
* Thu Oct  4 2018 Owen Taylor <otaylor@redhat.com> - 0.8.4-1
Owen W. Taylor 856bd88
- Version 0.8.4 - fix bugs in Flatpak installation
Owen W. Taylor 856bd88
Owen W. Taylor bdfb44d
* Tue Oct  2 2018 Owen Taylor <otaylor@redhat.com> - 0.8.3-1
Owen W. Taylor bdfb44d
- Version 0.8.3 (bug fixes, add flatpak-module install --koji)
Owen W. Taylor bdfb44d
Owen W. Taylor 463772a
* Mon Sep 10 2018 Owen Taylor <otaylor@redhat.com> - 0.8.2-1
Owen W. Taylor 463772a
- Version 0.8.2 (Install flatpak-runtime-config with apps making
Owen W. Taylor 463772a
  included triggers work, support comments in finish-args,
Owen W. Taylor 463772a
  enable mock dnf cache for local builds.)
Owen W. Taylor 463772a
- Add dependencies on required tools
Owen W. Taylor 463772a
Owen W. Taylor 6715d0e
* Tue Aug 21 2018 Owen Taylor <otaylor@redhat.com> - 0.8.1-1
Owen W. Taylor 6715d0e
- Version 0.8.1 - bug fixes
Owen W. Taylor 6715d0e
Owen W. Taylor 0e36444
* Fri Aug 10 2018 Owen Taylor <otaylor@redhat.com> - 0.8-1
Owen W. Taylor 0e36444
- Version 0.8 - bug fixes and command line convenience
Owen W. Taylor 0e36444
Owen W. Taylor 6fe5710
* Tue Jul 31 2018 Owen Taylor <otaylor@redhat.com> - 0.6-1
Owen W. Taylor df1619b
- Version 0.6 (improve container.yaml support)
Owen W. Taylor 4025a0e
- Build for Python2 as well
Owen W. Taylor 4025a0e
- Split out python<N>-flatpak-module-tools subpackages
Owen W. Taylor df1619b
a59b954
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-3
a59b954
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a59b954
fe629cd
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4-2
fe629cd
- Rebuilt for Python 3.7
fe629cd
Owen W. Taylor 5d2c084
* Fri Jun  1 2018 Owen Taylor <otaylor@redhat.com> - 0.4-1
Owen W. Taylor 5d2c084
- Version 0.4 (fix container builds from Koji)
Owen W. Taylor 5d2c084
Owen W. Taylor 7b3ac27
* Thu May 31 2018 Owen Taylor <otaylor@redhat.com> - 0.3-1
Owen W. Taylor 7b3ac27
- Version 0.3 (minor fixes)
Owen W. Taylor 7b3ac27
Owen W. Taylor cfd5db1
* Tue May 22 2018 Owen W. Taylor <otaylor@fishsoup.net> - 0.2-1
Owen W. Taylor cfd5db1
- Initial version