File meta-package.spec of Package meta-package

#
# spec file for package meta-package
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# FIXME: to be decided, do we want that a meta package will be updated?
#        if not, we should include the snapshot version in the name
Name:           meta-package
Version:        0.1.0
Release:        0
Summary:        Repository snapshot enforcement
License:        GPLv2
Source1:        generate_conflicts.py
Source2:        %{_target_cpu}.updateinfo.xml
Source3:        README.md
BuildRequires:  python311
# it should work as noarch if we have no build failure and no mess up...
#BuildArch:      noarch

# generate_conflicts.py updateinfo.xml [not_newer_than_in_unixtime]
%( python3.11 %{S:1} %{S:2} )

%description
#
# snapshot repository emulator
#

This is generating a package with the goal to enforce defined
versions of a package based on a given updateinfo.xml file.

Goals:
 * Do not enforce the installation of a package
 * But when installed, it must be a certain version

This is currently implemented via conflicts due to unknown
reasons.

Shouldn't these be conditional requires instead?
eg.:

 Requires: abcd-1.2.3 if abcd

?

###################
##### WARNING #####
###################

Do *NOT* use this package for any image or container. You
won't be able to build it or only for a very short time frame.

###################
##### WARNING #####
###################

%prep
%setup -c -T
cp %{SOURCE3} .

%install

%files
%doc README.md

%changelog
openSUSE Build Service is sponsored by