81 lines
2.1 KiB
RPMSpec
81 lines
2.1 KiB
RPMSpec
|
#
|
||
|
# 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/
|
||
|
#
|
||
|
|
||
|
# The package name needs to include the version to avoid automatic updates
|
||
|
%define snapshot_version 1726752130
|
||
|
Name: SL-Micro-6.0-versioned-%snapshot_version
|
||
|
Version: %snapshot_version
|
||
|
Release: 0
|
||
|
Summary: Repository snapshot enforcement
|
||
|
License: GPLv2
|
||
|
Source1: generate_requires.py
|
||
|
Source2: README.md
|
||
|
Source3: aarch64.updateinfo.xml
|
||
|
Source4: s390x.updateinfo.xml
|
||
|
Source5: x86_64.updateinfo.xml
|
||
|
# old, not used
|
||
|
Source100: generate_conflicts.py
|
||
|
# just for source rpm check
|
||
|
Source101: update.sh
|
||
|
BuildRequires: python311
|
||
|
|
||
|
# generate_requires.py updateinfo.xml [not_newer_than_in_unixtime]
|
||
|
%ifarch aarch64
|
||
|
%( python3.11 %{S:1} %{S:3} )
|
||
|
%endif
|
||
|
%ifarch s390x
|
||
|
%( python3.11 %{S:1} %{S:4} )
|
||
|
%endif
|
||
|
%ifarch x86_64
|
||
|
%( python3.11 %{S:1} %{S:5} )
|
||
|
%endif
|
||
|
|
||
|
%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
|
||
|
* Additional packages are still possible
|
||
|
|
||
|
###################
|
||
|
##### 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 %{SOURCE2} .
|
||
|
|
||
|
%install
|
||
|
|
||
|
%files
|
||
|
%doc README.md
|
||
|
|
||
|
%changelog
|